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