1# Copyright 2006 The Android Open Source Project 2 3# Setting LOCAL_PATH will mess up all-subdir-makefiles, so do it beforehand. 4 5LOCAL_PATH:= $(call my-dir) 6include $(CLEAR_VARS) 7 8LOCAL_SHARED_LIBRARIES := libcutils 9 10LOCAL_INCLUDES += $(LOCAL_PATH) 11 12ifneq ($(TARGET_SIMULATOR),true) 13 LOCAL_CFLAGS += -DQEMU_HARDWARE 14 QEMU_HARDWARE := true 15endif 16 17ifneq ($(TARGET_SIMULATOR),true) 18LOCAL_SHARED_LIBRARIES += libdl 19endif 20 21LOCAL_SRC_FILES += hardware.c 22 23# need "-lrt" on Linux simulator to pick up clock_gettime 24ifeq ($(TARGET_SIMULATOR),true) 25 ifeq ($(HOST_OS),linux) 26 LOCAL_LDLIBS += -lrt -lpthread -ldl 27 endif 28endif 29 30LOCAL_MODULE:= libhardware 31 32include $(BUILD_SHARED_LIBRARY) 33 34include $(addsuffix /Android.mk, $(addprefix $(LOCAL_PATH)/, \ 35 modules/gralloc \ 36 tests \ 37 )) 38