blob: 1df9e84b04d9111be9000aed0a4214af18c4a2af [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#*******************************************************************************
2# include build/common makefile
3#*******************************************************************************
4include $(COMMON_MK)
5
6##############USER COMIZE BEGIN################
7EXEC = ab_bootinfo
8OBJS = ab_bootinfo.o
9
10CFLAGS += -I$(APP_DIR)/include
lh9ed821d2023-04-07 01:36:19 -070011CFLAGS += -g -Werror=implicit-function-declaration
12
lh9ed821d2023-04-07 01:36:19 -070013LDLIBS = -lnvram_sc -L$(LIB_DIR)/libnvram
xf.li6c8fc1e2023-08-12 00:11:09 -070014LDLIBS += -lflags -L$(zte_lib_path)/libflags
lh9ed821d2023-04-07 01:36:19 -070015##############USER COMIZE END##################
16
17#*******************************************************************************
18# targets
19#*******************************************************************************
20all: $(EXEC)
21
22$(EXEC): $(OBJS)
23 $(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
24 @cp $@ $@.elf
25
26romfs:
27 $(ROMFSINST) $(EXEC) /bin/$(EXEC)
28
29clean:
30 -rm -f $(EXEC) *.elf *.gdb *.o
31