blob: e32cc7a18ab65a88aefd087d955d060732be8cdd [file] [log] [blame]
Carl Shapiro7b216702011-06-17 15:09:26 -07001#
2# Copyright (C) 2011 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH := $(call my-dir)
18include $(CLEAR_VARS)
19
Carl Shapiro0e6d1972011-07-06 19:17:39 -070020build_path := $(LOCAL_PATH)/build
21include $(build_path)/Android.libart.mk
22include $(build_path)/Android.test.mk
23include $(build_path)/Android.aexec.mk
Carl Shapiro7b216702011-06-17 15:09:26 -070024
25ifeq ($(WITH_HOST_DALVIK),true)
Carl Shapiro0e6d1972011-07-06 19:17:39 -070026 include $(build_path)/Android.libart.host.mk
27 include $(build_path)/Android.test.host.mk
28 include $(build_path)/Android.aexec.host.mk
Carl Shapiro7b216702011-06-17 15:09:26 -070029endif
Brian Carlstrom934486c2011-07-12 23:42:50 -070030
31
32# "m build-art" for quick minimal build
33.PHONY: build-art
34build-art: \
35 $(TARGET_OUT_EXECUTABLES)/aexec \
36 $(foreach file,$(TEST_TARGET_SRC_FILES),$(TARGET_OUT_EXECUTABLES)/$(notdir $(file:%.cc=%))) \
37 $(HOST_OUT_EXECUTABLES)/aexec \
38 $(foreach file,$(TEST_HOST_SRC_FILES),$(HOST_OUT_EXECUTABLES)/$(notdir $(file:%.cc=%))) \
39#
40
41# "mm test-art-host" to build and run all host tests
42.PHONY: test-art-host
43test-art-host: $(foreach file,$(TEST_HOST_SRC_FILES),$(HOST_OUT_EXECUTABLES)/$(notdir $(file:%.cc=%)))
44 $(foreach file,$(TEST_HOST_SRC_FILES),$(HOST_OUT_EXECUTABLES)/$(notdir $(file:%.cc=%)) &&) true