From 99b1a6b8aa006eebd9550d156d6ff9f4501a5966 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 7 May 2016 09:26:23 -0400 Subject: build system: added source list. --- project/common.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'project') diff --git a/project/common.mk b/project/common.mk index d19f30c..40ba528 100644 --- a/project/common.mk +++ b/project/common.mk @@ -1,3 +1,9 @@ -COMMON_SRCS = \ +common_src_dirs = $(PROJECT_DIR)/src/*/ +common_src_files = $(addsuffix *.c,$(common_src_dirs)) +common_sort_files = $(sort $(wildcard $(common_src_files))) +COMMON_SRCS = $(subst $(PROJECT_DIR)/src/,src/,$(common_sort_files)) -APP_SRCS = \ +app_src_dirs = $(PROJECT_DIR)/src/ +app_src_files = $(addsuffix *.c,$(app_src_dirs)) +app_sort_files = $(sort $(wildcard $(app_src_files))) +APP_SRCS = $(subst $(PROJECT_DIR)/src/,src/,$(app_sort_files)) -- cgit v1.2.3