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