summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-08-15 15:09:13 -0400
committerOri Bernstein <ori@eigenstate.org>2014-08-15 15:09:13 -0400
commit15dd4c931b2891c14151c4277f0b7aeab282c15a (patch)
treeb9f613dd702a0e2098257124c957d89e71c3c81c /mk
parent381c59a60d7a67dee8048b6de0fcdeee56260ce6 (diff)
downloadmc-15dd4c931b2891c14151c4277f0b7aeab282c15a.tar.gz
Disable implicit rules.
Implicit rules were preventing the '.deps' directory from being created correctly. They also might have caused sporadic failures due to a missing dependency on generated headers. This kills them. Explicit is better than implicit.
Diffstat (limited to 'mk')
-rw-r--r--mk/c.mk2
-rw-r--r--mk/lexyacc.mk2
2 files changed, 4 insertions, 0 deletions
diff --git a/mk/c.mk b/mk/c.mk
index ecc8a7d..5fb3030 100644
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -10,6 +10,8 @@ CFLAGS += -Wall -Werror -Wextra -Wno-unused-parameter -Wno-missing-field-initial
CFLAGS += -g
CFLAGS += -MMD -MP -MF ${_DEPSDIR}/$(subst /,-,$*).d
+# disable implicit rules.
+.SUFFIXES:
.PHONY: clean clean-gen clean-bin clean-obj clean-misc clean-backups
.PHONY: all
diff --git a/mk/lexyacc.mk b/mk/lexyacc.mk
index ebd7b19..b8a8d6c 100644
--- a/mk/lexyacc.mk
+++ b/mk/lexyacc.mk
@@ -1,3 +1,5 @@
+.SUFFIXES:
+
NECFLAGS = $(subst -Werror,,$(subst -Wall,,$(CFLAGS)))
%.h %.c: %.y