blob: 1cadead0721a5b438b0f3ecab42cbe09864fecb8 [file] [log] [blame]
#*******************************************************************************
# include ZTE library makefile
#*******************************************************************************
include $(COMMON_MK)
##############USER COMIZE BEGIN################
#include ../net_team.mk
LIB_STATIC = libsqlite.a
LIB_SHARED = libsqlite.so
OBJS = sqlite3.o
CFLAGS += -g
##############USER COMIZE END##################
CFLAGS += -I$(zte_app_path)/include
CFLAGS += -fPIC
LDFLAGS += -shared
all: $(LIB_STATIC) $(LIB_SHARED)
$(LIB_STATIC) : $(OBJS)
$(AR) rcs $(LIB_STATIC) $(OBJS)
$(LIB_SHARED): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^
romfs:
$(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED)
clean:
-$(RM) *.a *.o *.so $(LIB_SHARED) $(LIB_STATIC) $(OBJS)