ref: 4ca9e2fd9c0213a83b79554dd76d3e19aa6adec7
parent: 0d51143d005aaec1dc0bfdcede3cc0cac86d925f
author: Ori Bernstein <[email protected]>
date: Mon Aug 18 20:17:55 EDT 2014
A little bit more cleanup. $(EXTRADEP) now works for both lib and bin targets, and lexyacc.mk doesn't gratuitously define extra variables.
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -20,7 +20,7 @@
all: subdirs $(BIN) $(LIB) $(EXTRA)
-$(LIB): $(OBJ) $(DEPS)
+$(LIB): $(OBJ) $(EXTRADEP) $(DEPS)
$(AR) -rcs $@ $(OBJ)
$(BIN): $(OBJ) $(EXTRADEP) $(DEPS)
--- 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 $<