blob: 3582a634c338beec33ffea364ecae959774149b1 [file] [log] [blame]
#*******************************************************************************
# include build/common makefile
#*******************************************************************************
include $(COMMON_MK)
##############USER COMIZE BEGIN################
EXEC = nvro_tool
OBJS = main.o
CFLAGS += -I$(APP_DIR)/include
CFLAGS += -I$(LIB_DIR)/libcpnv
CFLAGS += -g -Werror=implicit-function-declaration
LDLIBS = -lcpnv -L$(LIB_DIR)/libcpnv
LDLIBS += -lnvram_sc -L$(LIB_DIR)/libnvram
LDLIBS += -lflags -L$(LIB_DIR)/libflags
LDLIBS += -lcrypto -L$(LIB_DIR)/libssl/install/lib
##############USER COMIZE END##################
#*******************************************************************************
# targets
#*******************************************************************************
EXECS = $(EXEC)
all: $(EXECS)
$(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