aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Maxime Dénès <mail@maximedenes.fr>2016-12-05 10:58:04 +0100
committerGravatar Maxime Dénès <mail@maximedenes.fr>2016-12-05 10:58:04 +0100
commit7aa2c39387a9781bf406c763c538859f24b8b7f3 (patch)
tree97ed6b467b28098dbf744e1637fd223e4e887cca /Makefile
parentf653036a73f008168809d3f50041382fe3ee52a1 (diff)
Compute dependency of C files only in kernel/byterun.
Some C files included in build scripts (in dev/build) were triggering errors or warnings on non-win32 platforms. Note that ide/ide_win32_stubs.c was already handled through an ad-hoc rule in Makefile. If you add a new C file outside of kernel/byterun, please extend the CFILES variable.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6649542c8..1dd4efca2 100644
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,10 @@ define find
$(shell find . $(FIND_VCS_CLAUSE) '(' -name $(1) ')' -print | sed 's|^\./||')
endef
+define findindir
+ $(shell find $(1) $(FIND_VCS_CLAUSE) '(' -name $(2) ')' -print | sed 's|^\./||')
+endef
+
define findx
$(shell find . $(FIND_VCS_CLAUSE) '(' -name $(1) ')' -exec $(2) {} \; | sed 's|^\./||')
endef
@@ -68,7 +72,7 @@ endef
LEXFILES := $(call find, '*.mll')
export MLLIBFILES := $(call find, '*.mllib') $(call find, '*.mlpack')
export ML4FILES := $(call find, '*.ml4')
-export CFILES := $(call find, '*.c')
+export CFILES := $(call findindir, 'kernel/byterun', '*.c')
# NB: The lists of currently existing .ml and .mli files will change
# before and after a build or a make clean. Hence we do not export