1## Process this file with automake to generate Makefile.in.
2## 19990904 mortene.
3
4SUBDIRS = GL
5
6RegularSources = \
7	SoAccumulatedElement.cpp \
8	SoAmbientColorElement.cpp \
9	SoAnnoText3CharOrientElement.cpp \
10	SoAnnoText3FontSizeHintElement.cpp \
11	SoAnnoText3RenderPrintElement.cpp \
12	SoBBoxModelMatrixElement.cpp \
13	SoBumpMapElement.cpp \
14	SoBumpMapCoordinateElement.cpp \
15	SoBumpMapMatrixElement.cpp \
16	SoBumpMappingPropertyElement.cpp \
17	SoCacheElement.cpp \
18	SoCacheHintElement.cpp \
19	SoClipPlaneElement.cpp \
20	SoComplexityElement.cpp \
21	SoComplexityTypeElement.cpp \
22	SoCoordinateElement.cpp \
23	SoCreaseAngleElement.cpp \
24	SoCullElement.cpp \
25	SoDecimationPercentageElement.cpp \
26	SoDecimationTypeElement.cpp \
27	SoDepthBufferElement.cpp \
28	SoDiffuseColorElement.cpp \
29	SoDrawStyleElement.cpp \
30	SoElement.cpp \
31	SoEmissiveColorElement.cpp \
32	SoEnvironmentElement.cpp \
33	SoFloatElement.cpp \
34	SoFocalDistanceElement.cpp \
35	SoFontNameElement.cpp \
36	SoFontSizeElement.cpp \
37	SoInt32Element.cpp \
38	SoLazyElement.cpp \
39	SoLightAttenuationElement.cpp \
40	SoLightElement.cpp \
41	SoLightModelElement.cpp \
42	SoLinePatternElement.cpp \
43	SoLineWidthElement.cpp \
44	SoLocalBBoxMatrixElement.cpp \
45	SoMaterialBindingElement.cpp \
46	SoVertexAttributeBindingElement.cpp \
47	SoMultiTextureCoordinateElement.cpp \
48	SoMultiTextureEnabledElement.cpp \
49	SoMultiTextureMatrixElement.cpp \
50	SoMultiTextureImageElement.cpp \
51	SoModelMatrixElement.cpp \
52	SoNormalBindingElement.cpp \
53	SoNormalElement.cpp \
54	SoOverrideElement.cpp \
55	SoPickRayElement.cpp \
56	SoPickStyleElement.cpp \
57	SoPointSizeElement.cpp \
58	SoPolygonOffsetElement.cpp \
59	SoProfileCoordinateElement.cpp \
60	SoProfileElement.cpp \
61	SoProjectionMatrixElement.cpp \
62	SoReplacedElement.cpp \
63	SoShapeHintsElement.cpp \
64	SoShapeStyleElement.cpp \
65	SoShininessElement.cpp \
66	SoSpecularColorElement.cpp \
67	SoSwitchElement.cpp \
68	SoTextOutlineEnabledElement.cpp \
69	SoTextureCombineElement.cpp \
70	SoTextureCoordinateBindingElement.cpp \
71	SoTextureOverrideElement.cpp \
72	SoTextureScalePolicyElement.cpp \
73	SoTextureScaleQualityElement.cpp \
74	SoTextureUnitElement.cpp \
75	SoTextureQualityElement.cpp \
76	SoTransparencyElement.cpp \
77	SoUnitsElement.cpp \
78	SoViewVolumeElement.cpp \
79	SoViewingMatrixElement.cpp \
80	SoViewportRegionElement.cpp \
81	SoWindowElement.cpp \
82	SoListenerPositionElement.cpp \
83	SoListenerOrientationElement.cpp \
84	SoListenerGainElement.cpp \
85	SoListenerDopplerElement.cpp \
86	SoSoundElement.cpp \
87	SoVertexAttributeElement.cpp
88
89LinkHackSources = \
90	all-elements-cpp.cpp
91
92PublicHeaders =
93
94PrivateHeaders = \
95	SoTextureScalePolicyElement.h \
96	SoTextureScaleQualityElement.h \
97	SoVertexAttributeData.h \
98	SoVertexAttributeElement.cpp
99
100ObsoletedHeaders =
101
102##$ BEGIN TEMPLATE Make-Common(elements, elements)
103# **************************************************************************
104# This template depends on the following variables having been set up before
105# its invokation.
106#
107# PublicHeaders    - header files that should be installed
108# PrivateHeaders   - source files that should be distributed, but not
109#                    installed - including source-included source files.
110# RegularSources   - source files compiled in this directory
111# LinkHackSources  - alternative source files used on -enable-compact compilation
112# ObsoletedHeaders - header files that should be removed upon installation
113
114# Everything below is autogenerated from a macro, so don't modify
115# within the Makefile.am itself. 19991201 mortene.
116
117DISTCLEANFILES = \
118	ii_files/*.ii
119
120if HACKING_COMPACT_BUILD
121BuildSources = $(LinkHackSources)
122ExtraSources = $(RegularSources)
123else
124BuildSources = $(RegularSources)
125ExtraSources = $(LinkHackSources)
126endif
127
128if BUILD_WITH_MSVC
129noinst_LIBRARIES = elements.lst
130else
131if HACKING_DYNAMIC_MODULES
132lib_LTLIBRARIES = libelements@SUFFIX@LINKHACK.la
133else
134noinst_LTLIBRARIES = libelements.la
135endif
136endif
137
138# Remove any linklibraries detected by configure, as they are not
139# needed in the submodules -- only in the toplevel libCoin build.
140LIBS =
141
142DEFAULT_INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include $(ExtraIncludeDirs) -I$(top_builddir)/src -I$(top_srcdir)/src
143
144# header installation
145if MAC_FRAMEWORK
146libelementsincdir = $(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Headers/elements
147# hack to change libdir value when installing Mac OS X compiler framework
148lib@nop@dir = $(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Libraries
149else
150libelementsincdir = $(includedir)/Inventor/elements
151endif
152libelementsinc_HEADERS = $(PublicHeaders)
153
154libelements_la_SOURCES = $(BuildSources)
155EXTRA_libelements_la_SOURCES = \
156	$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)
157
158libelements@SUFFIX@LINKHACK_la_SOURCES = $(BuildSources)
159EXTRA_libelements@SUFFIX@LINKHACK_la_SOURCES = \
160	$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)
161
162elements_lst_SOURCES = $(BuildSources)
163EXTRA_elements_lst_SOURCES = \
164	$(PublicHeaders) $(PrivateHeaders) $(ExtraSources)
165
166# this rule causes a make warning, so we remove it when it is not in use
167elements.lst: Makefile $(elements_lst_OBJECTS)
168	@echo "Linking elements.lst..."; \
169	rm -f $@; touch $@; \
170	for i in $(elements_lst_OBJECTS); do echo $$i >>$@; done
171
172install-libelementsincHEADERS: $(libelementsinc_HEADERS)
173	@$(NORMAL_INSTALL)
174	@if test x"$(libelementsinc_HEADERS)" = x""; then :; else \
175	  echo " $(mkinstalldirs) $(DESTDIR)$(libelementsincdir)"; \
176	  $(mkinstalldirs) $(DESTDIR)$(libelementsincdir); \
177	fi
178	@list='$(libelementsinc_HEADERS)'; for p in $$list; do \
179	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
180	  f="`echo $$p | sed -e 's|^.*/||'`"; \
181	  src="$$d$$p"; dst="$(DESTDIR)$(libelementsincdir)/$$f"; \
182	  if cmp -s "$$src" "$$dst"; then :; else \
183	    echo " $(INSTALL_HEADER) $$src $$dst"; \
184	    $(INSTALL_HEADER) "$$src" "$$dst" || exit 1; \
185	  fi \
186	done
187	@list='$(ObsoletedHeaders)'; for f in $$list; do \
188	  file="$(DESTDIR)$(libelementsincdir)/$$f"; \
189	  if test -x "$$file"; then \
190	    echo " rm -f $$file"; \
191	    rm -f "$$file"; \
192	  fi \
193	done; \
194	:
195
196if MACOSX
197# When using --enable-hacking, the user tends to manually replace some
198# of the installed libraries by symlinks back to the build directory.
199# But Mac OS X's install program refuses to overwrite symlinks => we
200# have to explicitly remove existing symlinks before installation.
201install-exec-local:
202	@for file in $(DESTDIR)$(lib@nop@dir)/libelements@SUFFIX@LINKHACK*.dylib; do \
203	  if test -L "$$file"; then \
204	    rm -f "$$file"; \
205	  fi \
206	done;
207else
208install-exec-local:
209endif
210
211install-symlinks:
212	@echo "Creating symlink to libelements@SUFFIX@LINKHACK*@LIBEXT@*"; \
213        for dir in $(SUBDIRS) ; do \
214          (cd $$dir; $(MAKE) install-symlinks;) \
215        done ; \
216        here=`pwd`; \
217	(cd $(DESTDIR)$(lib@nop@dir); \
218	for file in libelements@SUFFIX@LINKHACK*@LIBEXT@*; do \
219	  ln -sf "$$here/.libs/$$file" "$$file"; \
220	done; \
221        cd -; )
222##$ END TEMPLATE Make-Common
223