diff options
author | Pavel Roskin <proski@gnu.org> | 2009-04-07 21:04:10 (GMT) |
---|---|---|
committer | Thomas Graf <tgr@plip.localdomain> | 2009-04-16 10:29:22 (GMT) |
commit | 8ee16e6688657886f591f0841cb8e892743ecf2a (patch) | |
tree | 05fb2c70c81f9ac1ff5bee9f28b9568c25de4270 | |
parent | a8cd7b62c86127e2c946373d50efac9d2ed8da38 (diff) | |
download | libnl-8ee16e6688657886f591f0841cb8e892743ecf2a.zip libnl-8ee16e6688657886f591f0841cb8e892743ecf2a.tar.gz libnl-8ee16e6688657886f591f0841cb8e892743ecf2a.tar.bz2 |
Separate compiling from linking
This helps users understand where possible warnings come from.
It also allows more find-grained control over the build flags.
-rw-r--r-- | src/Makefile | 6 |
1 files 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 |