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