blob: 74488eb91364e4e9935b4453a3cd3708eb41fc5c [file] [log] [blame]
#*******************************************************************************
# include ZTE library makefile
#*******************************************************************************
include $(COMMON_MK)
##############USER COMIZE BEGIN################
LIB_STATIC = libnvram.a
LIB_SHARED = libnvram.so
OBJS = nv_api.o cfg_api.o sys_infra.o cfg_api_wrapper.o
CFLAGS += -g
#LDFLAGS += -lpthread
##############USER COMIZE END##################
CFLAGS += -I$(APP_DIR)/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)