blob: 539f88960f230af8ce444d99851067aff127c75f [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#*******************************************************************************
2# include ZTE library makefile
3#*******************************************************************************
4include $(COMMON_MK)
5
6##############USER COMIZE BEGIN################
7
8LIB_STATIC = liblpa.a
9LIB_SHARED = liblpa.so
10
11INTERFACELIB = libes10.a
12
13OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
14
15CFLAGS += -I$(zte_lib_path)/libssl/install/include
16CFLAGS += -I$(LINUX_DIR)/include
17CFLAGS += -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
24CFLAGS += -I$(zte_app_path)/include
25CFLAGS += -fPIC
26LDFLAGS += -shared
27
28
29ifneq ($(MK_SDK_VERSION),yes)
30all: $(INTERFACELIB) $(LIB_STATIC)
31else
32all: $(LIB_STATIC)
33endif
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
44romfs:
45 @echo lpa no so
46
47clean:
48ifneq ($(MK_SDK_VERSION),yes)
49 ${MAKE} -C ./es10 clean
50 -$(RM) *.o $(LIB_SHARED) $(LIB_STATIC) $(OBJS)
51else
52 -$(RM) *.o $(LIB_SHARED) $(LIB_STATIC) $(OBJS)
53endif