blob: 736aee1e61f546d58a4f3c70e965869cbddb7417 [file] [log] [blame]
b.liu3743bce2024-03-22 19:27:58 +08001BUILD_ROOT = $(shell pwd)/../..
2include $(BUILD_ROOT)/Make.defines
b.liu482dc0b2024-03-22 15:53:36 +08003
4INC_DIR +=
5
6LIB_DIR +=
7
8LIBS += -lmbtk_lib -lmbtk_net -lmbtk_ril -lql_lib -lmbtk_audio -lmbtk_http -lmbtk_fota -lmbtk_factory
9
10CFLAGS +=
11
12DEFINE +=
13
14LOCAL_SRC_FILES = $(wildcard *.c) $(wildcard *.cpp)
15
16$(info LOCAL_SRC_FILES = $(LOCAL_SRC_FILES))
17
18OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(LOCAL_SRC_FILES)))
19BINS = $(patsubst %.o,%,$(OBJS))
20
21all: $(BINS)
22
23$(BINS):$(OBJS)
24 @echo " BIN $@"
25 $(CC) $(CFLAGS) $(LIB_DIR) $(LIBS) $@.o -o $(OUT_DIR)/bin/$@
26
27%.o:%.c
28 $(CC) $(CFLAGS) $(INC_DIR) $(DEFINE) -c $< -o $@
29
30%.o:%.cpp
31 $(CC) $(CFLAGS) $(INC_DIR) $(DEFINE) -c $< -o $@
32
33clean:
34 rm -f $(OBJS)