summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-08-19 00:17:55 -0400
committerOri Bernstein <ori@eigenstate.org>2014-08-19 00:17:55 -0400
commitaa20d802cd4311a2f56914c0100542f8891f31a8 (patch)
tree08c81e870453d6789d1d8c57eae7a8e6a20597db /mk
parent852f60121592169bb597db06bb8765a270a8d03c (diff)
downloadmc-aa20d802cd4311a2f56914c0100542f8891f31a8.tar.gz
A little bit more cleanup.
$(EXTRADEP) now works for both lib and bin targets, and lexyacc.mk doesn't gratuitously define extra variables.
Diffstat (limited to 'mk')
-rw-r--r--mk/c.mk2
-rw-r--r--mk/lexyacc.mk2
2 files changed, 1 insertions, 3 deletions
diff --git a/mk/c.mk b/mk/c.mk
index fc17072..3c807ac 100644
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -20,7 +20,7 @@ BIN ?= $(INSTBIN)
all: subdirs $(BIN) $(LIB) $(EXTRA)
-$(LIB): $(OBJ) $(DEPS)
+$(LIB): $(OBJ) $(EXTRADEP) $(DEPS)
$(AR) -rcs $@ $(OBJ)
$(BIN): $(OBJ) $(EXTRADEP) $(DEPS)
diff --git a/mk/lexyacc.mk b/mk/lexyacc.mk
index b8a8d6c..b8062a1 100644
--- a/mk/lexyacc.mk
+++ b/mk/lexyacc.mk
@@ -1,7 +1,5 @@
.SUFFIXES:
-NECFLAGS = $(subst -Werror,,$(subst -Wall,,$(CFLAGS)))
-
%.h %.c: %.y
yacc -d -o$*.c $<