lua/Generic.mk

32 lines
613 B
Makefile

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
# name of the librairy
LOCAL_MODULE := lua
# name of the dependency
LOCAL_LIBRARIES := etk
LOCAL_C_INCLUDES := $(LOCAL_PATH)/lua/
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
LOCAL_EXPORT_CFLAGS := -DLUA_COMPAT_ALL
LOCAL_CFLAGS := -DLUA_VERSION_TAG_NAME="\"5.2-$(BUILD_DIRECTORY_MODE)\"" \
-Wall
ifeq ("$(TARGET_OS)","Windows")
LOCAL_CFLAGS += -D_WIN32
else
LOCAL_CFLAGS += -DLUA_USE_LINUX
endif
# load the common sources file of the platform
include $(LOCAL_PATH)/file.mk
LOCAL_SRC_FILES := $(FILE_LIST)
include $(BUILD_STATIC_LIBRARY)