1## Process this file with automake to generate Makefile.in. 2## 19990904 mortene. 3 4ExtraIncludeDirs = -I$(top_srcdir)/include/Inventor/annex 5 6RegularSources = \ 7 SoNodeKit.cpp \ 8 SoNodeKitPath.cpp \ 9 SoNodeKitListPart.cpp \ 10 SoNodekitCatalog.cpp \ 11 SoBaseKit.cpp \ 12 SoAppearanceKit.cpp \ 13 SoCameraKit.cpp \ 14 SoInteractionKit.cpp \ 15 SoLightKit.cpp \ 16 SoSceneKit.cpp \ 17 SoSeparatorKit.cpp \ 18 SoShapeKit.cpp \ 19 SoWrapperKit.cpp 20LinkHackSources = \ 21 all-nodekits-cpp.cpp 22PublicHeaders = 23PrivateHeaders = \ 24 SoSubKitP.h 25ObsoleteHeaders = 26 27##$ BEGIN TEMPLATE Make-Common(nodekits, nodekits) 28# ************************************************************************** 29# This template depends on the following variables having been set up before 30# its invokation. 31# 32# PublicHeaders - header files that should be installed 33# PrivateHeaders - source files that should be distributed, but not 34# installed - including source-included source files. 35# RegularSources - source files compiled in this directory 36# LinkHackSources - alternative source files used on -enable-compact compilation 37# ObsoletedHeaders - header files that should be removed upon installation 38 39# Everything below is autogenerated from a macro, so don't modify 40# within the Makefile.am itself. 19991201 mortene. 41 42DISTCLEANFILES = \ 43 ii_files/*.ii 44 45if HACKING_COMPACT_BUILD 46BuildSources = $(LinkHackSources) 47ExtraSources = $(RegularSources) 48else 49BuildSources = $(RegularSources) 50ExtraSources = $(LinkHackSources) 51endif 52 53if BUILD_WITH_MSVC 54noinst_LIBRARIES = nodekits.lst 55else 56if HACKING_DYNAMIC_MODULES 57lib_LTLIBRARIES = libnodekits@SUFFIX@LINKHACK.la 58else 59noinst_LTLIBRARIES = libnodekits.la 60endif 61endif 62 63# Remove any linklibraries detected by configure, as they are not 64# needed in the submodules -- only in the toplevel libCoin build. 65LIBS = 66 67DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include $(ExtraIncludeDirs) -I$(top_builddir)/src -I$(top_srcdir)/src 68 69# header installation 70if MAC_FRAMEWORK 71libnodekitsincdir = $(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Headers/nodekits 72# hack to change libdir value when installing Mac OS X compiler framework 73lib@nop@dir = $(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Libraries 74else 75libnodekitsincdir = $(includedir)/Inventor/nodekits 76endif 77libnodekitsinc_HEADERS = $(PublicHeaders) 78 79libnodekits_la_SOURCES = $(BuildSources) 80EXTRA_libnodekits_la_SOURCES = \ 81 $(PublicHeaders) $(PrivateHeaders) $(ExtraSources) 82 83libnodekits@SUFFIX@LINKHACK_la_SOURCES = $(BuildSources) 84EXTRA_libnodekits@SUFFIX@LINKHACK_la_SOURCES = \ 85 $(PublicHeaders) $(PrivateHeaders) $(ExtraSources) 86 87nodekits_lst_SOURCES = $(BuildSources) 88EXTRA_nodekits_lst_SOURCES = \ 89 $(PublicHeaders) $(PrivateHeaders) $(ExtraSources) 90 91# this rule causes a make warning, so we remove it when it is not in use 92nodekits.lst: Makefile $(nodekits_lst_OBJECTS) 93 @echo "Linking nodekits.lst..."; \ 94 rm -f $@; touch $@; \ 95 for i in $(nodekits_lst_OBJECTS); do echo $$i >>$@; done 96 97install-libnodekitsincHEADERS: $(libnodekitsinc_HEADERS) 98 @$(NORMAL_INSTALL) 99 @if test x"$(libnodekitsinc_HEADERS)" = x""; then :; else \ 100 echo " $(mkinstalldirs) $(DESTDIR)$(libnodekitsincdir)"; \ 101 $(mkinstalldirs) $(DESTDIR)$(libnodekitsincdir); \ 102 fi 103 @list='$(libnodekitsinc_HEADERS)'; for p in $$list; do \ 104 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 105 f="`echo $$p | sed -e 's|^.*/||'`"; \ 106 src="$$d$$p"; dst="$(DESTDIR)$(libnodekitsincdir)/$$f"; \ 107 if cmp -s "$$src" "$$dst"; then :; else \ 108 echo " $(INSTALL_HEADER) $$src $$dst"; \ 109 $(INSTALL_HEADER) "$$src" "$$dst" || exit 1; \ 110 fi \ 111 done 112 @list='$(ObsoletedHeaders)'; for f in $$list; do \ 113 file="$(DESTDIR)$(libnodekitsincdir)/$$f"; \ 114 if test -x "$$file"; then \ 115 echo " rm -f $$file"; \ 116 rm -f "$$file"; \ 117 fi \ 118 done; \ 119 : 120 121if MACOSX 122# When using --enable-hacking, the user tends to manually replace some 123# of the installed libraries by symlinks back to the build directory. 124# But Mac OS X's install program refuses to overwrite symlinks => we 125# have to explicitly remove existing symlinks before installation. 126install-exec-local: 127 @for file in $(DESTDIR)$(lib@nop@dir)/libnodekits@SUFFIX@LINKHACK*.dylib; do \ 128 if test -L "$$file"; then \ 129 rm -f "$$file"; \ 130 fi \ 131 done; 132else 133install-exec-local: 134endif 135 136install-symlinks: 137 @echo "Creating symlink to libnodekits@SUFFIX@LINKHACK*@LIBEXT@*"; \ 138 for dir in $(SUBDIRS) ; do \ 139 (cd $$dir; $(MAKE) install-symlinks;) \ 140 done ; \ 141 here=`pwd`; \ 142 (cd $(DESTDIR)$(lib@nop@dir); \ 143 for file in libnodekits@SUFFIX@LINKHACK*@LIBEXT@*; do \ 144 ln -sf "$$here/.libs/$$file" "$$file"; \ 145 done; \ 146 cd -; ) 147##$ END TEMPLATE Make-Common 148