]> git.proxmox.com Git - mirror_iproute2.git/blame - tc/Makefile
Handle make install better.
[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
adff36d7
SH
3include ../Config
4
aba5acdf
SH
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
cda17fcd
SH
16TCMODULES += q_dsmark.o
17TCMODULES += q_gred.o
18TCMODULES += f_tcindex.o
19TCMODULES += q_ingress.o
cda17fcd 20
adff36d7
SH
21ifeq ($(TC_CONFIG_ATM),y)
22 TCMODULES += q_atm.o
23 LDLIBS += -latm
24endif
aba5acdf 25
c6fe35d5
SH
26ifeq ($(TC_CONFIG_NETEM),y)
27 TCMODULES += q_netem.o
28endif
29
cda17fcd 30TCMODULES += q_csz.o
9e9d615e 31TCMODULES += q_htb.o
cda17fcd
SH
32TCMODULES += q_hpfq.o
33TCMODULES += q_hfsc.o
aba5acdf
SH
34
35TCOBJ += $(TCMODULES)
36
37TCLIB := tc_core.o
38TCLIB += tc_red.o
39TCLIB += tc_cbq.o
40TCLIB += tc_estimator.o
41
42LDLIBS += -L. -ltc -lm -ldl
43LDFLAGS += -Wl,-export-dynamic
44
45all: libtc.a tc
46
47tc: $(TCOBJ) $(LIBNETLINK) $(LIBUTIL) $(TCLIB)
48
49libtc.a: $(TCLIB)
50 $(AR) rcs $@ $(TCLIB)
51
52install: all
53 install -m 0755 -s tc $(DESTDIR)$(SBINDIR)
54
55
56clean:
57 rm -f $(TCOBJ) $(TCLIB) libtc.a tc
58