blob: 51326eb7e4b7a989dd9a39757b4cf24d83730897 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#*******************************************************************************
2# include ZTE library makefile
3#*******************************************************************************
4include $(COMMON_MK)
5
6##############USER COMIZE BEGIN################
7
8LIB_STATIC = libsoftap.a
9LIB_SHARED = libsoftap.so
10
11OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
12
13#CFLAGS += -I$(zte_app_path)/at_ctl/inc
14#CFLAGS += -I$(zte_lib_path)/libatutils
15CFLAGS += -I$(LINUX_DIR)/include
16CFLAGS += -g
17
18
19##############USER COMIZE END##################
20
21CFLAGS += -I$(zte_app_path)/include
22CFLAGS += -fPIC
23LDFLAGS += -shared
24
25all: $(LIB_STATIC) $(LIB_SHARED)
26
27$(LIB_STATIC) : $(OBJS)
28 $(AR) rcs $(LIB_STATIC) $(OBJS)
29
30$(LIB_SHARED): $(OBJS)
31 $(CC) $(LDFLAGS) -o $@ $^
32
33romfs:
34 $(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED)
35
36clean:
37 -$(RM) *.a *.o *.so $(LIB_SHARED) $(LIB_STATIC) $(OBJS)
38