Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 4de6530036
Fetching contributors…

Cannot retrieve contributors at this time

161 lines (145 sloc) 5.099 kB
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is [Open Source Virtual Machine].
#
# The Initial Developer of the Original Code is
# Adobe System Incorporated.
# Portions created by the Initial Developer are Copyright (C) 2005-2006
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****
CPPFLAGS += -DGTEST_HAS_RTTI=0 -D_HAS_EXCEPTIONS=0
GTEST_INCLUDES = \
-I$(topsrcdir)/gtest/gtest-1.6.0/include \
$(NULL)
INCLUDES := $(GTEST_INCLUDES)
VMBASE_INCLUDES = \
-I$(topsrcdir)/platform \
-I$(topsrcdir)/VMPI \
-I$(topsrcdir)/vmbase \
$(NULL)
# shell must be included here because that's where avmshell-features.h lives,
# and in shell builds it is included from platform/AVMPI.h. That's how it
# is supposed to be.
AVM_INCLUDES = \
$(VMBASE_INCLUDES) \
-I$(topsrcdir) \
-I$(topsrcdir)/MMgc \
-I$(topsrcdir)/core \
-I$(topsrcdir)/pcre \
-I$(topsrcdir)/eval \
-I$(topsrcdir)/platform \
-I$(topsrcdir)/other-licenses/zlib \
-I$(topsrcdir)/shell \
-I$(topsrcdir)/AVMPI \
-I$(topsrcdir)/generated \
-I$(topsrcdir)/aot \
$(NULL)
# This line could just as easily go into core/manifest.mk, but putting it here
# emphasizes that we should not simply include everything everywhere.
avmplus_INCLUDES += $(AVM_INCLUDES)
$(call RECURSE_DIRS,other-licenses/zlib)
# Bug 668442: WinPortUtils.cpp VMPI_getDaylightSavingsTA issue
# Revision buggy, original breaks gtest; disabling gtest until revision fixed.
# $(call RECURSE_DIRS,gtest)
$(call RECURSE_DIRS,VMPI)
$(call RECURSE_DIRS,vmbase)
$(call RECURSE_DIRS,AVMPI)
$(call RECURSE_DIRS,MMgc)
ifdef ENABLE_TAMARIN
$(call RECURSE_DIRS,core pcre vprof)
ifeq (1,$(ENABLE_AOT))
aot_INCLUDES += $(AVM_INCLUDES)
$(call RECURSE_DIRS,aot)
endif
ifeq (sparc,$(TARGET_CPU))
$(call RECURSE_DIRS,nanojit)
endif
ifeq (i686,$(TARGET_CPU))
$(call RECURSE_DIRS,nanojit)
endif
ifeq (x86_64,$(TARGET_CPU))
$(call RECURSE_DIRS,nanojit)
endif
ifeq (arm,$(TARGET_CPU))
$(call RECURSE_DIRS,nanojit)
endif
ifeq (powerpc,$(TARGET_CPU))
$(call RECURSE_DIRS,nanojit)
endif
ifeq (ppc64,$(TARGET_CPU))
$(call RECURSE_DIRS,nanojit)
endif
ifeq (mips,$(TARGET_CPU))
$(call RECURSE_DIRS,nanojit)
endif
ifeq (sh4,$(TARGET_CPU))
$(call RECURSE_DIRS,nanojit)
endif
ifeq (darwin,$(TARGET_OS))
$(call RECURSE_DIRS,platform/mac)
endif
ifeq (windows,$(TARGET_OS))
$(call RECURSE_DIRS,platform/win32)
endif
ifeq (linux,$(TARGET_OS))
$(call RECURSE_DIRS,platform/unix)
endif
ifeq (android,$(TARGET_OS))
$(call RECURSE_DIRS,platform/unix)
endif
ifeq (sunos,$(TARGET_OS))
$(call RECURSE_DIRS,platform/unix)
endif
endif
$(call RECURSE_DIRS,eval)
$(call RECURSE_DIRS,shell)
# Bug 632086: These definitions must come *after* the foo_CXXSRCS
# variables have been completely populated.
avmplus_PREPROCESSED := $(avmplus_CXXSRCS:.cpp=.$(II_SUFFIX))
vmbase_PREPROCESSED := $(vmbase_CXXSRCS:.cpp=.$(II_SUFFIX))
shell_PREPROCESSED := $(shell_CXXSRCS:.cpp=.$(II_SUFFIX))
# Bug 632086: Tie generated code for .h and .cpp together, so that
# requiring the regeneration of the .cpp file will force the
# regeneration of both to happen before the .h file is read.
GENERATED_BUILTIN_CODE := \
$(topsrcdir)/generated/builtin.h \
$(topsrcdir)/generated/builtin.cpp
GENERATED_SHELL_CODE := \
$(topsrcdir)/generated/shell_toplevel.h \
$(topsrcdir)/generated/shell_toplevel.cpp
$(avmplus_PREPROCESSED): $(GENERATED_BUILTIN_CODE)
$(vmbase_PREPROCESSED): $(GENERATED_BUILTIN_CODE)
$(shell_PREPROCESSED): $(GENERATED_BUILTIN_CODE)
$(shell_PREPROCESSED): $(GENERATED_SHELL_CODE)
echo:
@echo avmplus_CXXFLAGS = $(avmplus_CXXFLAGS)
@echo avmplus_CXXSRCS = $(avmplus_CXXSRCS)
@echo avmplus_CXXOBJS = $(avmplus_CXXOBJS)
@echo avmplus_OBJS = $(avmplus_OBJS)
@echo avmplus_NAME = $(avmplus_NAME)
Jump to Line
Something went wrong with that request. Please try again.