34 lines
773 B
Makefile
34 lines
773 B
Makefile
|
LOCAL_PATH := $(call my-dir)
|
||
|
|
||
|
include $(CLEAR_VARS)
|
||
|
|
||
|
# name of the librairy
|
||
|
LOCAL_MODULE := lua
|
||
|
|
||
|
# name of the dependency
|
||
|
LOCAL_STATIC_LIBRARIES :=
|
||
|
|
||
|
LOCAL_C_INCLUDES := -I$(LOCAL_PATH) -I$(LOCAL_PATH)/lua/
|
||
|
|
||
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
||
|
|
||
|
ifeq ($(DEBUG),1)
|
||
|
LOCAL_CFLAGS := -D__PLATFORM__Linux \
|
||
|
-DLUA_COMPAT_ALL \
|
||
|
-DLUA_USE_LINUX \
|
||
|
-DLUA_VERSION_TAG_NAME="\"5.2-debug\"" \
|
||
|
-Wall
|
||
|
else
|
||
|
LOCAL_CFLAGS := -D__PLATFORM__Linux \
|
||
|
-DLUA_COMPAT_ALL \
|
||
|
-DLUA_VERSION_TAG_NAME="\"5.2-release\"" \
|
||
|
-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)
|