OSDN Git Service

Update aosp/master LLVM for rebase to r239765
[android-x86/external-llvm.git] / lib / LibDriver / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2
3 LibDriver_SRC_FILES := \
4   LibDriver.cpp
5
6 LibDriver_TBLGEN_TABLES := \
7   Options.inc
8
9
10 # For the host
11 # =====================================================
12 include $(CLEAR_VARS)
13 include $(CLEAR_TBLGEN_VARS)
14
15 LOCAL_SRC_FILES := $(LibDriver_SRC_FILES)
16 TBLGEN_TABLES := $(LibDriver_TBLGEN_TABLES)
17
18 LOCAL_MODULE:= libLLVMLibDriver
19 LOCAL_MODULE_TAGS := optional
20
21 include $(LLVM_HOST_BUILD_MK)
22 include $(LLVM_TBLGEN_RULES_MK)
23 include $(BUILD_HOST_STATIC_LIBRARY)
24
25 # For the device
26 # =====================================================
27 include $(CLEAR_VARS)
28 include $(CLEAR_TBLGEN_VARS)
29
30 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
31
32 LOCAL_SRC_FILES := $(LibDriver_SRC_FILES)
33 TBLGEN_TABLES := $(LibDriver_TBLGEN_TABLES)
34
35 LOCAL_MODULE:= libLLVMLibDriver
36 LOCAL_MODULE_TAGS := optional
37
38 include $(LLVM_DEVICE_BUILD_MK)
39 include $(LLVM_TBLGEN_RULES_MK)
40 include $(BUILD_STATIC_LIBRARY)
41 endif