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