]> git.proxmox.com Git - mirror_iproute2.git/blob - tc/Makefile
Cleaner way to configure
[mirror_iproute2.git] / tc / Makefile
1 TCOBJ=tc.o tc_qdisc.o tc_class.o tc_filter.o tc_util.o m_police.o m_estimator.o
2
3 include ../Config
4
5 TCMODULES :=
6 TCMODULES += q_fifo.o
7 TCMODULES += q_sfq.o
8 TCMODULES += q_red.o
9 TCMODULES += q_prio.o
10 TCMODULES += q_tbf.o
11 TCMODULES += q_cbq.o
12 TCMODULES += f_rsvp.o
13 TCMODULES += f_u32.o
14 TCMODULES += f_route.o
15 TCMODULES += f_fw.o
16 TCMODULES += q_dsmark.o
17 TCMODULES += q_gred.o
18 TCMODULES += f_tcindex.o
19 TCMODULES += q_ingress.o
20
21 ifeq ($(TC_CONFIG_ATM),y)
22 TCMODULES += q_atm.o
23 LDLIBS += -latm
24 endif
25
26 TCMODULES += q_netsim.o
27 TCMODULES += q_csz.o
28 TCMODULES += q_htb.o
29 TCMODULES += q_hpfq.o
30 TCMODULES += q_hfsc.o
31
32 TCOBJ += $(TCMODULES)
33
34 TCLIB := tc_core.o
35 TCLIB += tc_red.o
36 TCLIB += tc_cbq.o
37 TCLIB += tc_estimator.o
38
39 LDLIBS += -L. -ltc -lm -ldl
40 LDFLAGS += -Wl,-export-dynamic
41
42 all: libtc.a tc
43
44 tc: $(TCOBJ) $(LIBNETLINK) $(LIBUTIL) $(TCLIB)
45
46 libtc.a: $(TCLIB)
47 $(AR) rcs $@ $(TCLIB)
48
49 install: all
50 install -m 0755 -s tc $(DESTDIR)$(SBINDIR)
51
52
53 clean:
54 rm -f $(TCOBJ) $(TCLIB) libtc.a tc
55