1 # Copyright 2006 The Android Open Source Project
3 # Setting LOCAL_PATH will mess up all-subdir-makefiles, so do it beforehand.
5 LOCAL_PATH:= $(call my-dir)
8 LOCAL_SHARED_LIBRARIES := libcutils
10 LOCAL_INCLUDES += $(LOCAL_PATH)
12 ifneq ($(TARGET_SIMULATOR),true)
13 LOCAL_CFLAGS += -DQEMU_HARDWARE
17 ifneq ($(TARGET_SIMULATOR),true)
18 LOCAL_SHARED_LIBRARIES += libdl
21 LOCAL_SRC_FILES += hardware.c
23 # need "-lrt" on Linux simulator to pick up clock_gettime
24 ifeq ($(TARGET_SIMULATOR),true)
25 ifeq ($(HOST_OS),linux)
26 LOCAL_LDLIBS += -lrt -lpthread -ldl
30 LOCAL_MODULE:= libhardware
32 include $(BUILD_SHARED_LIBRARY)
34 include $(addsuffix /Android.mk, $(addprefix $(LOCAL_PATH)/, \