From 8ee16e6688657886f591f0841cb8e892743ecf2a Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 7 Apr 2009 17:04:10 -0400 Subject: Separate compiling from linking This helps users understand where possible warnings come from. It also allows more find-grained control over the build flags. --- src/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 827754e..6a7bfd2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -38,15 +38,15 @@ nf-ct-list: ct-utils.o nf-log: log-utils.o rtnl-utils.o nf-queue: queue-utils.o rtnl-utils.o -nl-%: nl-%.c +nl-%: nl-%.o @echo " LD $@"; \ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -lnl-route -genl-%: genl-%.c +genl-%: genl-%.o @echo " LD $@"; \ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -lnl-genl -nf-%: nf-%.c +nf-%: nf-%.o @echo " LD $@"; \ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -lnl-nf -lnl-route -- cgit v0.12