* genall: Added, generates the headers which are in cvs.
[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 3536 2005-11-03 20:08:26Z twisti $
32
33 ## Process this file with automake to produce Makefile.in
34
35 NO_GEN_HEADER_FILES = \
36         java_lang_ClassLoader.h \
37         java_lang_Cloneable.h \
38         java_lang_Object.h \
39         java_lang_String.h \
40         java_lang_Thread.h \
41         java_lang_ThreadGroup.h \
42         java_lang_Throwable.h \
43         java_lang_VMObject.h \
44         java_lang_VMThread.h \
45         java_lang_VMThrowable.h
46
47 GEN_HEADER_FILES = \
48         java_util_Properties.h \
49         java_io_InputStream.h \
50         java_io_PrintStream.h \
51         \
52         gnu_classpath_Pointer.h \
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 ADDITIONAL_IMPLEMENTED_VM_CLASSES_HEADER_FILES = \
76         gnu_classpath_VMStackWalker.h \
77         gnu_classpath_VMSystemProperties.h \
78         java_lang_VMClass.h \
79         java_lang_VMClassLoader.h \
80         java_lang_VMRuntime.h \
81         java_lang_VMString.h \
82         java_lang_VMSystem.h \
83         java_lang_reflect_VMProxy.h \
84         java_security_VMAccessController.h
85
86 ADDITIONAL_STATIC_CLASSPATH_HEADER_FILES = \
87         java_net_DatagramPacket.h \
88         java_net_InetAddress.h \
89         \
90         gnu_java_net_PlainDatagramSocketImpl.h \
91         gnu_java_net_PlainSocketImpl.h \
92         gnu_java_nio_PipeImpl.h \
93         gnu_java_nio_channels_FileChannelImpl.h \
94         gnu_java_nio_charset_iconv_IconvEncoder.h \
95         gnu_java_nio_charset_iconv_IconvDecoder.h \
96         java_lang_VMProcess.h \
97         java_net_SocketImpl.h \
98         java_nio_MappedByteBufferImpl.h \
99         java_nio_channels_spi_SelectorProvider.h
100
101 CLEANFILES = \
102         $(GEN_HEADER_FILES) \
103         $(ADDITIONAL_IMPLEMENTED_VM_CLASSES_HEADER_FILES) \
104         $(ADDITIONAL_STATIC_CLASSPATH_HEADER_FILES)
105
106 noinst_HEADERS = \
107         $(NO_GEN_HEADER_FILES)
108
109 DO_HEADER_FILES = \
110         $(GEN_HEADER_FILES) \
111         $(ADDITIONAL_IMPLEMENTED_VM_CLASSES_HEADER_FILES)
112
113 if ENABLE_STATICVM
114 DO_HEADER_FILES += \
115         $(ADDITIONAL_STATIC_CLASSPATH_HEADER_FILES)
116 endif
117
118 CACAOH = $(top_builddir)/src/cacaoh/cacaoh
119
120 VM_ZIP = $(top_builddir)/src/lib/vm.zip
121 GLIBJ_ZIP = $(CLASSPATH_INSTALL_DIR)/share/classpath/glibj.zip
122
123 CLASSPATH = $(VM_ZIP):$(GLIBJ_ZIP)
124
125 noinst_DATA = $(DO_HEADER_FILES)
126
127 genall: $(NO_GEN_HEADER_FILES)
128
129 $(NO_GEN_HEADER_FILES):
130         @class=`echo $@ | sed -e 's/\.h$$//' -e 's/_/\./g'`; \
131         echo "$(CACAOH) -bootclasspath $(CLASSPATH) -d . $$class"; \
132         $(CACAOH) -bootclasspath $(CLASSPATH) -d . $$class
133
134 $(DO_HEADER_FILES): $(VM_ZIP) $(GLIBJ_ZIP)
135         @class=`echo $@ | sed -e 's/\.h$$//' -e 's/_/\./g'`; \
136         echo "$(CACAOH) -bootclasspath $(CLASSPATH) -d . $$class"; \
137         $(CACAOH) -bootclasspath $(CLASSPATH) -d . $$class
138
139
140 ## Local variables:
141 ## mode: Makefile
142 ## indent-tabs-mode: t
143 ## c-basic-offset: 4
144 ## tab-width: 8
145 ## compile-command: "automake --add-missing"
146 ## End: