]> granicus.if.org Git - libnl/commitdiff
Separate compiling from linking
authorPavel Roskin <proski@gnu.org>
Tue, 7 Apr 2009 21:04:10 +0000 (17:04 -0400)
committerThomas Graf <tgr@plip.localdomain>
Thu, 16 Apr 2009 10:29:22 +0000 (12:29 +0200)
This helps users understand where possible warnings come from.
It also allows more find-grained control over the build flags.

src/Makefile

index 827754e0100c0dc183fd900ce3ded8c99ee85276..6a7bfd2bfe10cb361ac9948df4a03b4a0f44d46e 100644 (file)
@@ -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