108620177f7d0aa706359fc6fa2c1f8477c133041Johannes BergLOCAL_PATH := $(call my-dir) 208620177f7d0aa706359fc6fa2c1f8477c133041Johannes Berg 308620177f7d0aa706359fc6fa2c1f8477c133041Johannes Berginclude $(CLEAR_VARS) 408620177f7d0aa706359fc6fa2c1f8477c133041Johannes Berg 51179fd8dff9668cf12f32036d1e011bf1ee71f74Filipe BrandenburgerLOCAL_SRC_FILES := \ 61179fd8dff9668cf12f32036d1e011bf1ee71f74Filipe Brandenburger iw.c genl.c event.c info.c phy.c \ 71179fd8dff9668cf12f32036d1e011bf1ee71f74Filipe Brandenburger interface.c ibss.c station.c survey.c util.c ocb.c \ 81179fd8dff9668cf12f32036d1e011bf1ee71f74Filipe Brandenburger mesh.c mpath.c mpp.c scan.c reg.c \ 91179fd8dff9668cf12f32036d1e011bf1ee71f74Filipe Brandenburger reason.c status.c connect.c link.c offch.c ps.c cqm.c \ 101179fd8dff9668cf12f32036d1e011bf1ee71f74Filipe Brandenburger bitrate.c wowlan.c coalesce.c roc.c p2p.c vendor.c \ 111179fd8dff9668cf12f32036d1e011bf1ee71f74Filipe Brandenburger sections.c 1208620177f7d0aa706359fc6fa2c1f8477c133041Johannes Berg 139235006c4ba06bd72574a4e69ee02d958b1daf23Elliott HughesLOCAL_CFLAGS += -D_GNU_SOURCE -DCONFIG_LIBNL20 142af129ead0104bc925504169300945e26bd6ccb9Andreas Gampe 152af129ead0104bc925504169300945e26bd6ccb9Andreas Gampe# Silence some warnings for now. Needs to be fixed upstream. b/26105799 162af129ead0104bc925504169300945e26bd6ccb9Andreas GampeLOCAL_CFLAGS += -Wno-unused-parameter \ 172af129ead0104bc925504169300945e26bd6ccb9Andreas Gampe -Wno-sign-compare \ 189f8f6f4ae3822bd2dad883cd1e44e0e72c7348c7Aurimas Liutikas -Wno-format \ 199f8f6f4ae3822bd2dad883cd1e44e0e72c7348c7Aurimas Liutikas -Wno-absolute-value \ 209f8f6f4ae3822bd2dad883cd1e44e0e72c7348c7Aurimas Liutikas -Werror 212af129ead0104bc925504169300945e26bd6ccb9Andreas GampeLOCAL_CLANG_CFLAGS += -Wno-enum-conversion 222af129ead0104bc925504169300945e26bd6ccb9Andreas Gampe 2308620177f7d0aa706359fc6fa2c1f8477c133041Johannes BergLOCAL_LDFLAGS := -Wl,--no-gc-sections 2458714c471e7635d44ac4cf391198c6aca7cfadebFilipe BrandenburgerLOCAL_MODULE_TAGS := debug 25aa24a0a0d7dba666349d2138fc6b2fda5287b55dFilipe BrandenburgerLOCAL_STATIC_LIBRARIES := libnl 2608620177f7d0aa706359fc6fa2c1f8477c133041Johannes BergLOCAL_MODULE := iw 2708620177f7d0aa706359fc6fa2c1f8477c133041Johannes Berg 281179fd8dff9668cf12f32036d1e011bf1ee71f74Filipe BrandenburgerLOCAL_MODULE_CLASS := EXECUTABLES 291179fd8dff9668cf12f32036d1e011bf1ee71f74Filipe BrandenburgerLOCAL_GENERATED_SOURCES := $(local-generated-sources-dir)/version.c 301179fd8dff9668cf12f32036d1e011bf1ee71f74Filipe Brandenburger$(LOCAL_GENERATED_SOURCES) : $(LOCAL_PATH)/version.sh 31ed243cb4cbb6247bf4aeaed6c93b8167cce9b217Dan Willemsen @echo "Generated: $@" 321179fd8dff9668cf12f32036d1e011bf1ee71f74Filipe Brandenburger @mkdir -p $(dir $@) 33ed243cb4cbb6247bf4aeaed6c93b8167cce9b217Dan Willemsen $(hide) echo '#include "iw.h"' >$@ 34ed243cb4cbb6247bf4aeaed6c93b8167cce9b217Dan Willemsen $(hide) echo "const char iw_version[] = $$(grep ^VERSION $< | sed "s/VERSION=//");" >>$@ 3508620177f7d0aa706359fc6fa2c1f8477c133041Johannes Berg 3608620177f7d0aa706359fc6fa2c1f8477c133041Johannes Berginclude $(BUILD_EXECUTABLE) 37