* src/native/vm/Makefile.am: Build fix.
[cacao.git] / src / native / vm / Makefile.am
index ad08458ecc598558674eeee7ea67f6e2feb19bf6..065426fbd7319652189bdb8f7d71129e50f82a10 100644 (file)
@@ -1,38 +1,79 @@
-## Process this file with automake to produce Makefile.in
-
-# $Id: Makefile.am 1173 2004-06-16 14:56:18Z jowenn $
-
-
-INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/jit/@ARCH_DIR@
-
-EXTRA_DIST =
-
-noinst_LIBRARIES = libnat.a
-
-libnat_a_SOURCES = \
-       Constructor.c \
-       Field.c \
-       Method.c \
-       Proxy.c \
-       Runtime.c \
-       Thread.c \
-       VMClass.c \
-       VMClassLoader.c \
-       VMObject.c \
-       VMSecurityManager.c \
-       VMString.c \
-       VMSystem.c \
-       VMThrowable.c \
-       JOWENNTest1.c \
-       classcontextnativeTest.c
-
-#libgtk_a_SOURCES = \
-       GdkGraphics.c \
-       GdkPixbufDecoder.c \
-       GtkComponentPeer.c \
-       GtkFileDialogPeer.c \
-       GtkLabelPeer.c \
-       GtkScrollPanePeer.c
+## src/native/vm/Makefile.am
+##
+## Copyright (C) 1996-2005, 2006, 2007, 2008
+## CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
+##
+## This file is part of CACAO.
+##
+## This program is free software; you can redistribute it and/or
+## modify it under the terms of the GNU General Public License as
+## published by the Free Software Foundation; either version 2, or (at
+## your option) any later version.
+##
+## This program is distributed in the hope that it will be useful, but
+## WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+## General Public License for more details.
+##
+## 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., 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 =
+
+DIST_SUBDIRS = \
+       cldc1.1 \
+       gnuclasspath \
+       openjdk
+
+if WITH_JAVA_RUNTIME_LIBRARY_CLDC1_1
+SUBDIRS = \
+       cldc1.1
+
+NATIVEVM_LIB = \
+       cldc1.1/libnativevmcore.la
+endif
+
+if WITH_JAVA_RUNTIME_LIBRARY_GNU_CLASSPATH
+SUBDIRS = \
+       gnuclasspath
+
+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 = \
+       nativevm.cpp \
+       nativevm.h \
+       $(REFLECTION_SOURCES) \
+       $(SUN_MISC_UNSAFE_SOURCES)
+
+libnativevm_la_LIBADD = \
+       $(NATIVEVM_LIB)
 
 
 ## Local variables: