blob: 42c45e5480bb6b03d279ddf644fd53cbf8612829 [file] [log] [blame]
#*******************************************************************************
# include ZTE library makefile
#*******************************************************************************
include $(COMMON_MK)
##############USER COMIZE BEGIN################
LIB_STATIC = libkey.a
LIB_SHARED = libkey.so
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
CFLAGS += -g
#LDFLAGS += -lpthread
##############USER COMIZE END##################
CFLAGS += -I$(APP_DIR)/include
CFLAGS += -I$(TOPDIR)/pub/project/$(CHIP_NAME)/include/nv
CFLAGS += -I$(LINUX_DIR)/include
#CFLAGS += -I/$(TOPDIR)/pub/project/$(CHIP_NAME)/include/drv
#CFLAGS += -I/$(CP_ROOT_DIR)/ps/driver/inc/misc
CFLAGS += -fPIC
LDFLAGS += -shared
all: $(LIB_STATIC) $(LIB_SHARED)
$(LIB_STATIC) : $(OBJS)
$(AR) rcs $(LIB_STATIC) $(OBJS)
$(LIB_SHARED): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^
romfs:
$(ROMFSINST) $(LIB_SHARED) /lib/$(LIB_SHARED)
clean:
-$(RM) *.a *.o *.so $(LIB_SHARED) $(LIB_STATIC) $(OBJS)