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

SUBDIRS = GL

RegularSources = \
	SoAccumulatedElement.cpp \
	SoAmbientColorElement.cpp \
	SoAnnoText3CharOrientElement.cpp \
	SoAnnoText3FontSizeHintElement.cpp \
	SoAnnoText3RenderPrintElement.cpp \
	SoBBoxModelMatrixElement.cpp \
	SoBumpMapElement.cpp \
	SoBumpMapCoordinateElement.cpp \
	SoBumpMapMatrixElement.cpp \
	SoBumpMappingPropertyElement.cpp \
	SoCacheElement.cpp \
	SoCacheHintElement.cpp \
	SoClipPlaneElement.cpp \
	SoComplexityElement.cpp \
	SoComplexityTypeElement.cpp \
	SoCoordinateElement.cpp \
	SoCreaseAngleElement.cpp \
	SoCullElement.cpp \
	SoDecimationPercentageElement.cpp \
	SoDecimationTypeElement.cpp \
	SoDepthBufferElement.cpp \
	SoDiffuseColorElement.cpp \
	SoDrawStyleElement.cpp \
	SoElement.cpp \
	SoEmissiveColorElement.cpp \
	SoEnvironmentElement.cpp \
	SoFloatElement.cpp \
	SoFocalDistanceElement.cpp \
	SoFontNameElement.cpp \
	SoFontSizeElement.cpp \
	SoInt32Element.cpp \
	SoLazyElement.cpp \
	SoLightAttenuationElement.cpp \
	SoLightElement.cpp \
	SoLightModelElement.cpp \
	SoLinePatternElement.cpp \
	SoLineWidthElement.cpp \
	SoLocalBBoxMatrixElement.cpp \
	SoMaterialBindingElement.cpp \
	SoVertexAttributeBindingElement.cpp \
	SoMultiTextureCoordinateElement.cpp \
	SoMultiTextureEnabledElement.cpp \
	SoMultiTextureMatrixElement.cpp \
	SoMultiTextureImageElement.cpp \
	SoModelMatrixElement.cpp \
	SoNormalBindingElement.cpp \
	SoNormalElement.cpp \
	SoOverrideElement.cpp \
	SoPickRayElement.cpp \
	SoPickStyleElement.cpp \
	SoPointSizeElement.cpp \
	SoPolygonOffsetElement.cpp \
	SoProfileCoordinateElement.cpp \
	SoProfileElement.cpp \
	SoProjectionMatrixElement.cpp \
	SoReplacedElement.cpp \
	SoShapeHintsElement.cpp \
	SoShapeStyleElement.cpp \
	SoShininessElement.cpp \
	SoSpecularColorElement.cpp \
	SoSwitchElement.cpp \
	SoTextOutlineEnabledElement.cpp \
	SoTextureCombineElement.cpp \
	SoTextureCoordinateBindingElement.cpp \
	SoTextureOverrideElement.cpp \
	SoTextureScalePolicyElement.cpp \
	SoTextureScaleQualityElement.cpp \
	SoTextureUnitElement.cpp \
	SoTextureQualityElement.cpp \
	SoTransparencyElement.cpp \
	SoUnitsElement.cpp \
	SoViewVolumeElement.cpp \
	SoViewingMatrixElement.cpp \
	SoViewportRegionElement.cpp \
	SoWindowElement.cpp \
	SoListenerPositionElement.cpp \
	SoListenerOrientationElement.cpp \
	SoListenerGainElement.cpp \
	SoListenerDopplerElement.cpp \
	SoSoundElement.cpp \
	SoVertexAttributeElement.cpp

LinkHackSources = \
	all-elements-cpp.cpp

PublicHeaders =

PrivateHeaders = \
	SoTextureScalePolicyElement.h \
	SoTextureScaleQualityElement.h \
	SoVertexAttributeData.h \
	SoVertexAttributeElement.cpp

ObsoletedHeaders =

##$ BEGIN TEMPLATE Make-Common(elements, elements)
# **************************************************************************
# 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 = elements.lst
else
if HACKING_DYNAMIC_MODULES
lib_LTLIBRARIES = libelements@SUFFIX@LINKHACK.la
else
noinst_LTLIBRARIES = libelements.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
libelementsincdir = $(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Headers/elements
# 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
libelementsincdir = $(includedir)/Inventor/elements
endif
libelementsinc_HEADERS = $(PublicHeaders)

libelements_la_SOURCES = $(BuildSources)
EXTRA_libelements_la_SOURCES = \
	$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)

libelements@SUFFIX@LINKHACK_la_SOURCES = $(BuildSources)
EXTRA_libelements@SUFFIX@LINKHACK_la_SOURCES = \
	$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)

elements_lst_SOURCES = $(BuildSources)
EXTRA_elements_lst_SOURCES = \
	$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)

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

install-libelementsincHEADERS: $(libelementsinc_HEADERS)
	@$(NORMAL_INSTALL)
	@if test x"$(libelementsinc_HEADERS)" = x""; then :; else \
	  echo " $(mkinstalldirs) $(DESTDIR)$(libelementsincdir)"; \
	  $(mkinstalldirs) $(DESTDIR)$(libelementsincdir); \
	fi
	@list='$(libelementsinc_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)$(libelementsincdir)/$$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)$(libelementsincdir)/$$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)/libelements@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 libelements@SUFFIX@LINKHACK*@LIBEXT@*"; \
        for dir in $(SUBDIRS) ; do \
          (cd $$dir; $(MAKE) install-symlinks;) \
        done ; \
        here=`pwd`; \
	(cd $(DESTDIR)$(lib@nop@dir); \
	for file in libelements@SUFFIX@LINKHACK*@LIBEXT@*; do \
	  ln -sf "$$here/.libs/$$file" "$$file"; \
	done; \
        cd -; )
##$ END TEMPLATE Make-Common
