Commit 9291c3df authored by Federico Vaga's avatar Federico Vaga

rt: OUTPUT variable is mandatory in order to run make

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 53d881ef
......@@ -54,9 +54,15 @@ ifeq ($(LIBMOCKTURTLE_ENABLE), 1)
OBJS += $(TRTL)/rt/libmockturtle-rt.o
endif
MOCKTURTLE_LDSCRIPT ?= $(TRTL)/rt/mockturtle.ld
all: clean $(OUTPUT)
ifndef OUTPUT
@echo "OUTPUT variable is mandatory"
@exit
endif
$(OUTPUT): $(MOCKTURTLE_LDSCRIPT) $(OBJS)
${CC} -o $(OUTPUT).elf -nostartfiles $(OBJS) -T $(MOCKTURTLE_LDSCRIPT) -lgcc -lc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment