blob: f04e30e1d2f56c09740bb20c84cdd10ce20b2041 [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
9#LIB_STATIC = libztedmapp.a
10LIB_SHARED = libztedmapp.so
11
12OBJS = ./src/libzte_dmapp.o
13
14CFLAGS += -I$(zte_app_path)/zte_comm/at_ctl/inc
15CFLAGS += -I$(zte_lib_path)/libatutils
16CFLAGS += -I./inc
17CFLAGS += -g
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