]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/blob - tc/Makefile
conditional build of netem
[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 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 ifeq ($(TC_CONFIG_NETEM),y)
27         TCMODULES += q_netem.o
28 endif
29
30 TCMODULES += q_csz.o
31 TCMODULES += q_htb.o
32 TCMODULES += q_hpfq.o
33 TCMODULES += q_hfsc.o
34
35 TCOBJ += $(TCMODULES)
36
37 TCLIB := tc_core.o
38 TCLIB += tc_red.o
39 TCLIB += tc_cbq.o
40 TCLIB += tc_estimator.o
41
42 LDLIBS += -L. -ltc -lm -ldl
43 LDFLAGS += -Wl,-export-dynamic
44
45 all: libtc.a tc
46
47 tc: $(TCOBJ) $(LIBNETLINK) $(LIBUTIL) $(TCLIB)
48
49 libtc.a: $(TCLIB)
50         $(AR) rcs $@ $(TCLIB)
51
52 install: all
53         install -m 0755 -s tc $(DESTDIR)$(SBINDIR)
54
55
56 clean:
57         rm -f $(TCOBJ) $(TCLIB) libtc.a tc
58