1 LOCAL_PATH := $(call my-dir) 2 3 include $(CLEAR_VARS) 4 5 LOCAL_SRC_FILES := \ 6 iw.c genl.c event.c info.c phy.c \ 7 interface.c ibss.c station.c survey.c util.c ocb.c \ 8 mesh.c mpath.c mpp.c scan.c reg.c \ 9 reason.c status.c connect.c link.c offch.c ps.c cqm.c \ 10 bitrate.c wowlan.c coalesce.c roc.c p2p.c vendor.c \ 11 sections.c 12 13 LOCAL_CFLAGS += -D_GNU_SOURCE -DCONFIG_LIBNL20 14 15 # Silence some warnings for now. Needs to be fixed upstream. b/26105799 16 LOCAL_CFLAGS += -Wno-unused-parameter \ 17 -Wno-sign-compare \ 18 -Wno-format \ 19 -Wno-absolute-value \ 20 -Werror 21 LOCAL_CLANG_CFLAGS += -Wno-enum-conversion 22 23 LOCAL_LDFLAGS := -Wl,--no-gc-sections 24 LOCAL_MODULE_TAGS := debug 25 LOCAL_STATIC_LIBRARIES := libnl 26 LOCAL_MODULE := iw 27 28 LOCAL_MODULE_CLASS := EXECUTABLES 29 LOCAL_GENERATED_SOURCES := $(local-generated-sources-dir)/version.c 30 $(LOCAL_GENERATED_SOURCES) : $(LOCAL_PATH)/version.sh 31 @echo "Generated: $@" 32 @mkdir -p $(dir $@) 33 $(hide) echo '#include "iw.h"' >$@ 34 $(hide) echo "const char iw_version[] = $$(grep ^VERSION $< | sed "s/VERSION=//");" >>$@ 35 36 include $(BUILD_EXECUTABLE) 37