RegularSources = \
	dict.cpp \
	hash.cpp \
	heap.cpp \
        list.cpp \
	memalloc.cpp \
	rbptree.cpp \
	time.cpp \
	string.cpp \
	dynarray.cpp \
	namemap.cpp \
	SbBSPTree.cpp \
	SbByteBuffer.cpp \
	SbBox2s.cpp \
	SbBox2i32.cpp \
	SbBox2f.cpp \
	SbBox2d.cpp \
	SbBox3s.cpp \
	SbBox3i32.cpp \
	SbBox3f.cpp \
	SbBox3d.cpp \
	SbClip.cpp \
	SbColor.cpp \
	SbColor4f.cpp \
	SbCylinder.cpp \
	SbDict.cpp \
	SbDPLine.cpp \
	SbDPMatrix.cpp \
	SbDPPlane.cpp \
	SbDPRotation.cpp \
	SbHeap.cpp \
	SbImage.cpp \
	SbLine.cpp \
	SbMatrix.cpp \
	SbName.cpp \
	SbOctTree.cpp \
	SbPlane.cpp \
	SbRotation.cpp \
	SbSphere.cpp \
	SbString.cpp \
	SbTesselator.cpp \
	SbGLUTessellator.cpp \
	SbTime.cpp \
	SbVec2b.cpp \
	SbVec2ub.cpp \
	SbVec2s.cpp \
	SbVec2us.cpp \
	SbVec2i32.cpp \
	SbVec2ui32.cpp \
	SbVec2f.cpp \
	SbVec2d.cpp \
	SbVec3b.cpp \
	SbVec3ub.cpp \
	SbVec3s.cpp \
	SbVec3us.cpp \
	SbVec3i32.cpp \
	SbVec3ui32.cpp \
	SbVec3f.cpp \
	SbVec3d.cpp \
	SbVec4b.cpp \
	SbVec4ub.cpp \
	SbVec4s.cpp \
	SbVec4us.cpp \
	SbVec4i32.cpp \
	SbVec4ui32.cpp \
	SbVec4f.cpp \
	SbVec4d.cpp \
	SbViewVolume.cpp \
	SbDPViewVolume.cpp \
	SbViewportRegion.cpp \
	SbXfBox3f.cpp \
	SbXfBox3d.cpp

LinkHackSources = \
	all-base-cpp.cpp

PublicHeaders =

PrivateHeaders = \
        dict.h \
	dictp.h \
        dynarray.h \
	hashp.h \
	heapp.h \
        namemap.h \
	SbGLUTessellator.h

ObsoleteHeaders =

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

libbase_la_SOURCES = $(BuildSources)
EXTRA_libbase_la_SOURCES = \
	$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)

libbase@SUFFIX@LINKHACK_la_SOURCES = $(BuildSources)
EXTRA_libbase@SUFFIX@LINKHACK_la_SOURCES = \
	$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)

base_lst_SOURCES = $(BuildSources)
EXTRA_base_lst_SOURCES = \
	$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)

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

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