De-obfuscate the build process to help spot errors --- ./lib/Makefile.orig 2012-12-20 12:30:46.000000000 +0100 +++ ./lib/Makefile 2019-12-02 15:04:18.992539119 +0100 @@ -44,29 +44,29 @@ all: - @echo " MAKE $(OUT_SLIB)"; \ - $(MAKE) $(OUT_SLIB); \ + @echo " MAKE $(OUT_SLIB)"; + $(MAKE) $(OUT_SLIB); $(MAKE) $(OUT_AR) $(OUT_SLIB): ../Makefile.opts $(OBJ) - @echo " LD $(OUT_SLIB)"; \ + @echo " LD $(OUT_SLIB)"; $(CC) -shared -Wl,-soname,libnl.so.1 -o $(OUT_SLIB) $(OBJ) $(LIBNL_LIB) -lc - @echo " LN $(OUT_SLIB) $(LN1_SLIB)"; \ + @echo " LN $(OUT_SLIB) $(LN1_SLIB)"; rm -f $(LN1_SLIB) ; $(LN) -s $(OUT_SLIB) $(LN1_SLIB) - @echo " LN $(LN1_SLIB) $(LN_SLIB)"; \ + @echo " LN $(LN1_SLIB) $(LN_SLIB)"; rm -f $(LN_SLIB) ; $(LN) -s $(LN1_SLIB) $(LN_SLIB) $(OUT_AR): ../Makefile.opts $(OBJ) - @echo " AR $(OUT_AR)"; \ + @echo " AR $(OUT_AR)"; $(AR) crus $(OUT_AR) $(OBJ) clean: - @echo " CLEAN lib"; \ - $(RM) -f $(OBJ) $(OUT_SLIB) $(LN_SLIB) $(LN1_SLIB); \ + @echo " CLEAN lib"; + $(RM) -f $(OBJ) $(OUT_SLIB) $(LN_SLIB) $(LN1_SLIB); $(RM) -f $(DEPS) $(OUT_SLIB) $(LN_SLIB) $(LN1_SLIB) distclean: - @echo " DISTCLEAN lib"; \ + @echo " DISTCLEAN lib"; $(RM) -f $(DEPS) install: --- ./src/Makefile.orig 2008-01-14 16:48:45.000000000 +0100 +++ ./src/Makefile 2019-12-02 15:04:35.496527203 +0100 @@ -22,19 +22,19 @@ $(TOOLS): utils.o nl-%: nl-%.c - @echo " LD $@"; \ + @echo " LD $@"; $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) genl-%: genl-%.c - @echo " LD $@"; \ + @echo " LD $@"; $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) nf-%: nf-%.c - @echo " LD $@"; \ + @echo " LD $@"; $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) clean: - @echo " CLEAN src"; \ + @echo " CLEAN src"; rm -f $(TOOLS) utils.o distclean: clean --- ./Makefile.rules.orig 2019-12-02 15:15:55.984035915 +0100 +++ ./Makefile.rules 2019-12-02 15:16:16.556021061 +0100 @@ -13,11 +13,11 @@ .SUFFIXES: .d .c %.o: %.c - @echo " CC $<"; \ + @echo " CC $<"; $(CC) $(CFLAGS) -c -o $@ $< %.d: %.c - @echo " DEP $<"; \ + @echo " DEP $<"; $(CC) $(DEPFLAGS) $< > $@.tmp; \ sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.tmp > $@; \ rm -f $@.tmp