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 | #include ../net_team.mk |
| 8 | |
| 9 | #LIB_STATIC = libztedmapp.a |
| 10 | LIB_SHARED = libztedmapp.so |
| 11 | |
| 12 | OBJS = ./src/libzte_dmapp.o |
| 13 | |
| 14 | CFLAGS += -I$(zte_app_path)/zte_comm/at_ctl/inc |
| 15 | CFLAGS += -I$(zte_lib_path)/libatutils |
| 16 | CFLAGS += -I./inc |
| 17 | CFLAGS += -g |
| 18 | |
| 19 | |
| 20 | ##############USER COMIZE END################## |
| 21 | |
| 22 | CFLAGS += -I$(zte_app_path)/include |
| 23 | CFLAGS += -fPIC |
| 24 | LDFLAGS += -shared |
| 25 | |
| 26 | all: $(LIB_STATIC) $(LIB_SHARED) |
| 27 | |
| 28 | $(LIB_STATIC) : $(OBJS) |
| 29 | $(AR) rcs $(LIB_STATIC) $(OBJS) |
| 30 | |
| 31 | $(LIB_SHARED): $(OBJS) |
| 32 | $(CC) $(LDFLAGS) -o $@ $^ |
| 33 | |
| 34 | romfs: |
| 35 | $(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED) |
| 36 | |
| 37 | clean: |
| 38 | -$(RM) *.a *.o *.so $(LIB_SHARED) $(LIB_STATIC) $(OBJS) |
| 39 | |