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