c2186a438eb85b609450425b87c6bbd2b30a70fe
[cacao.git] / src / native / vm / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 # $Id: Makefile.am 1645 2004-12-01 14:06:44Z twisti $
4
5 INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit/@ARCH_DIR@
6
7 CLEANFILES = implementednatives.data
8
9 noinst_LIBRARIES = libnativevm.a
10
11 libnativevm_a_SOURCES = \
12         Constructor.c \
13         Field.c \
14         Method.c \
15         Proxy.c \
16         VMClass.c \
17         VMClassLoader.c \
18         VMObject.c \
19         VMRuntime.c \
20         VMSecurityManager.c \
21         VMString.c \
22         VMSystem.c \
23         VMThread.c \
24         VMThrowable.c
25
26 all: libnativevm.a implementednatives.data
27
28 implementednatives.data: $(libnativevm_a_SOURCES)
29         echo "" > implementednatives.data
30         grep "JNICALL Java_" *.c | perl -p -i -e "s/.*JNICALL\s//" | perl -p -i -e"s/\(.*//"  | ( \
31                 while read line; do \
32                         grep $$line $(top_srcdir)/src/native/include/*.h > /dev/null; \
33                         if test $$? == 0; then \
34                                 echo $$line >> implementednatives.data; \
35                         fi ; \
36                 done )
37
38 ## Local variables:
39 ## mode: Makefile
40 ## indent-tabs-mode: t
41 ## c-basic-offset: 4
42 ## tab-width: 8
43 ## compile-command: "automake --add-missing"
44 ## End: