blob: 1cadead0721a5b438b0f3ecab42cbe09864fecb8 [file] [log] [blame]
yuezonghe824eb0c2024-06-27 02:32:26 -07001#*******************************************************************************
2# include ZTE library makefile
3#*******************************************************************************
4include $(COMMON_MK)
5
6##############USER COMIZE BEGIN################
7#include ../net_team.mk
8
9LIB_STATIC = libsqlite.a
10LIB_SHARED = libsqlite.so
11
12OBJS = sqlite3.o
13
14CFLAGS += -g
15
16##############USER COMIZE END##################
17
18CFLAGS += -I$(zte_app_path)/include
19CFLAGS += -fPIC
20LDFLAGS += -shared
21
22all: $(LIB_STATIC) $(LIB_SHARED)
23
24$(LIB_STATIC) : $(OBJS)
25 $(AR) rcs $(LIB_STATIC) $(OBJS)
26
27$(LIB_SHARED): $(OBJS)
28 $(CC) $(LDFLAGS) -o $@ $^
29
30romfs:
31 $(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED)
32
33clean:
34 -$(RM) *.a *.o *.so $(LIB_SHARED) $(LIB_STATIC) $(OBJS)
35