jamvm
view lib/Makefile.am @ 400:5baaa2bcac6b
Support flipping between GNU Classpath and OpenJDK using configure (thanks to twisti).
2008-08-04 Andrew John Hughes <gnu_andrew@member.fsf.org>
* configure.ac:
Add --with-java-runtime-library from CACAO and
change --with-classpath-install-dir to
--with-java-runtime-library-install-dir.
* lib/Makefile.am,
* src/class.h,
* src/dll.c:
Define class library and native libs location
depending on value of --with-java-runtime-library.
2008-08-04 Andrew John Hughes <gnu_andrew@member.fsf.org>
* configure.ac:
Add --with-java-runtime-library from CACAO and
change --with-classpath-install-dir to
--with-java-runtime-library-install-dir.
* lib/Makefile.am,
* src/class.h,
* src/dll.c:
Define class library and native libs location
depending on value of --with-java-runtime-library.
| author | andrew |
|---|---|
| date | Tue Aug 05 04:48:38 2008 +0100 (2008-08-05) |
| parents | ef6fa16d00f7 |
| children | 3857371c74a7 |
line source
1 ##
2 ## Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008
3 ## Robert Lougher <rob@lougher.org.uk>.
4 ##
5 ## This file is part of JamVM.
6 ##
7 ## This program is free software; you can redistribute it and/or
8 ## modify it under the terms of the GNU General Public License
9 ## as published by the Free Software Foundation; either version 2,
10 ## or (at your option) any later version.
11 ##
12 ## This program is distributed in the hope that it will be useful,
13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ## GNU General Public License for more details.
16 ##
17 ## You should have received a copy of the GNU General Public License
18 ## along with this program; if not, write to the Free Software
19 ## Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 ##
22 if WITH_JAVA_RUNTIME_LIBRARY_CLASSPATH
23 CP_LIB_DIR = ${with_runtime_install_dir}/share/classpath
24 GLIBJ_ZIP = ${CP_LIB_DIR}/glibj.zip
25 else
26 if WITH_JAVA_RUNTIME_LIBRARY_OPENJDK
27 CP_LIB_DIR = ${with_runtime_install_dir}/jre/lib
28 GLIBJ_ZIP = ${CP_LIB_DIR}/rt.jar
29 endif
30 endif
32 SUBDIRS = jamvm java gnu sun
33 EXTRA_DIST = classes.zip README
35 noinst_DATA = inst_classes.zip
37 JAVA_FILES = $(srcdir)/jamvm/java/lang/JarLauncher.java \
38 $(srcdir)/jamvm/java/lang/VMClassLoaderData.java \
39 $(srcdir)/java/lang/VMRuntime.java \
40 $(srcdir)/java/lang/VMClassLoader.java \
41 $(srcdir)/java/lang/VMString.java \
42 $(srcdir)/java/lang/VMThread.java \
43 $(srcdir)/java/lang/VMThrowable.java \
44 $(srcdir)/java/lang/reflect/Constructor.java \
45 $(srcdir)/java/lang/reflect/Field.java \
46 $(srcdir)/java/lang/reflect/Method.java \
47 $(srcdir)/java/security/VMAccessController.java \
48 $(srcdir)/gnu/classpath/VMSystemProperties.java \
49 $(srcdir)/sun/reflect/annotation/AnnotationInvocationHandler.java \
50 $(srcdir)/gnu/classpath/VMStackWalker.java
53 inst_classes.zip: classes.zip
54 ln -fs $< $@
56 classes.zip: $(JAVA_FILES)
57 -mkdir classes
58 $(JAVAC) -bootclasspath ${GLIBJ_ZIP} -d classes $(JAVA_FILES)
59 cd classes && zip -r ../classes.zip .
60 rm -rf classes
62 install-data-local:
63 $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
64 @use_zip_yes@ cp -p inst_classes.zip $(DESTDIR)$(pkgdatadir)/classes.zip
65 @use_zip_no@ unzip -o inst_classes.zip -d $(DESTDIR)$(pkgdatadir)/classes
66 @use_zip_yes@ $(mkinstalldirs) $(DESTDIR)$(libdir)
67 @use_zip_yes@ ln -fs $(GLIBJ_ZIP) $(DESTDIR)$(libdir)/rt.jar
69 uninstall-local:
70 rm -rf $(DESTDIR)$(pkgdatadir)
71 rm $(DESTDIR)$(libdir)/rt.jar
73 DISTCLEANFILES = inst_classes.zip
