1## Sources and installation headers. 2 3RegularSources = \ 4 Anchor.cpp \ 5 Appearance.cpp \ 6 AudioClip.cpp \ 7 Background.cpp \ 8 Billboard.cpp \ 9 Box.cpp \ 10 Collision.cpp \ 11 Color.cpp \ 12 ColorInterpolator.cpp \ 13 Cone.cpp \ 14 Coordinate.cpp \ 15 CoordinateInterpolator.cpp \ 16 Cylinder.cpp \ 17 CylinderSensor.cpp \ 18 DirectionalLight.cpp \ 19 DragSensor.cpp \ 20 ElevationGrid.cpp \ 21 Extrusion.cpp \ 22 Fog.cpp \ 23 FontStyle.cpp \ 24 Geometry.cpp \ 25 Group.cpp \ 26 ImageTexture.cpp \ 27 IndexedFaceSet.cpp \ 28 IndexedLine.cpp \ 29 IndexedLineSet.cpp \ 30 IndexedShape.cpp \ 31 Init.cpp \ 32 Inline.cpp \ 33 Interpolator.cpp \ 34 LOD.cpp \ 35 Light.cpp \ 36 Material.cpp \ 37 MovieTexture.cpp \ 38 NavigationInfo.cpp \ 39 Normal.cpp \ 40 NormalInterpolator.cpp \ 41 OrientationInterpolator.cpp \ 42 Parent.cpp \ 43 PixelTexture.cpp \ 44 PlaneSensor.cpp \ 45 PointLight.cpp \ 46 PointSet.cpp \ 47 PositionInterpolator.cpp \ 48 ProximitySensor.cpp \ 49 ScalarInterpolator.cpp \ 50 Script.cpp \ 51 Sensor.cpp \ 52 Shape.cpp \ 53 Sound.cpp \ 54 Sphere.cpp \ 55 SphereSensor.cpp \ 56 SpotLight.cpp \ 57 Switch.cpp \ 58 Text.cpp \ 59 Texture.cpp \ 60 TextureCoordinate.cpp \ 61 TextureTransform.cpp \ 62 TimeSensor.cpp \ 63 TouchSensor.cpp \ 64 Transform.cpp \ 65 VertexLine.cpp \ 66 VertexPoint.cpp \ 67 VertexShape.cpp \ 68 Viewpoint.cpp \ 69 VisibilitySensor.cpp \ 70 WorldInfo.cpp \ 71 \ 72 JS_VRMLClasses.cpp 73 74LinkHackSources = \ 75 all-vrml97-cpp.cpp 76 77PublicHeaders = 78 79PrivateHeaders = \ 80 SoVRMLSubInterpolatorP.h \ 81 JS_VRMLClasses.h 82 83ObsoleteHeaders = 84 85##$ BEGIN TEMPLATE Make-Common(vrml97, VRMLnodes) 86# ************************************************************************** 87# This template depends on the following variables having been set up before 88# its invokation. 89# 90# PublicHeaders - header files that should be installed 91# PrivateHeaders - source files that should be distributed, but not 92# installed - including source-included source files. 93# RegularSources - source files compiled in this directory 94# LinkHackSources - alternative source files used on -enable-compact compilation 95# ObsoletedHeaders - header files that should be removed upon installation 96 97# Everything below is autogenerated from a macro, so don't modify 98# within the Makefile.am itself. 19991201 mortene. 99 100DISTCLEANFILES = \ 101 ii_files/*.ii 102 103if HACKING_COMPACT_BUILD 104BuildSources = $(LinkHackSources) 105ExtraSources = $(RegularSources) 106else 107BuildSources = $(RegularSources) 108ExtraSources = $(LinkHackSources) 109endif 110 111if BUILD_WITH_MSVC 112noinst_LIBRARIES = vrml97.lst 113else 114if HACKING_DYNAMIC_MODULES 115lib_LTLIBRARIES = libvrml97@SUFFIX@LINKHACK.la 116else 117noinst_LTLIBRARIES = libvrml97.la 118endif 119endif 120 121# Remove any linklibraries detected by configure, as they are not 122# needed in the submodules -- only in the toplevel libCoin build. 123LIBS = 124 125DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include $(ExtraIncludeDirs) -I$(top_builddir)/src -I$(top_srcdir)/src 126 127# header installation 128if MAC_FRAMEWORK 129libvrml97incdir = $(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Headers/VRMLnodes 130# hack to change libdir value when installing Mac OS X compiler framework 131lib@nop@dir = $(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Libraries 132else 133libvrml97incdir = $(includedir)/Inventor/VRMLnodes 134endif 135libvrml97inc_HEADERS = $(PublicHeaders) 136 137libvrml97_la_SOURCES = $(BuildSources) 138EXTRA_libvrml97_la_SOURCES = \ 139 $(PublicHeaders) $(PrivateHeaders) $(ExtraSources) 140 141libvrml97@SUFFIX@LINKHACK_la_SOURCES = $(BuildSources) 142EXTRA_libvrml97@SUFFIX@LINKHACK_la_SOURCES = \ 143 $(PublicHeaders) $(PrivateHeaders) $(ExtraSources) 144 145vrml97_lst_SOURCES = $(BuildSources) 146EXTRA_vrml97_lst_SOURCES = \ 147 $(PublicHeaders) $(PrivateHeaders) $(ExtraSources) 148 149# this rule causes a make warning, so we remove it when it is not in use 150vrml97.lst: Makefile $(vrml97_lst_OBJECTS) 151 @echo "Linking vrml97.lst..."; \ 152 rm -f $@; touch $@; \ 153 for i in $(vrml97_lst_OBJECTS); do echo $$i >>$@; done 154 155install-libvrml97incHEADERS: $(libvrml97inc_HEADERS) 156 @$(NORMAL_INSTALL) 157 @if test x"$(libvrml97inc_HEADERS)" = x""; then :; else \ 158 echo " $(mkinstalldirs) $(DESTDIR)$(libvrml97incdir)"; \ 159 $(mkinstalldirs) $(DESTDIR)$(libvrml97incdir); \ 160 fi 161 @list='$(libvrml97inc_HEADERS)'; for p in $$list; do \ 162 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 163 f="`echo $$p | sed -e 's|^.*/||'`"; \ 164 src="$$d$$p"; dst="$(DESTDIR)$(libvrml97incdir)/$$f"; \ 165 if cmp -s "$$src" "$$dst"; then :; else \ 166 echo " $(INSTALL_HEADER) $$src $$dst"; \ 167 $(INSTALL_HEADER) "$$src" "$$dst" || exit 1; \ 168 fi \ 169 done 170 @list='$(ObsoletedHeaders)'; for f in $$list; do \ 171 file="$(DESTDIR)$(libvrml97incdir)/$$f"; \ 172 if test -x "$$file"; then \ 173 echo " rm -f $$file"; \ 174 rm -f "$$file"; \ 175 fi \ 176 done; \ 177 : 178 179if MACOSX 180# When using --enable-hacking, the user tends to manually replace some 181# of the installed libraries by symlinks back to the build directory. 182# But Mac OS X's install program refuses to overwrite symlinks => we 183# have to explicitly remove existing symlinks before installation. 184install-exec-local: 185 @for file in $(DESTDIR)$(lib@nop@dir)/libvrml97@SUFFIX@LINKHACK*.dylib; do \ 186 if test -L "$$file"; then \ 187 rm -f "$$file"; \ 188 fi \ 189 done; 190else 191install-exec-local: 192endif 193 194install-symlinks: 195 @echo "Creating symlink to libvrml97@SUFFIX@LINKHACK*@LIBEXT@*"; \ 196 for dir in $(SUBDIRS) ; do \ 197 (cd $$dir; $(MAKE) install-symlinks;) \ 198 done ; \ 199 here=`pwd`; \ 200 (cd $(DESTDIR)$(lib@nop@dir); \ 201 for file in libvrml97@SUFFIX@LINKHACK*@LIBEXT@*; do \ 202 ln -sf "$$here/.libs/$$file" "$$file"; \ 203 done; \ 204 cd -; ) 205##$ END TEMPLATE Make-Common 206