diff options
author | Ori Bernstein <ori@eigenstate.org> | 2014-08-15 15:09:13 -0400 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2014-08-15 15:09:13 -0400 |
commit | 15dd4c931b2891c14151c4277f0b7aeab282c15a (patch) | |
tree | b9f613dd702a0e2098257124c957d89e71c3c81c /mk | |
parent | 381c59a60d7a67dee8048b6de0fcdeee56260ce6 (diff) | |
download | mc-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.mk | 2 | ||||
-rw-r--r-- | mk/lexyacc.mk | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -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 |