blob: 3d15ddd178e9bc8afb7bf7f0e0c4157a497f10a9 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#*******************************************************************************
2# include ZTE library makefile
3#*******************************************************************************
4include $(zte_lib_mak)
5
6##############USER COMIZE BEGIN################
7#include ../net_team.mk
8
9LIB_STATIC = libzte_vsim.a
10#LIB_SHARED = libzte_vsim.so
11
12OBJS = $(patsubst %.c,%.o,$(wildcard ./src/*.c))
13
14CFLAGS += -I.
15CFLAGS += -I./inc
16CFLAGS += -I$(zte_app_path)/at_ctl/inc
17CFLAGS += -I$(zte_lib_path)/libatutils
18CFLAGS += -I$(LINUX_DIR)/include
19CFLAGS += -g
20
21
22##############USER COMIZE END##################
23
24CFLAGS += -I$(zte_app_path)/include
25CFLAGS += -fPIC
26LDFLAGS += -shared
27
28h_sources += $(wildcard ./inc/*.h)
29
30
31all: $(LIB_STATIC) $(LIB_SHARED)
32
33$(LIB_STATIC) : $(OBJS)
34 $(AR) rcs $(LIB_STATIC) $(OBJS)
35
36$(LIB_SHARED): $(OBJS)
37 $(CC) $(LDFLAGS) -o $@ $^ -Wl,-whole-archive $(LDLIBS) -Wl,-no-whole-archive
38
39romfs:
40 echo "static lib no need copy to lib"
41
42clean:
43 -rm -f $(LIB_SHARED) $(LIB_STATIC) $(OBJS)
44