80 lines
1.8 KiB
Makefile
80 lines
1.8 KiB
Makefile
|
include Makefile.def.cross
|
||
|
|
||
|
# target name, the target name must have the same name of c source file
|
||
|
TARGET_NAME=libuvdbus
|
||
|
|
||
|
# target
|
||
|
# for linux module driver: KO
|
||
|
# for application: EXE
|
||
|
# for dynamic library: DLL
|
||
|
TARGET_TYPE = DLL
|
||
|
|
||
|
# target object
|
||
|
# for application: APP
|
||
|
# for device driver: DRV
|
||
|
TARGET_OBJ = APP
|
||
|
|
||
|
TARGET_BOX =
|
||
|
|
||
|
#debug mode or release mode
|
||
|
DEBUG = TRUE
|
||
|
|
||
|
PLAT_R16 ?= TRUE
|
||
|
PLAT_LINUX ?= TRUE
|
||
|
PLAT_WIN32 ?= FALSE
|
||
|
PLAT_WIN64 ?= FALSE
|
||
|
|
||
|
VPATH = ../Framework ../log ../Modules ../linux32
|
||
|
|
||
|
# source code
|
||
|
|
||
|
# set the source file, don't used .o because of ...
|
||
|
# MRS Board Source Files
|
||
|
PLAT_R16_SRCS = \
|
||
|
libuvEngine/libuv_dbus.c \
|
||
|
HeartDaemon/heart_daemon.c \
|
||
|
JsonUtils/json_struct.c \
|
||
|
Configure/config_engine.c \
|
||
|
Configure/ini_prase.c \
|
||
|
Crypto/aes.c \
|
||
|
Crypto/base64.c \
|
||
|
Crypto/md5.c \
|
||
|
Crypto/crypto.c \
|
||
|
Compress/zlib.c \
|
||
|
Network/inet_api.c \
|
||
|
Timer/timer.c \
|
||
|
Fifo/fifo.c \
|
||
|
Skins/skins.c \
|
||
|
Skins/skin_res_vtbl.c \
|
||
|
Monitor/monitor.c \
|
||
|
log.c \
|
||
|
SvrManager/svr_manager.c \
|
||
|
hexdump.c
|
||
|
|
||
|
PLAT_LINUX_SRCS := $(PLAT_R16_SRCS) \
|
||
|
src/cJSON.c \
|
||
|
src/s2j.c
|
||
|
|
||
|
# gcc CFLAGS
|
||
|
|
||
|
PLAT_R16_CFLAGS := -I../include -fPIC
|
||
|
PLAT_LINUX_CFLAGS := $(PLAT_R16_CFLAGS) -I/usr/include/dbus-1.0/ -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include/ -I../linux32/inc/ -I../linux32/inc/cjson/
|
||
|
PLAT_LINUX_CFLAGS += -I../linux32/inc/uthash/
|
||
|
|
||
|
PLAT_R16_LDFLAGS := -shared -fPIC
|
||
|
PLAT_LINUX_LDFLAGS := $(PLAT_R16_LDFLAGS)
|
||
|
|
||
|
R16_LIBS := $(COMMON_R16_LIBS)
|
||
|
LINUX_LIBS := $(COMMON_LINUX_LIBS)
|
||
|
|
||
|
# this line must be at below of thus, because of...
|
||
|
include /opt/common/Makefile.cross
|
||
|
|
||
|
ifeq ($(MAKECMDGOALS), )
|
||
|
$(shell find ./ -name $(TARGET)-*.exe -delete)
|
||
|
else
|
||
|
ifeq ($(MAKECMDGOALS), all)
|
||
|
$(shell find ./ -name "$(TARGET)-*.exe" -delete)
|
||
|
endif
|
||
|
endif
|