]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/blob - tc/Makefile
Build all the queueing disciplines (includes atm)
[lisovros/iproute2_canprio.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 TCMODULES :=
4 TCMODULES += q_fifo.o
5 TCMODULES += q_sfq.o
6 TCMODULES += q_red.o
7 TCMODULES += q_prio.o
8 TCMODULES += q_tbf.o
9 TCMODULES += q_cbq.o
10 TCMODULES += f_rsvp.o
11 TCMODULES += f_u32.o
12 TCMODULES += f_route.o
13 TCMODULES += f_fw.o
14 TCMODULES += q_dsmark.o
15 TCMODULES += q_gred.o
16 TCMODULES += f_tcindex.o
17 TCMODULES += q_ingress.o
18 TCMODULES += q_atm.o
19 LDLIBS += -latm
20
21 TCMODULES += q_delay.o
22
23 TCMODULES += q_csz.o
24 TCMODULES += q_htb.o
25 TCMODULES += q_hpfq.o
26 TCMODULES += q_hfsc.o
27
28 TCOBJ += $(TCMODULES)
29
30 TCLIB := tc_core.o
31 TCLIB += tc_red.o
32 TCLIB += tc_cbq.o
33 TCLIB += tc_estimator.o
34
35 LDLIBS += -L. -ltc -lm -ldl
36 LDFLAGS += -Wl,-export-dynamic
37
38 all: libtc.a tc
39
40 tc: $(TCOBJ) $(LIBNETLINK) $(LIBUTIL) $(TCLIB)
41
42 libtc.a: $(TCLIB)
43         $(AR) rcs $@ $(TCLIB)
44
45 install: all
46         install -m 0755 -s tc $(DESTDIR)$(SBINDIR)
47
48
49 clean:
50         rm -f $(TCOBJ) $(TCLIB) libtc.a tc
51