blob: 668a48a4a511bf0bf11bb63fa2fe900e59525976 [file] [log] [blame]
luny479178a2014-06-18 12:33:29 +08001LOC_DIR=src/shell
2LIB=SHELL
3
4include $(PRJ_PATH)/make/config.mk
5include $(PRJ_PATH)/make/components.mk
6
7SRC_LIST=$(wildcard *.c)
8ifeq (,$(findstring SHELL, $(COMPONENTS)))
9all: dep obj
10else
11all: dep obj lib
12endif
13
14include $(PRJ_PATH)/make/defs.mk
15include $(PRJ_PATH)/make/target.mk
16
17ifeq (TRUE, $(API_LOCK))
18 PT_LIB=-lpthread
19else
20 PT_LIB=
21endif
22
23lib:
xiaofeis2ca23752018-05-30 13:57:58 +080024 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(OBJ_FILE) $(BIN_DIR)/$(US_MOD)_$(RUNMODE).a -o $(DST_DIR)/$(SHELLOBJ) $(PT_LIB)