diff options
author | midipix <writeonce@midipix.org> | 2016-05-07 09:26:23 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-09-21 19:45:53 -0400 |
commit | 99b1a6b8aa006eebd9550d156d6ff9f4501a5966 (patch) | |
tree | 37001a4f0b4e1ef978d7e4c581652b4326b5fe79 | |
parent | cfdc6700258f58cc9243c38adf0758b185ea6560 (diff) | |
download | bcparser-99b1a6b8aa006eebd9550d156d6ff9f4501a5966.tar.bz2 bcparser-99b1a6b8aa006eebd9550d156d6ff9f4501a5966.tar.xz |
build system: added source list.
-rw-r--r-- | project/common.mk | 10 |
1 files changed, 8 insertions, 2 deletions
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)) |