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