* Merged with default branch at rev 16f3633aaa5a.
[cacao.git] / src / lib / Makefile.am
1 ## src/lib/Makefile.am
2 ##
3 ## Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
4 ## C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5 ## E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6 ## J. Wenninger, Institut f. Computersprachen - TU Wien
7 ##
8 ## This file is part of CACAO.
9 ##
10 ## This program is free software; you can redistribute it and/or
11 ## modify it under the terms of the GNU General Public License as
12 ## published by the Free Software Foundation; either version 2, or (at
13 ## your option) any later version.
14 ##
15 ## This program is distributed in the hope that it will be useful, but
16 ## WITHOUT ANY WARRANTY; without even the implied warranty of
17 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 ## General Public License for more details.
19 ##
20 ## You should have received a copy of the GNU General Public License
21 ## along with this program; if not, write to the Free Software
22 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 ## 02110-1301, USA.
24
25
26 EXTRA_DIST = \
27         $(VM_JAVA_FILES)
28
29 CLEANFILES = vm.zip
30
31 if WITH_CLASSPATH_GNU
32 VM_JAVA_FILES = \
33         $(top_srcdir)/src/lib/gnu/gnu/classpath/VMStackWalker.java \
34         $(top_srcdir)/src/lib/gnu/gnu/classpath/VMSystemProperties.java \
35         $(top_srcdir)/src/lib/gnu/gnu/java/lang/management/VMMemoryMXBeanImpl.java \
36         $(top_srcdir)/src/lib/gnu/gnu/java/lang/management/VMRuntimeMXBeanImpl.java \
37         $(top_srcdir)/src/lib/gnu/java/lang/VMClassLoader.java \
38         $(top_srcdir)/src/lib/gnu/java/lang/VMString.java \
39         $(top_srcdir)/src/lib/gnu/java/lang/VMThread.java \
40         $(top_srcdir)/src/lib/gnu/java/lang/VMThrowable.java \
41         $(top_srcdir)/src/lib/gnu/java/lang/reflect/Constructor.java \
42         $(top_srcdir)/src/lib/gnu/java/lang/reflect/Field.java \
43         $(top_srcdir)/src/lib/gnu/java/lang/reflect/Method.java \
44         $(top_srcdir)/src/lib/gnu/java/security/VMAccessController.java \
45         $(top_srcdir)/src/lib/gnu/sun/misc/Unsafe.java
46
47 VM_CLASS_FILES = \
48         classes/gnu/classpath/VMStackWalker.class \
49         classes/gnu/classpath/VMSystemProperties.class \
50         classes/gnu/java/lang/management/VMMemoryMXBeanImpl.class \
51         classes/gnu/java/lang/management/VMRuntimeMXBeanImpl.class \
52         classes/java/lang/VMClassLoader.class \
53         classes/java/lang/VMString.class \
54         classes/java/lang/VMThread.class \
55         classes/java/lang/VMThrowable.class \
56         classes/java/lang/reflect/Constructor.class \
57         classes/java/lang/reflect/Field.class \
58         classes/java/lang/reflect/Method.class \
59         classes/java/security/VMAccessController.class \
60         classes/sun/misc/Unsafe.class
61
62 if WITH_CLASSPATH_GNU
63 if ENABLE_ANNOTATIONS
64 VM_JAVA_FILES += \
65         $(top_srcdir)/src/lib/gnu/sun/reflect/annotation/TypeNotPresentExceptionProxy.java \
66         $(top_srcdir)/src/lib/gnu/sun/reflect/annotation/AnnotationTypeMismatchExceptionProxy.java \
67         $(top_srcdir)/src/lib/gnu/sun/reflect/ConstantPool.java \
68         $(top_srcdir)/src/lib/gnu/sun/reflect/annotation/AnnotationType.java \
69         $(top_srcdir)/src/lib/gnu/sun/reflect/annotation/AnnotationParser.java
70
71 VM_CLASS_FILES += \
72         classes/sun/reflect/annotation/TypeNotPresentExceptionProxy.class \
73         classes/sun/reflect/annotation/AnnotationTypeMismatchExceptionProxy.class \
74         classes/sun/reflect/ConstantPool.class \
75         classes/sun/reflect/annotation/AnnotationType.class \
76         classes/sun/reflect/annotation/AnnotationParser.class
77 endif
78 endif
79
80
81 if ENABLE_ZLIB
82 pkgdata_DATA = vm.zip
83 else
84 pkgdata_DATA = nozip
85 endif
86 endif
87
88 if ENABLE_ZLIB
89 VM_ZIP = ../vm.zip
90
91 vm.zip: $(VM_JAVA_FILES)
92         $(mkdir_p) classes
93         $(JAVAC) -source 1.5 -target 1.5 -d classes $(VM_JAVA_FILES)
94         @if test "$(JAR)" = "zip" -o "$(JAR)" = "zip.exe"; then \
95             cd classes && $(JAR) -r -D $(VM_ZIP) .; \
96         else \
97             cd classes && $(JAR) cvf $(VM_ZIP) .; \
98         fi
99 else
100 nozip: $(VM_JAVA_FILES)
101         $(mkdir_p) classes
102         $(JAVAC) -source 1.5 -target 1.5 -d classes $(VM_JAVA_FILES)
103 endif
104
105 clean-local:
106         -rm -rf classes
107
108
109 ## Local variables:
110 ## mode: Makefile
111 ## indent-tabs-mode: t
112 ## c-basic-offset: 4
113 ## tab-width: 8
114 ## compile-command: "automake --add-missing"
115 ## End: