1#
2# Copyright (C) 2008-2011 Broadcom Corporation
3#
4# $Id: Android.mk,v 2.6 2009-05-07 18:25:15 $
5#
6# Permission to use, copy, modify, and/or distribute this software for any
7# purpose with or without fee is hereby granted, provided that the above
8# copyright notice and this permission notice appear in all copies.
9#
10# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
13# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
15# OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17#
18
19LOCAL_PATH:= $(call my-dir)
20
21include $(CLEAR_VARS)
22LOCAL_SRC_FILES := \
23	dhdu.c \
24	dhdu_linux.c \
25	bcmutils.c \
26	miniopt.c
27
28LOCAL_MODULE := dhdutil
29LOCAL_LICENSE_KINDS := SPDX-license-identifier-BSD SPDX-license-identifier-ISC
30LOCAL_LICENSE_CONDITIONS := notice
31LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
32LOCAL_CFLAGS := -DSDTEST -DTARGETENV_android -Dlinux -DLINUX
33ifeq ($(TARGET_ARCH),arm)
34LOCAL_CFLAGS += -mabi=aapcs-linux
35endif
36LOCAL_CFLAGS += -Wall -Werror -Wno-unused-parameter
37LOCAL_C_INCLUDES +=$(LOCAL_PATH)/include
38
39LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
40
41include $(BUILD_EXECUTABLE)
42