Home | History | Annotate | Download | only in libhardware
      1 # Copyright 2006 The Android Open Source Project
      2 
      3 # Setting LOCAL_PATH will mess up all-subdir-makefiles, so do it beforehand.
      4 
      5 LOCAL_PATH:= $(call my-dir)
      6 include $(CLEAR_VARS)
      7 
      8 LOCAL_SHARED_LIBRARIES := libcutils
      9 
     10 LOCAL_INCLUDES += $(LOCAL_PATH)
     11 
     12 ifneq ($(TARGET_SIMULATOR),true)
     13   LOCAL_CFLAGS  += -DQEMU_HARDWARE
     14   QEMU_HARDWARE := true
     15 endif
     16 
     17 ifneq ($(TARGET_SIMULATOR),true)
     18 LOCAL_SHARED_LIBRARIES += libdl
     19 endif
     20 
     21 LOCAL_SRC_FILES += hardware.c
     22 
     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
     27 	endif
     28 endif
     29 
     30 LOCAL_MODULE:= libhardware
     31 
     32 include $(BUILD_SHARED_LIBRARY)
     33 
     34 include $(addsuffix /Android.mk, $(addprefix $(LOCAL_PATH)/, \
     35 			modules/gralloc \
     36 			tests \
     37 		))
     38