summaryrefslogtreecommitdiff
path: root/project/common.mk
blob: a2c0c112e7a3c72659ca03b301007ce5d20bedf9 (plain)
1
2
3
4
5
6
7
8
9
common_src_dirs   = $(SOURCE_DIR)/src/*/
common_src_files  = $(addsuffix *.c,$(common_src_dirs))
common_sort_files = $(sort $(wildcard $(common_src_files)))
COMMON_SRCS       = $(subst $(SOURCE_DIR)/src/,src/,$(common_sort_files))

app_src_dirs      = $(SOURCE_DIR)/src/
app_src_files     = $(addsuffix *.c,$(app_src_dirs))
app_sort_files    = $(sort $(wildcard $(app_src_files)))
APP_SRCS          = $(subst $(SOURCE_DIR)/src/,src/,$(app_sort_files))