Files
Upsilon/quiz/Makefile
Romain Goyet 84430961da Executables are not always .elf files
Change-Id: I1abebbe9d3e7a4a208ba912f1f29ceddf23617ca
2016-11-05 21:01:06 +01:00

15 lines
427 B
Makefile

SFLAGS += -Iquiz/include
symbols_file = $(addprefix quiz/src/, symbols.c)
products += $(symbols_file)
$(symbols_file): $(tests)
@echo "AWK $@"
@awk -f quiz/src/symbols.awk $(tests) > $@
runner_objs += $(addprefix quiz/src/, runner.o symbols.o)
test_objs = $(subst .c,.o, $(subst .cpp,.o,$(tests)))
products += test.$(EXE) test.hex test.bin $(runner_objs) $(test_objs)
test.$(EXE): $(objs) $(runner_objs) $(test_objs)