| #******************************************************************************* |
| # include ZTE library makefile |
| #******************************************************************************* |
| include $(COMMON_MK) |
| |
| ##############USER COMIZE BEGIN################ |
| |
| LIB_STATIC = liblpa.a |
| LIB_SHARED = liblpa.so |
| |
| INTERFACELIB = libes10.a |
| |
| OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) |
| |
| CFLAGS += -I$(zte_lib_path)/libssl/install/include |
| CFLAGS += -I$(LINUX_DIR)/include |
| CFLAGS += -g |
| |
| #CFLAGS += -DWEBS_SSL_SUPPORT -DOPENSSL |
| #LDLIBS += -L$(zte_lib_path)/libssl/install/lib -lssl -lcrypto |
| #LDLIBS += -ldl |
| ##############USER COMIZE END################## |
| |
| CFLAGS += -I$(zte_app_path)/include |
| CFLAGS += -fPIC |
| LDFLAGS += -shared |
| |
| |
| ifneq ($(MK_SDK_VERSION),yes) |
| all: $(INTERFACELIB) $(LIB_STATIC) |
| else |
| all: $(LIB_STATIC) |
| endif |
| |
| $(INTERFACELIB): |
| ${MAKE} -C ./es10 all |
| |
| $(LIB_STATIC): $(OBJS) |
| $(AR) rcs $(LIB_STATIC) $(OBJS) |
| |
| $(LIB_SHARED): $(OBJS) |
| $(CC) $(LDFLAGS) -o $@ $^ $(INTERFACELIB) |
| |
| romfs: |
| @echo lpa no so |
| |
| clean: |
| ifneq ($(MK_SDK_VERSION),yes) |
| ${MAKE} -C ./es10 clean |
| -$(RM) *.o $(LIB_SHARED) $(LIB_STATIC) $(OBJS) |
| else |
| -$(RM) *.o $(LIB_SHARED) $(LIB_STATIC) $(OBJS) |
| endif |