blob: 556362777b924d1e8d2decd8593ea88846858314 [file] [log] [blame]
b.liuae2dce52024-08-15 11:09:58 +08001BUILD_ROOT = $(shell pwd)/..
2include $(BUILD_ROOT)/Make.defines
3
4LOCAL_PATH=$(BUILD_ROOT)/mbtk_sdk_ready_v2
5
6INC_DIR += \
b.liu450e3992024-10-10 10:59:29 +08007 -I$(BUILD_ROOT)/libmbtk_lib_v2/ril
b.liuae2dce52024-08-15 11:09:58 +08008
9LIB_DIR +=
10
b.liu450e3992024-10-10 10:59:29 +080011LIBS += -lmbtk_lib -lprop2uci
b.liuae2dce52024-08-15 11:09:58 +080012
13CFLAGS +=
14
15DEFINE +=
16
17#MY_FILES_PATH:=$(LOCAL_PATH)/src
18#ifeq ($(CONFIG_MBTK_QL_SUPPORT),y)
19#MY_FILES_PATH += $(LOCAL_PATH)/ql
20#endif
21
22#ifeq ($(CONFIG_MBTK_PLATFORM),linux)
23#MY_FILES_PATH += $(LOCAL_PATH)/platform/linux
24#endif
25
26LOCAL_SRC_FILES = $(wildcard src/*.c) $(wildcard src/*.cpp)
27OBJS = $(patsubst %.c, %.o, $(patsubst %.cpp, %.o, $(LOCAL_SRC_FILES)))
28$(info OBJS = $(OBJS))
29
30dtarget := $(OUT_DIR)/bin/mbtk_sdk_ready
31
32all: $(dtarget)
33
34$(dtarget): $(OBJS)
35 @echo " BIN $@"
36 $(CC) $(CFLAGS) $(LIB_DIR) $(LIBS) $(OBJS) -o $@
37
38%.o:%.c
39 $(CC) $(CFLAGS) $(INC_DIR) $(DEFINE) -c $< -o $@
40
41%.o:%.cpp
42 $(CC) $(CFLAGS) $(INC_DIR) $(DEFINE) -c $< -o $@
43
44clean:
45 rm -f $(OBJS) $(dtarget)
46