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

RegularSources = \
	SoField.cpp \
	SoFieldContainer.cpp \
	SoFieldData.cpp \
	SoMFBitMask.cpp \
	SoMFBool.cpp \
	SoMFColor.cpp \
	SoMFColorRGBA.cpp \
	SoMFDouble.cpp \
	SoMFEngine.cpp \
	SoMFEnum.cpp \
	SoMFFloat.cpp \
	SoMFInt32.cpp \
	SoMFMatrix.cpp \
	SoMFName.cpp \
	SoMFNode.cpp \
	SoMFPath.cpp \
	SoMFPlane.cpp \
	SoMFRotation.cpp \
	SoMFShort.cpp \
	SoMFString.cpp \
	SoMFTime.cpp \
	SoMFUInt32.cpp \
	SoMFUShort.cpp \
	SoMFVec2b.cpp \
	SoMFVec2s.cpp \
	SoMFVec2i32.cpp \
	SoMFVec2f.cpp \
	SoMFVec2d.cpp \
	SoMFVec3b.cpp \
	SoMFVec3s.cpp \
	SoMFVec3i32.cpp \
	SoMFVec3f.cpp \
	SoMFVec3d.cpp \
	SoMFVec4b.cpp \
	SoMFVec4ub.cpp \
	SoMFVec4s.cpp \
	SoMFVec4us.cpp \
	SoMFVec4i32.cpp \
	SoMFVec4ui32.cpp \
	SoMFVec4f.cpp \
	SoMFVec4d.cpp \
	SoMField.cpp \
	SoSFBitMask.cpp \
	SoSFBool.cpp \
	SoSFBox2s.cpp \
	SoSFBox2i32.cpp \
	SoSFBox2f.cpp \
	SoSFBox2d.cpp \
	SoSFBox3s.cpp \
	SoSFBox3i32.cpp \
	SoSFBox3f.cpp \
	SoSFBox3d.cpp \
	SoSFColor.cpp \
	SoSFColorRGBA.cpp \
	SoSFDouble.cpp \
	SoSFEngine.cpp \
	SoSFEnum.cpp \
	SoSFFloat.cpp \
	SoSFImage.cpp \
	SoSFImage3.cpp \
	SoSFInt32.cpp \
	SoSFMatrix.cpp \
	SoSFName.cpp \
	SoSFNode.cpp \
	SoSFPath.cpp \
	SoSFPlane.cpp \
	SoSFRotation.cpp \
	SoSFShort.cpp \
	SoSFString.cpp \
	SoSFTime.cpp \
	SoSFTrigger.cpp \
	SoSFUInt32.cpp \
	SoSFUShort.cpp \
	SoSFVec2b.cpp \
	SoSFVec2s.cpp \
	SoSFVec2i32.cpp \
	SoSFVec2f.cpp \
	SoSFVec2d.cpp \
	SoSFVec3b.cpp \
	SoSFVec3s.cpp \
	SoSFVec3i32.cpp \
	SoSFVec3f.cpp \
	SoSFVec3d.cpp \
	SoSFVec4b.cpp \
	SoSFVec4ub.cpp \
	SoSFVec4s.cpp \
	SoSFVec4us.cpp \
	SoSFVec4i32.cpp \
	SoSFVec4ui32.cpp \
	SoSFVec4f.cpp \
	SoSFVec4d.cpp \
	SoSField.cpp \
	SoGlobalField.cpp \
	shared.cpp

LinkHackSources = \
	all-fields-cpp.cpp

PublicHeaders =

PrivateHeaders = \
	SoSubFieldP.h \
	SoGlobalField.h \
        shared.h

ObsolateHeaders =

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

libfields_la_SOURCES = $(BuildSources)
EXTRA_libfields_la_SOURCES = \
	$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)

libfields@SUFFIX@LINKHACK_la_SOURCES = $(BuildSources)
EXTRA_libfields@SUFFIX@LINKHACK_la_SOURCES = \
	$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)

fields_lst_SOURCES = $(BuildSources)
EXTRA_fields_lst_SOURCES = \
	$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)

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

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