## Process this file with automake to generate Makefile.in.
## 19990904 mortene.

RegularSources = \
	SoBoolOperation.cpp \
	SoCalculator.cpp \
	SoComposeMatrix.cpp \
	SoComposeRotation.cpp \
	SoComposeRotationFromTo.cpp \
	SoComposeVec2f.cpp \
	SoComposeVec3f.cpp \
	SoComposeVec4f.cpp \
	SoComputeBoundingBox.cpp \
	SoConcatenate.cpp \
	SoConvertAll.cpp \
	SoCounter.cpp \
	SoDecomposeMatrix.cpp \
	SoDecomposeRotation.cpp \
	SoDecomposeVec2f.cpp \
	SoDecomposeVec3f.cpp \
	SoDecomposeVec4f.cpp \
	SoElapsedTime.cpp \
	SoEngine.cpp \
	SoEngineOutput.cpp \
	SoFieldConverter.cpp \
	SoGate.cpp \
	SoInterpolate.cpp \
	SoInterpolateFloat.cpp \
	SoInterpolateRotation.cpp \
	SoInterpolateVec2f.cpp \
	SoInterpolateVec3f.cpp \
	SoInterpolateVec4f.cpp \
	SoNodeEngine.cpp \
	SoOnOff.cpp \
	SoOneShot.cpp \
	SoOutputData.cpp \
	SoSelectOne.cpp \
	SoTimeCounter.cpp \
	SoTransformVec3f.cpp \
	SoTriggerAny.cpp \
	SoTexture2Convert.cpp \
	SoHeightMapToNormalMap.cpp \
	evaluator.c \
	evaluator_tab.c

LinkHackSources = \
	all-engines-cpp.cpp \
	all-engines-c.c

PublicHeaders =

PrivateHeaders = \
	SoSubEngineP.h \
	SoConvertAll.h \
	SoSubNodeEngineP.h \
	evaluator.h \
	so_eval.ic

ObsoleteHeaders =

EXTRA_DIST = \
	evaluator.l \
	evaluator.y \
	evaluator_tab.diff

# Don't use the explicit rules, they will just confuse users on
# systems without flex and/or bison. 20000606 mortene.

#BUILT_SOURCES = $(srcdir)/lex.so_eval.c $(srcdir)/evaluator.tab.c

#$(srcdir)/lex.so_eval.c: $(srcdir)/evaluator.l
#	flex -o$(srcdir)/lex.so_eval.c -L $(srcdir)/evaluator.l

#$(srcdir)/evaluator_tab.c: $(srcdir)/lex.so_eval.c $(srcdir)/evaluator.y
#	bison -p so_eval -o $(srcdir)/evaluator_tab.c -l $(srcdir)/evaluator.y

##$ BEGIN TEMPLATE Make-Common(engines, engines)
# **************************************************************************
# This template depends on the following variables having been set up before
# its invokation.
#
# PublicHeaders    - header files that should be installed
# PrivateHeaders   - source files that should be distributed, but not
#                    installed - including source-included source files.
# RegularSources   - source files compiled in this directory
# LinkHackSources  - alternative source files used on -enable-compact compilation
# ObsoletedHeaders - header files that should be removed upon installation

# Everything below is autogenerated from a macro, so don't modify
# within the Makefile.am itself. 19991201 mortene.

DISTCLEANFILES = \
	ii_files/*.ii

if HACKING_COMPACT_BUILD
BuildSources = $(LinkHackSources)
ExtraSources = $(RegularSources)
else
BuildSources = $(RegularSources)
ExtraSources = $(LinkHackSources)
endif

if BUILD_WITH_MSVC
noinst_LIBRARIES = engines.lst
else
if HACKING_DYNAMIC_MODULES
lib_LTLIBRARIES = libengines@SUFFIX@LINKHACK.la
else
noinst_LTLIBRARIES = libengines.la
endif
endif

# Remove any linklibraries detected by configure, as they are not
# needed in the submodules -- only in the toplevel libCoin build.
LIBS = 

DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include $(ExtraIncludeDirs) -I$(top_builddir)/src -I$(top_srcdir)/src

# header installation
if MAC_FRAMEWORK
libenginesincdir = $(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Headers/engines
# hack to change libdir value when installing Mac OS X compiler framework
lib@nop@dir = $(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Libraries
else
libenginesincdir = $(includedir)/Inventor/engines
endif
libenginesinc_HEADERS = $(PublicHeaders)

libengines_la_SOURCES = $(BuildSources)
EXTRA_libengines_la_SOURCES = \
	$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)

libengines@SUFFIX@LINKHACK_la_SOURCES = $(BuildSources)
EXTRA_libengines@SUFFIX@LINKHACK_la_SOURCES = \
	$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)

engines_lst_SOURCES = $(BuildSources)
EXTRA_engines_lst_SOURCES = \
	$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)

# this rule causes a make warning, so we remove it when it is not in use
engines.lst: Makefile $(engines_lst_OBJECTS)
	@echo "Linking engines.lst..."; \
	rm -f $@; touch $@; \
	for i in $(engines_lst_OBJECTS); do echo $$i >>$@; done

install-libenginesincHEADERS: $(libenginesinc_HEADERS)
	@$(NORMAL_INSTALL)
	@if test x"$(libenginesinc_HEADERS)" = x""; then :; else \
	  echo " $(mkinstalldirs) $(DESTDIR)$(libenginesincdir)"; \
	  $(mkinstalldirs) $(DESTDIR)$(libenginesincdir); \
	fi
	@list='$(libenginesinc_HEADERS)'; for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  f="`echo $$p | sed -e 's|^.*/||'`"; \
	  src="$$d$$p"; dst="$(DESTDIR)$(libenginesincdir)/$$f"; \
	  if cmp -s "$$src" "$$dst"; then :; else \
	    echo " $(INSTALL_HEADER) $$src $$dst"; \
	    $(INSTALL_HEADER) "$$src" "$$dst" || exit 1; \
	  fi \
	done
	@list='$(ObsoletedHeaders)'; for f in $$list; do \
	  file="$(DESTDIR)$(libenginesincdir)/$$f"; \
	  if test -x "$$file"; then \
	    echo " rm -f $$file"; \
	    rm -f "$$file"; \
	  fi \
	done; \
	:

if MACOSX
# When using --enable-hacking, the user tends to manually replace some 
# of the installed libraries by symlinks back to the build directory. 
# But Mac OS X's install program refuses to overwrite symlinks => we 
# have to explicitly remove existing symlinks before installation.
install-exec-local:
	@for file in $(DESTDIR)$(lib@nop@dir)/libengines@SUFFIX@LINKHACK*.dylib; do \
	  if test -L "$$file"; then \
	    rm -f "$$file"; \
	  fi \
	done; 
else 
install-exec-local:
endif

install-symlinks:
	@echo "Creating symlink to libengines@SUFFIX@LINKHACK*@LIBEXT@*"; \
        for dir in $(SUBDIRS) ; do \
          (cd $$dir; $(MAKE) install-symlinks;) \
        done ; \
        here=`pwd`; \
	(cd $(DESTDIR)$(lib@nop@dir); \
	for file in libengines@SUFFIX@LINKHACK*@LIBEXT@*; do \
	  ln -sf "$$here/.libs/$$file" "$$file"; \
	done; \
        cd -; )
##$ END TEMPLATE Make-Common
