summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2009-04-07 21:04:10 (GMT)
committerThomas Graf <tgr@plip.localdomain>2009-04-16 10:29:22 (GMT)
commit8ee16e6688657886f591f0841cb8e892743ecf2a (patch)
tree05fb2c70c81f9ac1ff5bee9f28b9568c25de4270 /src
parenta8cd7b62c86127e2c946373d50efac9d2ed8da38 (diff)
downloadlibnl-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.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile6
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