Makefiles: avoid building all sources for each target; introduce more

modularity
This commit is contained in:
Émilie Feral
2019-07-11 14:40:25 +02:00
parent 518903c390
commit 059c596a80
40 changed files with 135 additions and 105 deletions

View File

@@ -1,6 +1,6 @@
SFLAGS += -Iescher/include
src += $(addprefix escher/src/,\
escher_src += $(addprefix escher/src/,\
alternate_empty_view_controller.cpp \
app.cpp \
bank_view_controller.cpp \
@@ -114,5 +114,5 @@ $(eval $(call rule_for, \
define depends_on_image
$(call object_for,$(1)): $(call object_for,$(2))
$(call object_for,$(1)): SFLAGS += $(foreach d,$(sort $(dir $(call object_for,$(1)))),-I$(d))
src += $(2)
escher_src += $(2)
endef