2005-11-14 Tom Tromey <tromey@redhat.com>
[cacao.git] / src / native / include / Makefile.am
1 ## src/native/include/Makefile.am
2 ##
3 ## Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
4 ## R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
5 ## C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
6 ## 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., 59 Temple Place - Suite 330, Boston, MA
23 ## 02111-1307, USA.
24 ##
25 ## Contact: cacao@complang.tuwien.ac.at
26 ##
27 ## Authors: Christian Thalinger
28 ##
29 ## Changes:
30 ##
31 ## $Id: Makefile.am 3669 2005-11-15 00:18:01Z twisti $
32
33 ## Process this file with automake to produce Makefile.in
34
35 NO_GEN_HEADER_FILES = \
36         gnu_classpath_Pointer.h \
37         java_lang_ClassLoader.h \
38         java_lang_Cloneable.h \
39         java_lang_Object.h \
40         java_lang_String.h \
41         java_lang_Thread.h \
42         java_lang_ThreadGroup.h \
43         java_lang_Throwable.h \
44         java_lang_VMObject.h \
45         java_lang_VMThread.h \
46         java_lang_VMThrowable.h
47
48 GEN_HEADER_FILES = \
49         java_util_Properties.h \
50         java_io_InputStream.h \
51         java_io_PrintStream.h \
52         \
53         gnu_classpath_Pointer32.h \
54         gnu_classpath_Pointer64.h \
55         java_io_File.h \
56         java_lang_Boolean.h \
57         java_lang_Byte.h \
58         java_lang_Character.h \
59         java_lang_Class.h \
60         java_lang_Double.h \
61         java_lang_Float.h \
62         java_lang_Integer.h \
63         java_lang_Long.h \
64         java_lang_Process.h \
65         java_lang_Short.h \
66         java_lang_StackTraceElement.h \
67         java_lang_reflect_Constructor.h \
68         java_lang_reflect_Field.h \
69         java_lang_reflect_Method.h \
70         java_nio_Buffer.h \
71         java_nio_DirectByteBufferImpl.h \
72         java_security_ProtectionDomain.h \
73         java_util_Vector.h 
74
75 GEN_JVMTI_HEADER_FILES = \
76         java_nio_ByteBuffer.h \
77         gnu_classpath_jdwp_VMFrame.h \
78         gnu_classpath_jdwp_VMVirtualMachine.h \
79         gnu_classpath_jdwp_event_EventRequest.h
80
81 ADDITIONAL_IMPLEMENTED_VM_CLASSES_HEADER_FILES = \
82         gnu_classpath_VMStackWalker.h \
83         gnu_classpath_VMSystemProperties.h \
84         java_lang_VMClass.h \
85         java_lang_VMClassLoader.h \
86         java_lang_VMRuntime.h \
87         java_lang_VMString.h \
88         java_lang_VMSystem.h \
89         java_lang_reflect_VMProxy.h \
90         java_security_VMAccessController.h
91
92 ADDITIONAL_STATIC_CLASSPATH_HEADER_FILES = \
93         java_net_DatagramPacket.h \
94         java_net_InetAddress.h \
95         \
96         gnu_java_net_PlainDatagramSocketImpl.h \
97         gnu_java_net_PlainSocketImpl.h \
98         gnu_java_nio_PipeImpl.h \
99         gnu_java_nio_channels_FileChannelImpl.h \
100         gnu_java_nio_charset_iconv_IconvEncoder.h \
101         gnu_java_nio_charset_iconv_IconvDecoder.h \
102         java_lang_VMProcess.h \
103         java_net_SocketImpl.h \
104         java_nio_MappedByteBufferImpl.h \
105         java_nio_channels_spi_SelectorProvider.h
106
107 CLEANFILES = \
108         $(GEN_HEADER_FILES) \
109         $(GEN_JVMTI_HEADER_FILES) \
110         $(ADDITIONAL_IMPLEMENTED_VM_CLASSES_HEADER_FILES) \
111         $(ADDITIONAL_STATIC_CLASSPATH_HEADER_FILES)
112
113 noinst_HEADERS = \
114         $(NO_GEN_HEADER_FILES)
115
116 DO_HEADER_FILES = \
117         $(GEN_HEADER_FILES) \
118         $(ADDITIONAL_IMPLEMENTED_VM_CLASSES_HEADER_FILES)
119
120 if ENABLE_JVMTI
121 DO_HEADER_FILES += \
122         $(GEN_JVMTI_HEADER_FILES)
123 endif
124
125 if ENABLE_STATICVM
126 DO_HEADER_FILES += \
127         $(ADDITIONAL_STATIC_CLASSPATH_HEADER_FILES)
128 endif
129
130 CACAOH = $(top_builddir)/src/cacaoh/cacaoh
131
132 VM_ZIP = $(top_builddir)/src/lib/vm.zip
133 GLIBJ_ZIP = $(CLASSPATH_INSTALL_DIR)/share/classpath/$(GLIBJZ)
134
135 CLASSPATH = $(VM_ZIP):$(GLIBJ_ZIP)
136
137 noinst_DATA = $(DO_HEADER_FILES)
138
139 genall: $(NO_GEN_HEADER_FILES)
140
141 $(NO_GEN_HEADER_FILES):
142         @class=`echo $@ | sed -e 's/\.h$$//' -e 's/_/\./g'`; \
143         echo "$(CACAOH) -bootclasspath $(CLASSPATH) -d . $$class"; \
144         $(CACAOH) -bootclasspath $(CLASSPATH) -d . $$class
145
146 $(DO_HEADER_FILES): $(VM_ZIP) $(GLIBJ_ZIP)
147         @class=`echo $@ | sed -e 's/\.h$$//' -e 's/_/\./g'`; \
148         echo "$(CACAOH) -bootclasspath $(CLASSPATH) -d . $$class"; \
149         $(CACAOH) -bootclasspath $(CLASSPATH) -d . $$class
150
151
152 ## Local variables:
153 ## mode: Makefile
154 ## indent-tabs-mode: t
155 ## c-basic-offset: 4
156 ## tab-width: 8
157 ## compile-command: "automake --add-missing"
158 ## End: