Carl Shapiro | 7b21670 | 2011-06-17 15:09:26 -0700 | [diff] [blame] | 1 | # |
| 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 | |
Carl Shapiro | 9bf84fd | 2011-06-17 17:05:25 -0700 | [diff] [blame] | 17 | LOCAL_CPP_EXTENSION := .cc |
| 18 | |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 19 | LOCAL_CFLAGS := \ |
| 20 | -O0 \ |
| 21 | -ggdb3 \ |
| 22 | -Wall \ |
| 23 | -Werror \ |
| 24 | -Wextra \ |
| 25 | -Wno-unused-parameter \ |
| 26 | -Wno-deprecated \ |
| 27 | -Wstrict-aliasing=2 \ |
| 28 | -fno-align-jumps \ |
| 29 | -fstrict-aliasing |
| 30 | |
| 31 | ifeq ($(TARGET_ARCH),arm) |
| 32 | LOCAL_CFLAGS += |
| 33 | endif |
| 34 | |
| 35 | ifeq ($(TARGET_ARCH),x86) |
| 36 | LOCAL_CFLAGS += |
| 37 | endif |
| 38 | |
Carl Shapiro | 9bf84fd | 2011-06-17 17:05:25 -0700 | [diff] [blame] | 39 | AEXEC_LOCAL_SRC_FILES := \ |
| 40 | src/main.cc |
| 41 | |
Carl Shapiro | 7b21670 | 2011-06-17 15:09:26 -0700 | [diff] [blame] | 42 | LIBART_LOCAL_SRC_FILES := \ |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 43 | src/assembler.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 44 | src/dex_file.cc \ |
Carl Shapiro | 12eb78e | 2011-06-24 14:51:06 -0700 | [diff] [blame] | 45 | src/dex_instruction.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 46 | src/memory_region.cc \ |
Carl Shapiro | 3ee755d | 2011-06-28 12:11:04 -0700 | [diff] [blame^] | 47 | src/object.cc \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 48 | src/raw_dex_file.cc \ |
| 49 | src/runtime.cc |
Carl Shapiro | a5d5cfd | 2011-06-21 12:46:59 -0700 | [diff] [blame] | 50 | |
| 51 | ifeq ($(LIBART_TARGET_ARCH),arm) |
| 52 | LIBART_LOCAL_SRC_FILES += \ |
| 53 | src/assembler_arm.cc |
| 54 | endif |
| 55 | |
| 56 | ifeq ($(LIBART_TARGET_ARCH),x86) |
| 57 | LIBART_LOCAL_SRC_FILES += \ |
| 58 | src/assembler_x86.cc |
| 59 | endif |
Jesse Wilson | c981ace | 2011-06-22 14:17:14 -0700 | [diff] [blame] | 60 | |
Carl Shapiro | 12eb78e | 2011-06-24 14:51:06 -0700 | [diff] [blame] | 61 | TEST_LOCAL_SRC_FILES := \ |
Carl Shapiro | 1fb8620 | 2011-06-27 17:43:13 -0700 | [diff] [blame] | 62 | src/dex_file_test.cc \ |
| 63 | src/dex_instruction_visitor_test.cc \ |
| 64 | src/raw_dex_file_test.cc |
Jesse Wilson | c981ace | 2011-06-22 14:17:14 -0700 | [diff] [blame] | 65 | |
Carl Shapiro | 008e412 | 2011-06-23 17:27:46 -0700 | [diff] [blame] | 66 | ifeq ($(TEST_TARGET_ARCH),arm) |
| 67 | TEST_LOCAL_SRC_FILES += |
| 68 | endif |
| 69 | |
| 70 | ifeq ($(TEST_TARGET_ARCH),x86) |
| 71 | TEST_LOCAL_SRC_FILES += \ |
| 72 | src/assembler_x86_test.cc |
| 73 | endif |