lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #******************************************************************************* |
| 2 | # include ZTE library makefile |
| 3 | #******************************************************************************* |
| 4 | include $(COMMON_MK) |
| 5 | |
| 6 | ##############USER COMIZE BEGIN################ |
| 7 | |
| 8 | LIB_STATIC = liblpa.a |
| 9 | LIB_SHARED = liblpa.so |
| 10 | |
| 11 | INTERFACELIB = libes10.a |
| 12 | |
| 13 | OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) |
| 14 | |
| 15 | CFLAGS += -I$(zte_lib_path)/libssl/install/include |
| 16 | CFLAGS += -I$(LINUX_DIR)/include |
| 17 | CFLAGS += -g |
| 18 | |
| 19 | #CFLAGS += -DWEBS_SSL_SUPPORT -DOPENSSL |
| 20 | #LDLIBS += -L$(zte_lib_path)/libssl/install/lib -lssl -lcrypto |
| 21 | #LDLIBS += -ldl |
| 22 | ##############USER COMIZE END################## |
| 23 | |
| 24 | CFLAGS += -I$(zte_app_path)/include |
| 25 | CFLAGS += -fPIC |
| 26 | LDFLAGS += -shared |
| 27 | |
| 28 | |
| 29 | ifneq ($(MK_SDK_VERSION),yes) |
| 30 | all: $(INTERFACELIB) $(LIB_STATIC) |
| 31 | else |
| 32 | all: $(LIB_STATIC) |
| 33 | endif |
| 34 | |
| 35 | $(INTERFACELIB): |
| 36 | ${MAKE} -C ./es10 all |
| 37 | |
| 38 | $(LIB_STATIC): $(OBJS) |
| 39 | $(AR) rcs $(LIB_STATIC) $(OBJS) |
| 40 | |
| 41 | $(LIB_SHARED): $(OBJS) |
| 42 | $(CC) $(LDFLAGS) -o $@ $^ $(INTERFACELIB) |
| 43 | |
| 44 | romfs: |
| 45 | @echo lpa no so |
| 46 | |
| 47 | clean: |
| 48 | ifneq ($(MK_SDK_VERSION),yes) |
| 49 | ${MAKE} -C ./es10 clean |
| 50 | -$(RM) *.o $(LIB_SHARED) $(LIB_STATIC) $(OBJS) |
| 51 | else |
| 52 | -$(RM) *.o $(LIB_SHARED) $(LIB_STATIC) $(OBJS) |
| 53 | endif |