]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/blob - tc/Makefile
Import patch iproute2-2.4.7-htb3-tc.patch
[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 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 ifeq ($(TC_CONFIG_DIFFSERV),y)
17   TCMODULES += q_dsmark.o
18   TCMODULES += q_gred.o
19   TCMODULES += f_tcindex.o
20   TCMODULES += q_ingress.o
21 endif
22 ifeq ($(TC_CONFIG_ATM),y)
23   TCMODULES += q_atm.o
24   LDLIBS += -latm
25 endif
26 TCMODULES += q_delay.o
27
28 #TCMODULES += q_csz.o
29 TCMODULES += q_htb.o
30 #TCMODULES += q_hpfq.o
31 #TCMODULES += q_hfsc.o
32
33 TCOBJ += $(TCMODULES)
34
35 TCLIB := tc_core.o
36 TCLIB += tc_red.o
37 TCLIB += tc_cbq.o
38 TCLIB += tc_estimator.o
39
40 LDLIBS += -L. -ltc -lm -ldl
41 LDFLAGS += -Wl,-export-dynamic
42
43 all: libtc.a tc
44
45 tc: $(TCOBJ) $(LIBNETLINK) $(LIBUTIL) $(TCLIB)
46
47 libtc.a: $(TCLIB)
48         $(AR) rcs $@ $(TCLIB)
49
50 install: all
51         install -m 0755 -s tc $(DESTDIR)$(SBINDIR)
52
53
54 clean:
55         rm -f $(TCOBJ) $(TCLIB) libtc.a tc
56