blob: 8eb93b5da8bb86a5d1fe0866cb1f18087bc7c3c3 [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#include ../net_team.mk
8
9LIB_STATIC = libatutils.a
10LIB_SHARED = libatutils.so
11
12OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
13
14#CFLAGS += -I$(zte_app_path)/at_ctl/inc
15#CFLAGS += -I$(zte_lib_path)/libatutils
16CFLAGS += -I$(LINUX_DIR)/include
17CFLAGS += -g -Werror=implicit-function-declaration
18
19
20##############USER COMIZE END##################
21
22CFLAGS += -I$(zte_app_path)/include
23CFLAGS += -fPIC
24LDFLAGS += -shared
25
26all: $(LIB_STATIC) $(LIB_SHARED)
27
28$(LIB_STATIC) : $(OBJS)
29 $(AR) rcs $(LIB_STATIC) $(OBJS)
30
31$(LIB_SHARED): $(OBJS)
32 $(CC) $(LDFLAGS) -o $@ $^
33
34romfs:
35 $(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED)
36
37clean:
38 -$(RM) *.a *.o *.so $(LIB_SHARED) $(LIB_STATIC) $(OBJS)
39