2010-01-02 20:10:08 +01:00
|
|
|
# -*- mode: Makefile -*-
|
|
|
|
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2010-01-30 04:18:01 +01:00
|
|
|
COMMON_PATH=../../../common
|
|
|
|
local_C_INCLUDES+= \
|
|
|
|
-I$(LOCAL_PATH)/$(COMMON_PATH) \
|
|
|
|
-I$(LOCAL_PATH)/../../../relay \
|
2010-01-02 20:10:08 +01:00
|
|
|
|
|
|
|
local_LDLIBS += -llog
|
|
|
|
|
2010-01-26 15:52:52 +01:00
|
|
|
# local_DEBUG = -DMEM_DEBUG -DDEBUG -DENABLE_LOGGING
|
2010-01-02 20:10:08 +01:00
|
|
|
local_DEFINES += \
|
2010-01-13 13:15:46 +01:00
|
|
|
$(local_DEBUG) \
|
2010-01-02 20:10:08 +01:00
|
|
|
-DXWFEATURE_TURNCHANGENOTIFY \
|
|
|
|
-DXWFEATURE_SEARCHLIMIT \
|
|
|
|
-DKEYBOARD_NAV \
|
|
|
|
-DKEY_SUPPORT \
|
|
|
|
-DPOINTER_SUPPORT \
|
|
|
|
-DNODE_CAN_4 \
|
|
|
|
-D__LITTLE_ENDIAN \
|
|
|
|
|
|
|
|
local_SRC_FILES += \
|
|
|
|
xwjni.c \
|
|
|
|
utilwrapper.c \
|
|
|
|
drawwrapper.c \
|
|
|
|
anddict.c \
|
|
|
|
andutils.c \
|
|
|
|
|
2010-01-30 04:18:01 +01:00
|
|
|
|
|
|
|
COMMON_PATH=../../../common
|
2010-01-02 20:10:08 +01:00
|
|
|
common_SRC_FILES += \
|
2010-01-30 04:18:01 +01:00
|
|
|
$(COMMON_PATH)/boarddrw.c \
|
|
|
|
$(COMMON_PATH)/scorebdp.c \
|
|
|
|
$(COMMON_PATH)/dragdrpp.c \
|
|
|
|
$(COMMON_PATH)/pool.c \
|
|
|
|
$(COMMON_PATH)/tray.c \
|
|
|
|
$(COMMON_PATH)/dictnry.c \
|
|
|
|
$(COMMON_PATH)/mscore.c \
|
|
|
|
$(COMMON_PATH)/vtabmgr.c \
|
|
|
|
$(COMMON_PATH)/strutils.c \
|
|
|
|
$(COMMON_PATH)/engine.c \
|
|
|
|
$(COMMON_PATH)/board.c \
|
|
|
|
$(COMMON_PATH)/mempool.c \
|
|
|
|
$(COMMON_PATH)/game.c \
|
|
|
|
$(COMMON_PATH)/server.c \
|
|
|
|
$(COMMON_PATH)/model.c \
|
|
|
|
$(COMMON_PATH)/comms.c \
|
|
|
|
$(COMMON_PATH)/memstream.c \
|
|
|
|
$(COMMON_PATH)/movestak.c \
|
2010-01-02 20:10:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
LOCAL_CFLAGS+=$(local_C_INCLUDES) $(local_DEFINES)
|
|
|
|
LOCAL_SRC_FILES := $(linux_SRC_FILES) $(local_SRC_FILES) $(common_SRC_FILES)
|
|
|
|
LOCAL_MODULE := xwjni
|
|
|
|
LOCAL_LDLIBS := -L${SYSROOT}/usr/lib -llog -lz
|
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
|