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:
parent
a8cd7b62c8
commit
8ee16e6688
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue