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 |
| 11 | CFLAGS += -I$(LIB_DIR)/libupi_ab/inc |
| 12 | CFLAGS += -g -Werror=implicit-function-declaration
|
| 13 | |
| 14 | |
| 15 | LDLIBS = -lnvram_sc -L$(LIB_DIR)/libnvram |
| 16 | LDLIBS += -lupi_ab -L$(LIB_DIR)/libupi_ab |
| 17 | LDLIBS += -lcrypto -L$(LIB_DIR)/libssl/install/lib |
| 18 |
|
| 19 | ##############USER COMIZE END################## |
| 20 | |
| 21 | #******************************************************************************* |
| 22 | # targets
|
| 23 | #*******************************************************************************
|
| 24 | all: $(EXEC)
|
| 25 |
|
| 26 | $(EXEC): $(OBJS)
|
| 27 | $(CC) $(LDFLAGS) -o $@ $^ -Wl,--start-group $(LDLIBS) $(LDLIBS_$@) -Wl,--end-group
|
| 28 | @cp $@ $@.elf |
| 29 |
|
| 30 | romfs: |
| 31 | $(ROMFSINST) $(EXEC) /bin/$(EXEC)
|
| 32 |
|
| 33 | clean:
|
| 34 | -rm -f $(EXEC) *.elf *.gdb *.o
|
| 35 |
|