blob: 557d792ee7437fce90be8c951a41fcee7cb1097c [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001#*******************************************************************************
2# include ZTE library makefile
3#*******************************************************************************
4include $(COMMON_MK)
5
6##############USER COMIZE BEGIN################
7
8LIB_STATIC = libflags.a
9LIB_SHARED = libflags.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)