blob: ffcee4a0265b15aa020fee42e7dfb40f8aa217d0 [file] [log] [blame]
#*******************************************************************************
# include ZTE library makefile
#*******************************************************************************
include $(COMMON_MK)
LIB_STATIC = libatreg.a
LIB_SHARED = libatreg.so
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
CFLAGS += -I$(zte_app_path)/zte_comm/at_ctl/inc
CFLAGS += -I$(zte_lib_path)/libatutils
CFLAGS += -I$(LINUX_DIR)/include
CFLAGS += -g -Werror=implicit-function-declaration
CFLAGS += -I$(zte_app_path)/include
CFLAGS += -fPIC
LDFLAGS += -shared
#*******************************************************************************
# targets
#*******************************************************************************
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)