* src/native/vm/openjdk/sun_misc_Perf.cpp: Implement just the bare minimum
[cacao.git] / src / native / include / Makefile.am
1 ## src/native/include/Makefile.am
2 ##
3 ## Copyright (C) 1996-2005, 2006, 2007, 2008
4 ## CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5 ##
6 ## This file is part of CACAO.
7 ##
8 ## This program is free software; you can redistribute it and/or
9 ## modify it under the terms of the GNU General Public License as
10 ## published by the Free Software Foundation; either version 2, or (at
11 ## your option) any later version.
12 ##
13 ## This program is distributed in the hope that it will be useful, but
14 ## WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 ## General Public License for more details.
17 ##
18 ## You should have received a copy of the GNU General Public License
19 ## along with this program; if not, write to the Free Software
20 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 ## 02110-1301, USA.
22
23
24 JAVAH    = javah
25 JAVAHCMD = $(JAVAH) -jni -bootclasspath $(BOOTCLASSPATH)
26
27 if WITH_JAVA_RUNTIME_LIBRARY_CLDC1_1
28 IMPLEMENTED_VM_CLASSES_HEADER_FILES = \
29         com_sun_cldc_io_ResourceInputStream.h \
30         com_sun_cldc_io_j2me_socket_Protocol.h \
31         com_sun_cldchi_io_ConsoleOutputStream.h \
32         com_sun_cldchi_jvm_FileDescriptor.h \
33         com_sun_cldchi_jvm_JVM.h \
34         java_lang_Class.h \
35         java_lang_Math.h \
36         java_lang_Runtime.h \
37         java_lang_System.h
38 endif
39
40 if WITH_JAVA_RUNTIME_LIBRARY_GNU_CLASSPATH
41 IMPLEMENTED_VM_CLASSES_HEADER_FILES = \
42         gnu_classpath_VMStackWalker.h \
43         gnu_classpath_VMSystemProperties.h \
44         gnu_java_lang_VMCPStringBuilder.h \
45         gnu_java_lang_management_VMClassLoadingMXBeanImpl.h \
46         gnu_java_lang_management_VMMemoryMXBeanImpl.h \
47         gnu_java_lang_management_VMRuntimeMXBeanImpl.h \
48         gnu_java_lang_management_VMThreadMXBeanImpl.h \
49         java_lang_VMClass.h \
50         java_lang_VMClassLoader.h \
51         java_lang_VMObject.h \
52         java_lang_VMRuntime.h \
53         java_lang_VMString.h \
54         java_lang_VMSystem.h \
55         java_lang_VMThread.h \
56         java_lang_VMThrowable.h \
57         java_lang_management_VMManagementFactory.h \
58         java_lang_reflect_VMConstructor.h \
59         java_lang_reflect_VMField.h \
60         java_lang_reflect_VMMethod.h \
61         java_lang_reflect_VMProxy.h \
62         java_security_VMAccessController.h \
63         java_util_concurrent_atomic_AtomicLong.h \
64         sun_misc_Unsafe.h
65
66 if ENABLE_ANNOTATIONS
67 IMPLEMENTED_VM_CLASSES_HEADER_FILES += \
68         sun_reflect_ConstantPool.h
69 endif
70 endif
71
72 if WITH_JAVA_RUNTIME_LIBRARY_OPENJDK
73 IMPLEMENTED_VM_CLASSES_HEADER_FILES = \
74         sun_misc_Unsafe.h
75 endif
76
77 if ENABLE_JVMTI
78 JVMTI_HEADER_FILES = \
79         gnu_classpath_jdwp_VMFrame.h \
80         gnu_classpath_jdwp_VMMethod.h \
81         gnu_classpath_jdwp_VMVirtualMachine.h \
82         gnu_classpath_jdwp_event_EventRequest.h \
83         gnu_classpath_jdwp_util_VariableTable.h
84 endif
85
86 CLEANFILES = \
87         *.h
88
89 DO_HEADER_FILES = \
90         $(IMPLEMENTED_VM_CLASSES_HEADER_FILES)
91
92 if WITH_JAVA_RUNTIME_LIBRARY_GNU_CLASSPATH
93 if ENABLE_ZLIB
94 VM_ZIP = $(top_builddir)/src/classes/vm.zip
95 endif
96 endif
97
98 if WITH_JAVA_RUNTIME_LIBRARY_CLDC1_1
99 if ENABLE_ZLIB
100 VM_ZIP = $(top_builddir)/src/classes/vm.zip
101 endif
102 endif
103
104 noinst_DATA = $(DO_HEADER_FILES)
105
106 $(DO_HEADER_FILES): $(CACAOH) $(VM_ZIP) $(CLASSPATH_CLASSES)
107         @class=`echo $@ | sed -e 's/\.h$$//' -e 's/_/\./g'`; \
108         echo "$(JAVAHCMD) -d . $$class"; \
109         $(JAVAHCMD) -d . $$class
110
111
112 ## Local variables:
113 ## mode: Makefile
114 ## indent-tabs-mode: t
115 ## c-basic-offset: 4
116 ## tab-width: 8
117 ## compile-command: "automake --add-missing"
118 ## End: