7d88c3c976b715fa63f7b254994ef6df4ff2a918
[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 ## $Id: Makefile.am 8347 2007-08-18 13:04:59Z twisti $
26
27 ## Process this file with automake to produce Makefile.in
28
29 EXTRA_DIST = \
30         $(VM_JAVA_FILES)
31
32 CLEANFILES = vm.zip
33
34 if WITH_CLASSPATH_GNU
35 VM_JAVA_FILES = \
36         $(top_srcdir)/src/lib/gnu/gnu/classpath/VMStackWalker.java \
37         $(top_srcdir)/src/lib/gnu/gnu/classpath/VMSystemProperties.java \
38         $(top_srcdir)/src/lib/gnu/gnu/java/lang/management/VMMemoryMXBeanImpl.java \
39         $(top_srcdir)/src/lib/gnu/gnu/java/lang/management/VMRuntimeMXBeanImpl.java \
40         $(top_srcdir)/src/lib/gnu/java/lang/VMClassLoader.java \
41         $(top_srcdir)/src/lib/gnu/java/lang/VMString.java \
42         $(top_srcdir)/src/lib/gnu/java/lang/VMThread.java \
43         $(top_srcdir)/src/lib/gnu/java/lang/VMThrowable.java \
44         $(top_srcdir)/src/lib/gnu/java/lang/reflect/Constructor.java \
45         $(top_srcdir)/src/lib/gnu/java/lang/reflect/Field.java \
46         $(top_srcdir)/src/lib/gnu/java/lang/reflect/Method.java \
47         $(top_srcdir)/src/lib/gnu/java/security/VMAccessController.java \
48         $(top_srcdir)/src/lib/gnu/sun/misc/Unsafe.java
49
50 VM_CLASS_FILES = \
51         classes/gnu/classpath/VMStackWalker.class \
52         classes/gnu/classpath/VMSystemProperties.class \
53         classes/gnu/java/lang/management/VMMemoryMXBeanImpl.class \
54         classes/gnu/java/lang/management/VMRuntimeMXBeanImpl.class \
55         classes/java/lang/VMClassLoader.class \
56         classes/java/lang/VMString.class \
57         classes/java/lang/VMThread.class \
58         classes/java/lang/VMThrowable.class \
59         classes/java/lang/reflect/Constructor.class \
60         classes/java/lang/reflect/Field.class \
61         classes/java/lang/reflect/Method.class \
62         classes/java/security/VMAccessController.class \
63         classes/sun/misc/Unsafe.class
64
65 if ENABLE_ANNOTATIONS
66 VM_JAVA_FILES += \
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/ConstantPool.java \
70         $(top_srcdir)/src/lib/gnu/sun/reflect/annotation/AnnotationType.java \
71         $(top_srcdir)/src/lib/gnu/sun/reflect/annotation/AnnotationParser.java
72
73 VM_CLASS_FILES += \
74         classes/sun/reflect/annotation/TypeNotPresentExceptionProxy.class \
75         classes/sun/reflect/annotation/AnnotationTypeMismatchExceptionProxy.class \
76         classes/sun/reflect/ConstantPool.class \
77         classes/sun/reflect/annotation/AnnotationType.class \
78         classes/sun/reflect/annotation/AnnotationParser.class
79 endif
80
81 if ENABLE_ZLIB
82 pkgdata_DATA = vm.zip
83 else
84 pkgdata_DATA = nozip
85 endif
86 endif
87
88 if WITH_CLASSPATH_CLDC1_1
89 VM_JAVA_FILES = \
90         $(top_srcdir)/src/lib/cldc1.1/com/sun/cldchi/jvm/FileDescriptor.java
91
92 VM_CLASS_FILES = \
93         classes/com/sun/cldchi/jvm/FileDescriptor.class
94
95 if ENABLE_ZLIB
96 pkgdata_DATA = vm.zip
97 else
98 pkgdata_DATA = nozip
99 endif
100 endif
101
102 if ENABLE_ZLIB
103 VM_ZIP = ../vm.zip
104
105 vm.zip: $(VM_JAVA_FILES)
106         $(mkdir_p) classes
107         $(JAVAC) -source 1.5 -target 1.5 -d classes $(VM_JAVA_FILES)
108         @if test "$(JAR)" = "zip" -o "$(JAR)" = "zip.exe"; then \
109             cd classes && $(JAR) -r -D $(VM_ZIP) .; \
110         else \
111             cd classes && $(JAR) cvf $(VM_ZIP) .; \
112         fi
113 else
114 nozip: $(VM_JAVA_FILES)
115         $(mkdir_p) classes
116         $(JAVAC) -source 1.5 -target 1.5 -d classes $(VM_JAVA_FILES)
117 endif
118
119 clean-local:
120         -rm -rf classes
121
122
123 ## Local variables:
124 ## mode: Makefile
125 ## indent-tabs-mode: t
126 ## c-basic-offset: 4
127 ## tab-width: 8
128 ## compile-command: "automake --add-missing"
129 ## End: