blob: ffcee4a0265b15aa020fee42e7dfb40f8aa217d0 [file] [log] [blame]
xf.libdd93d52023-05-12 07:10:14 -07001#*******************************************************************************
2# include ZTE library makefile
3#*******************************************************************************
4include $(COMMON_MK)
5
6LIB_STATIC = libatreg.a
7LIB_SHARED = libatreg.so
8
9OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
10
11CFLAGS += -I$(zte_app_path)/zte_comm/at_ctl/inc
12CFLAGS += -I$(zte_lib_path)/libatutils
13CFLAGS += -I$(LINUX_DIR)/include
14
15CFLAGS += -g -Werror=implicit-function-declaration
16CFLAGS += -I$(zte_app_path)/include
17CFLAGS += -fPIC
18
19LDFLAGS += -shared
20
21
22#*******************************************************************************
23# targets
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)