iproute2/ip/Makefile

33 lines
718 B
Makefile
Raw Normal View History

2004-04-16 04:56:59 +08:00
IPOBJ=ip.o ipaddress.o iproute.o iprule.o \
rtm_map.o iptunnel.o ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \
ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o \
ipxfrm.o xfrm_state.o xfrm_policy.o xfrm_monitor.o
2004-04-16 04:56:59 +08:00
IPOBJ += iplink_vlan.o
2004-04-16 04:56:59 +08:00
RTMONOBJ=rtmon.o
ALLOBJ=$(IPOBJ) $(RTMONOBJ)
SCRIPTS=ifcfg rtpr routel routef
TARGETS=ip rtmon
LIBS=link_veth.so
2004-04-16 04:56:59 +08:00
all: $(TARGETS) $(SCRIPTS) $(LIBS)
2004-04-16 04:56:59 +08:00
ip: $(IPOBJ) $(LIBNETLINK) $(LIBUTIL)
rtmon: $(RTMONOBJ) $(LIBNETLINK)
install: all
install -m 0755 -s $(TARGETS) $(DESTDIR)$(SBINDIR)
install -m 0755 $(SCRIPTS) $(DESTDIR)$(SBINDIR)
2004-04-16 04:56:59 +08:00
clean:
rm -f $(ALLOBJ) $(TARGETS)
LDLIBS += -ldl
LDFLAGS += -Wl,-export-dynamic
%.so: %.c
$(CC) $(CFLAGS) -shared $< -o $@