forked from pool/iproute2
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
|
Index: iproute2-4.9.0/misc/Makefile
|
||
|
===================================================================
|
||
|
--- iproute2-4.9.0.orig/misc/Makefile
|
||
|
+++ iproute2-4.9.0/misc/Makefile
|
||
|
@@ -17,23 +17,24 @@ endif
|
||
|
ifeq ($(IP_CONFIG_SETNS),y)
|
||
|
CFLAGS += -DHAVE_SETNS
|
||
|
endif
|
||
|
+CFLAGS += -I$(DBM_INCLUDE)
|
||
|
|
||
|
all: $(TARGETS)
|
||
|
|
||
|
ss: $(SSOBJ)
|
||
|
$(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
|
||
|
|
||
|
-nstat: nstat.c
|
||
|
- $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o nstat nstat.c $(LIBNETLINK) -lm
|
||
|
+nstat: nstat.o
|
||
|
+ $(QUIET_CC)$(CC) $(LDFLAGS) -o nstat nstat.o $(LIBNETLINK) -lm
|
||
|
|
||
|
-ifstat: ifstat.c
|
||
|
- $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o ifstat ifstat.c $(LIBNETLINK) -lm
|
||
|
+ifstat: ifstat.o
|
||
|
+ $(QUIET_CC)$(CC) $(LDFLAGS) -o ifstat ifstat.o $(LIBNETLINK) -lm
|
||
|
|
||
|
-rtacct: rtacct.c
|
||
|
- $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o rtacct rtacct.c $(LIBNETLINK) -lm
|
||
|
+rtacct: rtacct.o
|
||
|
+ $(QUIET_CC)$(CC) $(LDFLAGS) -o rtacct rtacct.o $(LIBNETLINK) -lm
|
||
|
|
||
|
-arpd: arpd.c
|
||
|
- $(QUIET_CC)$(CC) $(CFLAGS) -I$(DBM_INCLUDE) $(LDFLAGS) -o arpd arpd.c $(LIBNETLINK) -ldb -lpthread
|
||
|
+arpd: arpd.o
|
||
|
+ $(QUIET_CC)$(CC) $(LDFLAGS) -o arpd arpd.o $(LIBNETLINK) -ldb -lpthread
|
||
|
|
||
|
ssfilter.c: ssfilter.y
|
||
|
$(QUIET_YACC)bison ssfilter.y -o ssfilter.c
|