blob: 1df9e84b04d9111be9000aed0a4214af18c4a2af [file] [log] [blame]
#*******************************************************************************
# include build/common makefile
#*******************************************************************************
include $(COMMON_MK)
##############USER COMIZE BEGIN################
EXEC = ab_bootinfo
OBJS = ab_bootinfo.o
CFLAGS += -I$(APP_DIR)/include
CFLAGS += -g -Werror=implicit-function-declaration
LDLIBS = -lnvram_sc -L$(LIB_DIR)/libnvram
LDLIBS += -lflags -L$(zte_lib_path)/libflags
##############USER COMIZE END##################
#*******************************************************************************
# targets
#*******************************************************************************
all: $(EXEC)
$(EXEC): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
@cp $@ $@.elf
romfs:
$(ROMFSINST) $(EXEC) /bin/$(EXEC)
clean:
-rm -f $(EXEC) *.elf *.gdb *.o