1# Copyright 2006 The Android Open Source Project
2
3# Setting LOCAL_PATH will mess up all-subdir-makefiles, so do it beforehand.
4legacy_modules := power uevent wifi qemu qemu_tracing
5
6SAVE_MAKEFILES := $(call all-named-subdir-makefiles,$(legacy_modules))
7LEGACY_AUDIO_MAKEFILES := $(call all-named-subdir-makefiles,audio)
8
9LOCAL_PATH:= $(call my-dir)
10include $(CLEAR_VARS)
11
12LOCAL_SHARED_LIBRARIES := libcutils liblog
13
14LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
15LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
16
17LOCAL_CFLAGS  += -DQEMU_HARDWARE -Wno-unused-parameter -Wno-gnu-designator
18QEMU_HARDWARE := true
19
20LOCAL_SHARED_LIBRARIES += libdl
21
22include $(SAVE_MAKEFILES)
23
24LOCAL_MODULE:= libhardware_legacy
25
26include $(BUILD_SHARED_LIBRARY)
27
28# static library for librpc
29include $(CLEAR_VARS)
30
31LOCAL_MODULE:= libpower
32
33LOCAL_SRC_FILES += power/power.c
34LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
35LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
36
37include $(BUILD_STATIC_LIBRARY)
38
39# shared library for various HALs
40include $(CLEAR_VARS)
41
42LOCAL_MODULE := libpower
43
44LOCAL_SRC_FILES := power/power.c
45LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
46LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
47
48LOCAL_SHARED_LIBRARIES := libcutils
49
50include $(BUILD_SHARED_LIBRARY)
51
52# legacy_audio builds it's own set of libraries that aren't linked into
53# hardware_legacy
54include $(LEGACY_AUDIO_MAKEFILES)
55