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