shithub: mc

Download patch

ref: d7456331d1e9a37c00ffb481de9af15104e7d9db
parent: 961fb6813b00f224c219d026da48cf6d01c779ab
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 $<