Home | History | Annotate | Download | only in tc
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 include $(CLEAR_VARS)
      4 # clang cannot compile 'variable length array in structure' in ipxfrm.c
      5 LOCAL_CLANG := false
      6 LOCAL_SRC_FILES :=  tc.c tc_qdisc.c q_cbq.c tc_util.c tc_class.c tc_core.c m_action.c \
      7                     m_estimator.c tc_filter.c tc_monitor.c tc_stab.c tc_cbq.c \
      8                     tc_estimator.c f_u32.c m_police.c q_ingress.c m_mirred.c q_htb.c
      9 
     10 LOCAL_MODULE := tc
     11 
     12 LOCAL_SYSTEM_SHARED_LIBRARIES := \
     13 	libc libm libdl
     14 
     15 LOCAL_SHARED_LIBRARIES += libiprouteutil libnetlink
     16 
     17 LOCAL_C_INCLUDES := $(LOCAL_PATH)/../include
     18 
     19 LOCAL_CFLAGS := -O2 -g -W -Wall -Wno-pointer-arith -Wno-sign-compare -Werror \
     20     -Wno-unused-parameter \
     21     -Wno-missing-field-initializers
     22 
     23 # This is a work around for b/18403920
     24 LOCAL_LDFLAGS := -Wl,--no-gc-sections
     25 
     26 include $(BUILD_EXECUTABLE)
     27 
     28