# Makefile.in generated by automake 1.7.5 from Makefile.am.
# @configure_input@

# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

@SET_MAKE@

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..

am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
ACLOCAL = @ACLOCAL@
AMDEP_FALSE = @AMDEP_FALSE@
AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AR = @AR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BUILD_HTMLHELP_FALSE = @BUILD_HTMLHELP_FALSE@
BUILD_HTMLHELP_TRUE = @BUILD_HTMLHELP_TRUE@
BUILD_HTMLPAGES_FALSE = @BUILD_HTMLPAGES_FALSE@
BUILD_HTMLPAGES_TRUE = @BUILD_HTMLPAGES_TRUE@
BUILD_JAVA_WRAPPER_FALSE = @BUILD_JAVA_WRAPPER_FALSE@
BUILD_JAVA_WRAPPER_TRUE = @BUILD_JAVA_WRAPPER_TRUE@
BUILD_LIBRARY_FALSE = @BUILD_LIBRARY_FALSE@
BUILD_LIBRARY_TRUE = @BUILD_LIBRARY_TRUE@
BUILD_MANPAGES_FALSE = @BUILD_MANPAGES_FALSE@
BUILD_MANPAGES_TRUE = @BUILD_MANPAGES_TRUE@
BUILD_WITH_MSVC = @BUILD_WITH_MSVC@
BUILD_WITH_MSVC_FALSE = @BUILD_WITH_MSVC_FALSE@
BUILD_WITH_MSVC_TRUE = @BUILD_WITH_MSVC_TRUE@
BUILD_WITH_SUPERGLU_FALSE = @BUILD_WITH_SUPERGLU_FALSE@
BUILD_WITH_SUPERGLU_TRUE = @BUILD_WITH_SUPERGLU_TRUE@
BUILD_WITH_THREADS_FALSE = @BUILD_WITH_THREADS_FALSE@
BUILD_WITH_THREADS_TRUE = @BUILD_WITH_THREADS_TRUE@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
COIN_BETA_VERSION = @COIN_BETA_VERSION@
COIN_COMPILER = @COIN_COMPILER@
COIN_DOC_HTML = @COIN_DOC_HTML@
COIN_DOC_HTML_HELP = @COIN_DOC_HTML_HELP@
COIN_DOC_MAN = @COIN_DOC_MAN@
COIN_DSP_DEFS = @COIN_DSP_DEFS@
COIN_DSP_INCS = @COIN_DSP_INCS@
COIN_DSP_LIBS = @COIN_DSP_LIBS@
COIN_EXTRA_CFLAGS = @COIN_EXTRA_CFLAGS@
COIN_EXTRA_CPPFLAGS = @COIN_EXTRA_CPPFLAGS@
COIN_EXTRA_CXXFLAGS = @COIN_EXTRA_CXXFLAGS@
COIN_EXTRA_LDFLAGS = @COIN_EXTRA_LDFLAGS@
COIN_EXTRA_LIBS = @COIN_EXTRA_LIBS@
COIN_HACKING_LIBDIRS = @COIN_HACKING_LIBDIRS@
COIN_LIB_DSP_DEFS = @COIN_LIB_DSP_DEFS@
COIN_MAJOR_VERSION = @COIN_MAJOR_VERSION@
COIN_MICRO_VERSION = @COIN_MICRO_VERSION@
COIN_MINOR_VERSION = @COIN_MINOR_VERSION@
COIN_MSVC_LIBC = @COIN_MSVC_LIBC@
COIN_SO_VERSION = @COIN_SO_VERSION@
COIN_VERSION = @COIN_VERSION@
CONFIG = @CONFIG@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEB_PACKAGEABLE_FALSE = @DEB_PACKAGEABLE_FALSE@
DEB_PACKAGEABLE_TRUE = @DEB_PACKAGEABLE_TRUE@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DSUFFIX = @DSUFFIX@
ECHO = @ECHO@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
F77 = @F77@
FFLAGS = @FFLAGS@
HACKING_COMPACT_BUILD_FALSE = @HACKING_COMPACT_BUILD_FALSE@
HACKING_COMPACT_BUILD_TRUE = @HACKING_COMPACT_BUILD_TRUE@
HACKING_DYNAMIC_MODULES_FALSE = @HACKING_DYNAMIC_MODULES_FALSE@
HACKING_DYNAMIC_MODULES_TRUE = @HACKING_DYNAMIC_MODULES_TRUE@
HAVE_3DS_IMPORT_CAPABILITIES = @HAVE_3DS_IMPORT_CAPABILITIES@
HAVE_FONTCONFIG_FALSE = @HAVE_FONTCONFIG_FALSE@
HAVE_FONTCONFIG_TRUE = @HAVE_FONTCONFIG_TRUE@
HAVE_FREETYPE_FALSE = @HAVE_FREETYPE_FALSE@
HAVE_FREETYPE_TRUE = @HAVE_FREETYPE_TRUE@
HAVE_JAVASCRIPT = @HAVE_JAVASCRIPT@
HAVE_SOUND = @HAVE_SOUND@
HAVE_SPIDERMONKEY_VIA_LINKTIME_LINKING_FALSE = @HAVE_SPIDERMONKEY_VIA_LINKTIME_LINKING_FALSE@
HAVE_SPIDERMONKEY_VIA_LINKTIME_LINKING_TRUE = @HAVE_SPIDERMONKEY_VIA_LINKTIME_LINKING_TRUE@
HAVE_SUPERGLU = @HAVE_SUPERGLU@
HAVE_THREADS = @HAVE_THREADS@
HAVE_THREADSAFE = @HAVE_THREADSAFE@
HAVE_VRML97 = @HAVE_VRML97@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBEXT = @LIBEXT@
LIBFLAGS = @LIBFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
LT_AGE = @LT_AGE@
LT_CURRENT = @LT_CURRENT@
LT_REVISION = @LT_REVISION@
MACOSX_10_2FF = @MACOSX_10_2FF@
MACOSX_10_2FF_FALSE = @MACOSX_10_2FF_FALSE@
MACOSX_10_2FF_TRUE = @MACOSX_10_2FF_TRUE@
MACOSX_10_3FF_FALSE = @MACOSX_10_3FF_FALSE@
MACOSX_10_3FF_TRUE = @MACOSX_10_3FF_TRUE@
MACOSX_DEPLOYMENT_TARGET = @MACOSX_DEPLOYMENT_TARGET@
MACOSX_FALSE = @MACOSX_FALSE@
MACOSX_NAME = @MACOSX_NAME@
MACOSX_PACKAGEABLE_FALSE = @MACOSX_PACKAGEABLE_FALSE@
MACOSX_PACKAGEABLE_TRUE = @MACOSX_PACKAGEABLE_TRUE@
MACOSX_TRUE = @MACOSX_TRUE@
MACOSX_USE_DYNAMIC_LOOKUP_FALSE = @MACOSX_USE_DYNAMIC_LOOKUP_FALSE@
MACOSX_USE_DYNAMIC_LOOKUP_TRUE = @MACOSX_USE_DYNAMIC_LOOKUP_TRUE@
MAC_FRAMEWORK = @MAC_FRAMEWORK@
MAC_FRAMEWORK_FALSE = @MAC_FRAMEWORK_FALSE@
MAC_FRAMEWORK_NAME = @MAC_FRAMEWORK_NAME@
MAC_FRAMEWORK_PREFIX = @MAC_FRAMEWORK_PREFIX@
MAC_FRAMEWORK_TRUE = @MAC_FRAMEWORK_TRUE@
MAC_FRAMEWORK_VERSION = @MAC_FRAMEWORK_VERSION@
MAINT = @MAINT@
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
MAKEINFO = @MAKEINFO@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@
RFC822_DATE_DAYSTRING = @RFC822_DATE_DAYSTRING@
RFC822_DATE_NODAYSTRING = @RFC822_DATE_NODAYSTRING@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
SIM_INCLUDE_GLEXT_H = @SIM_INCLUDE_GLEXT_H@
SIM_INCLUDE_GLU_H = @SIM_INCLUDE_GLU_H@
SIM_INCLUDE_GL_H = @SIM_INCLUDE_GL_H@
SIM_INCLUDE_WINDOWS_H = @SIM_INCLUDE_WINDOWS_H@
STRIP = @STRIP@
SUFFIX = @SUFFIX@
SUPERGLUPREFIX = @SUPERGLUPREFIX@
VERSION = @VERSION@
WIN_PACKAGEABLE_FALSE = @WIN_PACKAGEABLE_FALSE@
WIN_PACKAGEABLE_TRUE = @WIN_PACKAGEABLE_TRUE@
X_CFLAGS = @X_CFLAGS@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
X_LIBS = @X_LIBS@
X_PRE_LIBS = @X_PRE_LIBS@
ac_compiler_gnu = @ac_compiler_gnu@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_F77 = @ac_ct_F77@
ac_ct_RANLIB = @ac_ct_RANLIB@
ac_ct_STRIP = @ac_ct_STRIP@
ac_unique_file = @ac_unique_file@
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
coin_build_dir = @coin_build_dir@
coin_configure_date = @coin_configure_date@
coin_html_dir = @coin_html_dir@
coin_html_help_dir = @coin_html_help_dir@
coin_man_dir = @coin_man_dir@
coin_src_dir = @coin_src_dir@
coin_w32_build_dir = @coin_w32_build_dir@
coin_w32_src_dir = @coin_w32_src_dir@
datadir = @datadir@
exec_prefix = @exec_prefix@
frameworkdir = @frameworkdir@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
htmlhelpdir = @htmlhelpdir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
ivincludedir = @ivincludedir@
libdir = @libdir@
libexecdir = @libexecdir@
localstatedir = @localstatedir@
mandir = @mandir@
nop = @nop@
oldincludedir = @oldincludedir@
path_tag = @path_tag@
prefix = @prefix@
program_transform_name = @program_transform_name@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sim_ac_doxygen_exe = @sim_ac_doxygen_exe@
sim_ac_dpkg_buildpackage_exe = @sim_ac_dpkg_buildpackage_exe@
sim_ac_hhc_exe = @sim_ac_hhc_exe@
sim_ac_makensis_exe = @sim_ac_makensis_exe@
sim_ac_mks_make = @sim_ac_mks_make@
sim_ac_packagemaker_app = @sim_ac_packagemaker_app@
sim_ac_perl_exe = @sim_ac_perl_exe@
sim_ac_relative_src_dir = @sim_ac_relative_src_dir@
sim_ac_relative_src_dir_p = @sim_ac_relative_src_dir_p@
sim_ac_simage_configcmd = @sim_ac_simage_configcmd@
subdirs = @subdirs@
sysconfdir = @sysconfdir@
target = @target@
target_alias = @target_alias@
target_cpu = @target_cpu@
target_os = @target_os@
target_vendor = @target_vendor@

@BUILD_WITH_MSVC_TRUE@cxxwrap_exe = $(top_srcdir)/cfg/cxxwrap.exe
@BUILD_WITH_MSVC_FALSE@cxxwrap_exe = ../tools/cxxwrap-*/cxxwrap

sources := $(shell find jni -iregex .\*\\.cxx | grep -v UnitData\$)
objects := $(patsubst %.cxx,%.o,$(sources))

@BUILD_WITH_MSVC_TRUE@LIBRARY = jni/CoinJava.dll
@BUILD_WITH_MSVC_FALSE@LIBRARY = jni/libCoinJava.so
@BUILD_WITH_MSVC_TRUE@COIN_LIB = -lcoin2

JARFILE = jni/CoinJava.jar

JAVAC = javac
JAR = jar

JNI_INC = -I$(JAVA_HOME)/include/linux -I$(JAVA_HOME)/include
subdir = java
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/cfg/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/include/discard.h \
	$(top_builddir)/include/config.h \
	$(top_builddir)/include/setup.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
DIST_COMMON = Makefile.am Makefile.in
all: all-am

.SUFFIXES:
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
	cd $(top_srcdir) && \
	  $(AUTOMAKE) --gnu  java/Makefile
Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in  $(top_builddir)/config.status
	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs

distclean-libtool:
	-rm -f libtool
uninstall-info-am:
tags: TAGS
TAGS:

ctags: CTAGS
CTAGS:

DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)

top_distdir = ..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)

distdir: $(DISTFILES)
	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
	list='$(DISTFILES)'; for file in $$list; do \
	  case $$file in \
	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
	  esac; \
	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
	    dir="/$$dir"; \
	    $(mkinstalldirs) "$(distdir)$$dir"; \
	  else \
	    dir=''; \
	  fi; \
	  if test -d $$d/$$file; then \
	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
	    fi; \
	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
	  else \
	    test -f $(distdir)/$$file \
	    || cp -p $$d/$$file $(distdir)/$$file \
	    || exit 1; \
	  fi; \
	done
check-am: all-am
check: check-am
all-am: Makefile all-local

installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-am
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	  INSTALL_STRIP_FLAG=-s \
	  `test -z '$(STRIP)' || \
	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:

clean-generic:

distclean-generic:
	-rm -f Makefile $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
clean: clean-am

clean-am: clean-generic clean-libtool mostlyclean-am

distclean: distclean-am

distclean-am: clean-am distclean-generic distclean-libtool

dvi: dvi-am

dvi-am:

info: info-am

info-am:

install-data-am:

install-exec-am:

install-info: install-info-am

install-man:

installcheck-am:

maintainer-clean: maintainer-clean-am

maintainer-clean-am: distclean-am maintainer-clean-generic

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-generic mostlyclean-libtool

pdf: pdf-am

pdf-am:

ps: ps-am

ps-am:

uninstall-am: uninstall-info-am

.PHONY: all all-am all-local check check-am clean clean-generic \
	clean-libtool distclean distclean-generic distclean-libtool \
	distdir dvi dvi-am info info-am install install-am install-data \
	install-data-am install-exec install-exec-am install-info \
	install-info-am install-man install-strip installcheck \
	installcheck-am installdirs maintainer-clean \
	maintainer-clean-generic mostlyclean mostlyclean-generic \
	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
	uninstall-info-am


all-local: java
	@echo "Java-wrapper build successful..."

headers.tar:
	builddir=`pwd`; \
	tmpdir=/tmp/coinjava; \
	rm -rf $$tmpdir; \
	mkdir $$tmpdir; \
	( cd ..; DESTDIR=$$tmpdir $(MAKE) install-data ); \
	( cd $$tmpdir/$(includedir); tar cf $$builddir/headers.tar * ); \
	rm -rf $$tmpdir;

headerlist.txt: headers.tar Makefile
	echo Inventor/C/basic.h >headerlist.txt
	tar tf headers.tar \
	  | grep "\.h\$$" \
	  | egrep -v "(SbOctTree\.h|SbHeap\.h|SbPList\.h|SbTesselator\.h|Inventor/C)" \
	  | egrep -v "(fields/So.*Long.h|elements/)" \
	  >>headerlist.txt

#	  | egrep -v "(SoGLNormalizeElement|SoGLShadeModelElement|SoLongElement)"

prep-done.txt: headerlist.txt $(top_srcdir)/scripts/prep.pl
	srcdir=`cd $(srcdir); pwd`; \
	topsrcdir=`cd $(top_srcdir); pwd`; \
	rm -rf include-pre; \
	mkdir include-pre; \
	rm -rf include-post; \
	mkdir include-post; \
	( cd include-pre; tar xf ../headers.tar ); \
	( cd include-pre; patch -p0 <$$srcdir/headers.patch ); \
	cppflags="`echo $(CPPFLAGS) | sed -e 's,-DCOIN_INTERNAL,,g'`"; \
	cat headerlist.txt \
	  | ( cd include-pre; \
	      $$topsrcdir/scripts/prep.pl \
	        --cpp="$(CXXCPP) $$cppflags" \
	        --destdir=../include-post );
	( cd include-post/Inventor; \
	  mv SoInput.h SoInput.h.old; \
	  sed -e 's, setBuffer(void \* bufpointer, setBuffer(char * bufpointer,g' SoInput.h.old > SoInput.h )
	touch prep-done.txt

cxxwrap.log: prep-done.txt
	srcdir=`cd $(srcdir); pwd`; \
	cxxwrap=`echo $(cxxwrap_exe)`; \
	topsrcdir=`cd $(top_srcdir); pwd`; \
	$$cxxwrap \
	  --root=include-post \
	  --classpath=jni/src \
	  --files=headerlist.txt \
	  --jni \
	  --jni-callbacks \
	  --jni-attributes \
	  --jni-operators \
	  --jni-expand-defaults \
	  --package-prefix=org.coin3d \
	  --verbose >cxxwrap.log;
	echo "TODO: Should patch jni/src/org/coin3d/Inventor/SoInput_jni.cxx here" 
	cp $(srcdir)/files/SoSceneManager_jni.cxx jni/src/org/coin3d/Inventor/
	cp $(srcdir)/files/hash_adt.h jni/src/org/coin3d/
	cp $(srcdir)/files/hash_adt.cxx jni/src/org/coin3d/
	cp $(srcdir)/files/RefQ.java jni/src/org/coin3d/
	cp $(srcdir)/files/Deletable.java jni/src/org/coin3d/
@BUILD_WITH_MSVC_TRUE@$(LIBRARY)-real: $(objects)
@BUILD_WITH_MSVC_TRUE@	@echo Linking dll...
@BUILD_WITH_MSVC_TRUE@	$(CXX) $(LDFLAGS) -DLL /INCREMENTAL:NO /RELEASE -L../src /OUT:$(LIBRARY) $(objects) $(COIN_LIB)
@BUILD_WITH_MSVC_FALSE@$(LIBRARY)-real: $(objects)
@BUILD_WITH_MSVC_FALSE@	@echo Linking shared library...
@BUILD_WITH_MSVC_FALSE@	$(CXX) $(LDFLAGS) -shared -Wl,-soname,$(LIBRARY) $(objects) $(COIN_LIB) -o $(LIBRARY)

# need to re-invoke make to get $(objects) filled
$(LIBRARY):
	$(MAKE) $(LIBRARY)-real

$(objects): %.o: %.cxx
	$(CXX) -I. -I$(top_builddir)/include -I$(top_srcdir)/include $(COIN_EXTRA_CPPFLAGS) -c $< -o $@

#	$(CXX) -DJNIEXPORT="__declspec(dllexport)" -I. -I$(top_builddir)/include -I$(top_srcdir)/include $(COIN_EXTRA_CPPFLAGS) -c $< -o $@

native: cxxwrap.log $(LIBRARY)

$(JARFILE):
	mkdir -p jni/java-build
	find jni/src -iregex ".*\.java$$" > jni/JAVA-SOURCES.LST
	$(JAVAC) -sourcepath jni/src -d jni/java-build @jni/JAVA-SOURCES.LST
	$(JAR) cf $(JARFILE) -C jni/java-build org

java: native $(JARFILE)

clean:
	rm -f $(shell find jni -iregex .\*\\.o\$)
	rm -f $(LIBRARY) $(JARFILE)
	rm -rf jni/java-build

realclean: clean
	rm -rf jni/src jni/JAVA-SOURCES.LST INCLUDES.LST wrap.log
	rm -rf include/Inventor
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
