Re-organize and re-prefix the Makefile variables

This commit is contained in:
Romain Goyet
2018-02-01 15:39:52 +01:00
committed by EmilieNumworks
parent 0a3623421c
commit 489b26e813
24 changed files with 120 additions and 111 deletions

View File

@@ -1,11 +1,14 @@
SFLAGS += -Iquiz/include
QUIZ_USE_CONSOLE ?= 0
quiz/src/runner.o: SFLAGS += -DQUIZ_USE_CONSOLE=$(QUIZ_USE_CONSOLE)
symbols_file = $(addprefix quiz/src/, symbols.c)
products += $(symbols_file)
$(symbols_file): $(tests)
@echo "AWK $@"
@awk -f quiz/src/symbols.awk $(tests) > $@
$(Q) awk -f quiz/src/symbols.awk $(tests) > $@
runner_objs += $(addprefix quiz/src/, runner.o symbols.o i18n.o)
test_objs += $(subst .c,.o, $(subst .cpp,.o,$(tests)))