From 5ce01674d44addab570009ceddeaa08d64534092 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Thu, 15 Jan 2009 16:12:14 -0800 Subject: auto import from //branches/cupcake/...@126645 --- Android.mk | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Android.mk (limited to 'Android.mk') diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..c698e26 --- /dev/null +++ b/Android.mk @@ -0,0 +1,33 @@ +# Copyright 2006 The Android Open Source Project + +# Setting LOCAL_PATH will mess up all-subdir-makefiles, so do it beforehand. +SAVE_MAKEFILES := $(call all-subdir-makefiles) + +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +LOCAL_SHARED_LIBRARIES := libutils libcutils libwpa_client + +LOCAL_INCLUDES += $(LOCAL_PATH) + +ifneq ($(TARGET_SIMULATOR),true) + LOCAL_CFLAGS += -DQEMU_HARDWARE + QEMU_HARDWARE := true +endif + +ifneq ($(TARGET_SIMULATOR),true) +LOCAL_SHARED_LIBRARIES += libdl +endif + +include $(SAVE_MAKEFILES) + +# need "-lrt" on Linux simulator to pick up clock_gettime +ifeq ($(TARGET_SIMULATOR),true) + ifeq ($(HOST_OS),linux) + LOCAL_LDLIBS += -lrt -lpthread -ldl + endif +endif + +LOCAL_MODULE:= libhardware_legacy + +include $(BUILD_SHARED_LIBRARY) -- cgit v1.1