Makefile revision 9e9d615e32c1e0677d2c32619253eabb331ff307
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 26TCMODULES += q_delay.o 27 28#TCMODULES += q_csz.o 29TCMODULES += q_htb.o 30#TCMODULES += q_hpfq.o 31#TCMODULES += q_hfsc.o 32 33TCOBJ += $(TCMODULES) 34 35TCLIB := tc_core.o 36TCLIB += tc_red.o 37TCLIB += tc_cbq.o 38TCLIB += tc_estimator.o 39 40LDLIBS += -L. -ltc -lm -ldl 41LDFLAGS += -Wl,-export-dynamic 42 43all: libtc.a tc 44 45tc: $(TCOBJ) $(LIBNETLINK) $(LIBUTIL) $(TCLIB) 46 47libtc.a: $(TCLIB) 48 $(AR) rcs $@ $(TCLIB) 49 50install: all 51 install -m 0755 -s tc $(DESTDIR)$(SBINDIR) 52 53 54clean: 55 rm -f $(TCOBJ) $(TCLIB) libtc.a tc 56 57