Separate compiling from linking

This helps users understand where possible warnings come from.
It also allows more find-grained control over the build flags.
This commit is contained in:
Pavel Roskin 2009-04-07 17:04:10 -04:00 committed by Thomas Graf
parent a8cd7b62c8
commit 8ee16e6688

View 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