## src/native/vm/Makefile.am
##
-## Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
-## R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
-## C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
-## Institut f. Computersprachen - TU Wien
+## Copyright (C) 1996-2005, 2006, 2007, 2008
+## CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
##
## This file is part of CACAO.
##
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-## 02111-1307, USA.
-##
-## Contact: cacao@complang.tuwien.ac.at
-##
-## Authors: Christian Thalinger
-##
-## Changes:
-##
-## $Id: Makefile.am 1868 2005-01-12 13:18:17Z twisti $
+## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+## 02110-1301, USA.
+
+
+AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR) -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR)/$(OS_DIR) -I$(top_builddir)/src
+
+LIBS =
-## Process this file with automake to produce Makefile.in
+DIST_SUBDIRS = \
+ cldc1.1 \
+ gnuclasspath \
+ openjdk
-INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit/@ARCH_DIR@
+if WITH_JAVA_RUNTIME_LIBRARY_CLDC1_1
+SUBDIRS = \
+ cldc1.1
-CLEANFILES = implementednatives.data
+NATIVEVM_LIB = \
+ cldc1.1/libnativevmcore.la
+endif
-EXTRA_DIST = \
- GtkComponentPeer.c \
- GtkFileDialogPeer.c \
- GtkScrollPanePeer.c
+if WITH_JAVA_RUNTIME_LIBRARY_GNU_CLASSPATH
+SUBDIRS = \
+ gnuclasspath
-noinst_LTLIBRARIES = libnativevm.la
+NATIVEVM_LIB = \
+ gnuclasspath/libnativevmcore.la
+endif
+
+if WITH_JAVA_RUNTIME_LIBRARY_OPENJDK
+SUBDIRS = \
+ openjdk
+
+NATIVEVM_LIB = \
+ openjdk/libnativevmcore.la
+endif
+
+if ENABLE_JAVASE
+REFLECTION_SOURCES = \
+ reflection.cpp \
+ reflection.hpp
+
+SUN_MISC_UNSAFE_SOURCES = \
+ sun_misc_Unsafe.cpp
+endif
+
+noinst_LTLIBRARIES = \
+ libnativevm.la
libnativevm_la_SOURCES = \
- Constructor.c \
- Field.c \
- Method.c \
- Proxy.c \
- VMClass.c \
- VMClassLoader.c \
- VMObject.c \
- VMRuntime.c \
- VMSecurityManager.c \
- VMString.c \
- VMSystem.c \
- VMSystemProperties.c \
- VMThread.c \
- VMThrowable.c
-
-all: implementednatives.data
-
-implementednatives.data: $(libnativevm_a_SOURCES)
- echo "" > implementednatives.data
- grep "JNICALL Java_" *.c | perl -p -i -e "s/.*JNICALL\s//" | perl -p -i -e"s/\(.*//" | ( \
- while read line; do \
- grep $$line $(top_srcdir)/src/native/include/*.h > /dev/null; \
- if test $$? == 0; then \
- echo $$line >> implementednatives.data; \
- fi ; \
- done )
+ nativevm.cpp \
+ nativevm.h \
+ $(REFLECTION_SOURCES) \
+ $(SUN_MISC_UNSAFE_SOURCES)
+
+libnativevm_la_LIBADD = \
+ $(NATIVEVM_LIB)
## Local variables: