bdc41c2dcc3a915cb6e8c6a83ca3efdce8b938dc
[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 ENABLE_ANNOTATIONS
63 VM_JAVA_FILES += \
64         $(top_srcdir)/src/lib/gnu/sun/reflect/ConstantPool.java \
65         $(top_srcdir)/src/lib/gnu/sun/reflect/annotation/ExceptionProxy.java \
66         $(top_srcdir)/src/lib/gnu/sun/reflect/annotation/EnumConstantNotPresentExceptionProxy.java \
67         $(top_srcdir)/src/lib/gnu/sun/reflect/annotation/TypeNotPresentExceptionProxy.java \
68         $(top_srcdir)/src/lib/gnu/sun/reflect/annotation/AnnotationTypeMismatchExceptionProxy.java \
69         $(top_srcdir)/src/lib/gnu/sun/reflect/annotation/AnnotationType.java \
70         $(top_srcdir)/src/lib/gnu/sun/reflect/annotation/AnnotationParser.java
71
72 VM_CLASS_FILES += \
73         classes/sun/reflect/ConstantPool.class \
74         classes/sun/reflect/annotation/ExceptionProxy.class \
75         classes/sun/reflect/annotation/EnumConstantNotPresentExceptionProxy.class \
76         classes/sun/reflect/annotation/TypeNotPresentExceptionProxy.class \
77         classes/sun/reflect/annotation/AnnotationTypeMismatchExceptionProxy.class \
78         classes/sun/reflect/annotation/AnnotationType.class \
79         classes/sun/reflect/annotation/AnnotationParser.class
80 endif
81
82 if ENABLE_ZLIB
83 pkgdata_DATA = vm.zip
84 else
85 pkgdata_DATA = nozip
86 endif
87 endif
88
89 if WITH_CLASSPATH_CLDC1_1
90 VM_JAVA_FILES = \
91         $(top_srcdir)/src/lib/cldc1.1/com/sun/cldchi/jvm/FileDescriptor.java
92
93 VM_CLASS_FILES = \
94         classes/com/sun/cldchi/jvm/FileDescriptor.class
95
96 if ENABLE_ZLIB
97 pkgdata_DATA = vm.zip
98 else
99 pkgdata_DATA = nozip
100 endif
101 endif
102
103 if ENABLE_ZLIB
104 VM_ZIP = ../vm.zip
105
106 vm.zip: $(VM_JAVA_FILES)
107         $(mkdir_p) classes
108         $(JAVAC) -source 1.5 -target 1.5 -d classes $(VM_JAVA_FILES)
109         @if test "$(JAR)" = "zip" -o "$(JAR)" = "zip.exe"; then \
110             cd classes && $(JAR) -r -D $(VM_ZIP) .; \
111         else \
112             cd classes && $(JAR) cvf $(VM_ZIP) .; \
113         fi
114 else
115 nozip: $(VM_JAVA_FILES)
116         $(mkdir_p) classes
117         $(JAVAC) -source 1.5 -target 1.5 -d classes $(VM_JAVA_FILES)
118 endif
119
120 clean-local:
121         -rm -rf classes
122
123
124 ## Local variables:
125 ## mode: Makefile
126 ## indent-tabs-mode: t
127 ## c-basic-offset: 4
128 ## tab-width: 8
129 ## compile-command: "automake --add-missing"
130 ## End: