]>
Commit | Line | Data |
---|---|---|
aba5acdf | 1 | IPOBJ=ip.o ipaddress.o iproute.o iprule.o \ |
288384f2 | 2 | rtm_map.o iptunnel.o ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \ |
1cb54e58 | 3 | ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o \ |
147da5de | 4 | ipxfrm.o xfrm_state.o xfrm_policy.o xfrm_monitor.o |
aba5acdf SH |
5 | |
6 | RTMONOBJ=rtmon.o | |
7 | ||
8 | ALLOBJ=$(IPOBJ) $(RTMONOBJ) | |
03ffadfe SH |
9 | SCRIPTS=ifcfg rtpr routel routef |
10 | TARGETS=ip rtmon | |
aba5acdf | 11 | |
03ffadfe | 12 | all: $(TARGETS) $(SCRIPTS) |
aba5acdf SH |
13 | |
14 | ip: $(IPOBJ) $(LIBNETLINK) $(LIBUTIL) | |
15 | ||
16 | rtmon: $(RTMONOBJ) $(LIBNETLINK) | |
17 | ||
18 | install: all | |
19 | install -m 0755 -s $(TARGETS) $(DESTDIR)$(SBINDIR) | |
03ffadfe | 20 | install -m 0755 $(SCRIPTS) $(DESTDIR)$(SBINDIR) |
aba5acdf SH |
21 | |
22 | clean: | |
23 | rm -f $(ALLOBJ) $(TARGETS) | |
24 | ||
1d934839 PM |
25 | LDLIBS += -ldl |
26 | LDFLAGS += -Wl,-export-dynamic |