| #******************************************************************************* |
| # include ZTE library makefile |
| #******************************************************************************* |
| include $(zte_lib_mak) |
| |
| ##############USER COMIZE BEGIN################ |
| #include ../net_team.mk |
| |
| LIB_STATIC = libzte_vsim.a |
| #LIB_SHARED = libzte_vsim.so |
| |
| OBJS = $(patsubst %.c,%.o,$(wildcard ./src/*.c)) |
| |
| CFLAGS += -I. |
| CFLAGS += -I./inc |
| CFLAGS += -I$(zte_app_path)/at_ctl/inc |
| CFLAGS += -I$(zte_lib_path)/libatutils |
| CFLAGS += -I$(LINUX_DIR)/include |
| CFLAGS += -g |
| |
| |
| ##############USER COMIZE END################## |
| |
| CFLAGS += -I$(zte_app_path)/include |
| CFLAGS += -fPIC |
| LDFLAGS += -shared |
| |
| h_sources += $(wildcard ./inc/*.h) |
| |
| |
| all: $(LIB_STATIC) $(LIB_SHARED) |
| |
| $(LIB_STATIC) : $(OBJS) |
| $(AR) rcs $(LIB_STATIC) $(OBJS) |
| |
| $(LIB_SHARED): $(OBJS) |
| $(CC) $(LDFLAGS) -o $@ $^ -Wl,-whole-archive $(LDLIBS) -Wl,-no-whole-archive |
| |
| romfs: |
| echo "static lib no need copy to lib" |
| |
| clean: |
| -rm -f $(LIB_SHARED) $(LIB_STATIC) $(OBJS) |
| |