summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
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