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 | LIB_STATIC = libamt.a |
| 8 | LIB_SHARED = libamt.so |
| 9 | |
| 10 | OBJS = amtnv.o |
| 11 | |
| 12 | CFLAGS += -g |
| 13 | #LDFLAGS += -lpthread |
| 14 | ##############USER COMIZE END################## |
| 15 | |
| 16 | CFLAGS += -I$(APP_DIR)/include |
| 17 | CFLAGS += -I$(TOPDIR)/pub/project/$(CHIP_NAME)/include/nv |
| 18 | CFLAGS += -I$(LINUX_DIR)/include |
| 19 | CFLAGS += -I/$(TOPDIR)/pub/project/$(CHIP_NAME)/include/drv |
| 20 | CFLAGS += -I/$(CP_ROOT_DIR)/ps/driver/inc/misc |
| 21 | CFLAGS += -fPIC |
| 22 | LDFLAGS += -shared |
| 23 | |
| 24 | all: $(LIB_STATIC) $(LIB_SHARED) |
| 25 | |
| 26 | $(LIB_STATIC) : $(OBJS) |
| 27 | $(AR) rcs $(LIB_STATIC) $(OBJS) |
| 28 | |
| 29 | $(LIB_SHARED): $(OBJS) |
| 30 | $(CC) $(LDFLAGS) -o $@ $^ |
| 31 | |
| 32 | romfs: |
| 33 | $(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED) |
| 34 | |
| 35 | clean: |
| 36 | -$(RM) *.a *.o *.so $(LIB_SHARED) $(LIB_STATIC) $(OBJS) |
| 37 | |