############################################################################### # Makefile for wireless-tools using Android NDK # # Taken verbatim from: # http://code.google.com/p/haggle/wiki/WirelessTools # # Copyright 2011, Eric Nordstrom and others # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ############################################################################### LOCAL_PATH:= $(call my-dir) ################## build iwlib ################### include $(CLEAR_VARS) LOCAL_SRC_FILES := iwlib.c LOCAL_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -MMD -fPIC LOCAL_MODULE:= libiw LOCAL_STATIC_LIBRARIES := libcutils libc libm include $(BUILD_STATIC_LIBRARY) ################## build iwconfig ################### include $(CLEAR_VARS) LOCAL_SRC_FILES := iwconfig.c LOCAL_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -MMD -fPIC LOCAL_MODULE:= iwconfig LOCAL_STATIC_LIBRARIES := libcutils libc libm libiw LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) # install to system/xbin include $(BUILD_EXECUTABLE) ################## build iwlist ################### include $(CLEAR_VARS) LOCAL_SRC_FILES := iwlist.c iwlib.h LOCAL_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -MMD -fPIC LOCAL_MODULE:= iwlist LOCAL_STATIC_LIBRARIES := libcutils libc libm libiw LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) # install to system/xbin include $(BUILD_EXECUTABLE) ################## build iwlist ################### include $(CLEAR_VARS) LOCAL_SRC_FILES := iwpriv.c LOCAL_CFLAGS += -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -MMD -fPIC LOCAL_MODULE:= iwpriv LOCAL_STATIC_LIBRARIES := libcutils libc libm libiw LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) # install to system/xbin include $(BUILD_EXECUTABLE)