1 ## src/cacao/Makefile.am
3 ## Copyright (C) 1996-2005, 2006, 2007, 2008
4 ## CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
6 ## This file is part of CACAO.
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.
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.
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
24 AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR) -I$(top_srcdir)/src/vm/jit/$(ARCH_DIR)/$(OS_DIR)
40 if WITH_JAVA_RUNTIME_LIBRARY_OPENJDK
42 libjvm_la_LDFLAGS += \
43 -Xlinker --version-script=$(top_srcdir)/contrib/mapfile-vers-product
45 # This is for the Solaris LD.
46 libjvm_la_LDFLAGS += \
47 -Xlinker -M$(top_srcdir)/contrib/mapfile-vers-product
52 libjvm_la_LDFLAGS += -lgcc
60 noinst_LTLIBRARIES = \
81 # Dummy C++ source to cause C++ linking.
82 # http://www.gnu.org/software/automake/manual/automake.html#Libtool-Convenience-Libraries
83 nodist_EXTRA_libjvm_la_SOURCES = \
87 $(top_builddir)/src/fdlibm/libfdlibm.la \
88 $(top_builddir)/src/mm/libmm.la \
89 $(top_builddir)/src/native/libnative.la \
90 $(top_builddir)/src/threads/libthreads.la \
91 $(top_builddir)/src/toolbox/libtoolbox.la \
92 $(top_builddir)/src/vm/libvm.la \
104 cacao_DEPENDENCIES = \
108 if WITH_JAVA_RUNTIME_LIBRARY_OPENJDK
110 $(mkdir_p) $(prefix)/jre/lib/$(JAVA_ARCH)/server
111 $(LN_S) -f $(libdir)/libjvm.so $(prefix)/jre/lib/$(JAVA_ARCH)/server
112 $(ECHO) $(ECHO_N) > $(prefix)/jre/lib/$(JAVA_ARCH)/server/Xusage.txt
113 $(ECHO) $(ECHO_N) > $(prefix)/jre/lib/$(JAVA_ARCH)/server/libjsig.so
116 rm -f $(prefix)/jre/lib/$(JAVA_ARCH)/server/libjvm.so
117 rm -f $(prefix)/jre/lib/$(JAVA_ARCH)/server/Xusage.txt
118 rm -f $(prefix)/jre/lib/$(JAVA_ARCH)/server/libjsig.so
124 ## indent-tabs-mode: t
127 ## compile-command: "automake --add-missing"