| #******************************************************************************* |
| # include ZTE library makefile |
| #******************************************************************************* |
| include $(COMMON_MK) |
| |
| ##############USER COMIZE BEGIN################ |
| LIB_STATIC = libcpnv.a |
| LIB_SHARED = libcpnv.so |
| |
| OBJS = cpnv.o |
| |
| ifeq ($(USE_NVRO_BACKUP),yes) |
| OBJS += nvro.o mtd.o file.o |
| endif |
| |
| CFLAGS += -g -Werror=implicit-function-declaration |
| #LDFLAGS += -lpthread |
| ##############USER COMIZE END################## |
| |
| CFLAGS += -I$(APP_DIR)/include |
| #CFLAGS += -I$(TOPDIR)/pub/project/$(CHIP_NAME)/include/nv |
| #CFLAGS += -I$(LINUX_DIR)/include |
| CFLAGS += -I$(zte_lib_path)/libnvram |
| CFLAGS += -I$(zte_lib_path)/libssl/install/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) |
| |