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 += -Ikandinsky/include
src += $(addprefix kandinsky/src/,\
kandinsky_src += $(addprefix kandinsky/src/,\
color.cpp \
context.cpp \
context_line.cpp \
@@ -15,12 +15,12 @@ src += $(addprefix kandinsky/src/,\
rect.cpp \
)
src += $(addprefix kandinsky/fonts/, \
kandinsky_src += $(addprefix kandinsky/fonts/, \
LargeFont.ttf \
SmallFont.ttf \
)
tests += $(addprefix kandinsky/test/,\
tests_src += $(addprefix kandinsky/test/,\
color.cpp\
font.cpp\
rect.cpp\