include CFLAGS when building demos

This commit is contained in:
Steffen Jaeckel 2017-04-18 16:05:11 +02:00
parent 65ace1a378
commit 290926fe8a

View File

@ -255,7 +255,7 @@ $(1): demos/$(1).o library
ifneq ($V,1)
@echo " * $${CC} $$@"
endif
$${silent} $$(CC) $$< $$(LIB_PRE) $$(LIBNAME) $$(LIB_POST) $$(EXTRALIBS) -o $(1)
$${silent} $$(CC) $$(CFLAGS) $$< $$(LIB_PRE) $$(LIBNAME) $$(LIB_POST) $$(EXTRALIBS) -o $(1)
endef
$(foreach demo, $(strip $(DEMOS)), $(eval $(call DEMO_template,$(demo))))