if BUILD_WITH_THREADS
THREADSDIR = threads
else
THREADSDIR =
endif

SUBDIRS = XML base errors glue $(THREADSDIR)


BUILT_SOURCES = \
	basic.h

DISTCLEANFILES = \
	basic.h \
	stamp-h*

basic.h: $(srcdir)/basic.h.in
	@( cd $(top_builddir); $(MAKE) built-sources )

PublicHeaders = \
	basic.h \
	tidbits.h
PrivateHeaders = \
	basic.h.in
ObsoleteHeaders =

##$ BEGIN TEMPLATE Make-Include-Common(c, C)
# **************************************************************************
# 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.
# 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.

EXTRA_DIST = $(PrivateHeaders)

if MAC_FRAMEWORK
libcincdir = $(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Headers/C
# 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
libcincdir = $(includedir)/Inventor/C
endif
libcinc_HEADERS = $(PublicHeaders)

install-libcincHEADERS: $(libcinc_HEADERS)
	@$(NORMAL_INSTALL)
	@if test x"$(libcinc_HEADERS)" = x""; then :; else \
	  echo " $(mkinstalldirs) $(DESTDIR)$(libcincdir)"; \
	  $(mkinstalldirs) $(DESTDIR)$(libcincdir); \
	fi
	@list='$(libcinc_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)$(libcincdir)/$$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)$(libcincdir)/$$f"; \
	  if test -x "$$file"; then \
	    echo " rm -f $$file"; \
	    rm -f "$$file"; \
	  fi \
	done; \
	:

##$ END TEMPLATE Make-Include-Common
