File: Makefile.am

package info (click to toggle)
coin2 2.3.0-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 19,728 kB
  • ctags: 23,488
  • sloc: cpp: 147,249; ansic: 34,393; sh: 9,023; makefile: 5,648; yacc: 174; lex: 107; perl: 8
file content (347 lines) | stat: -rw-r--r-- 11,331 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
############################################################################
##

if BUILD_LIBRARY
SRCDIRS = data src
else
SRCDIRS =
endif

if BUILD_HTMLPAGES
HTMLDIR = html
else
HTMLDIR =
endif

if BUILD_HTMLHELP
HTMLHELPDIR = htmlhelp
else
HTMLHELPDIR =
endif

if MAC_FRAMEWORK
MANDIR =
else
MANDIR = man
endif

DOCDIRS = $(MANDIR) $(HTMLDIR) $(HTMLHELPDIR)

SUBDIRS = . bin include $(SRCDIRS) $(DOCDIRS)

BUILT_SOURCES = \
	include/Inventor/C/basic.h \
	include/Inventor/SbBasic.h \
	include/Inventor/system/gl.h \
	include/Inventor/system/inttypes.h \
	coin-@CONFIG@.cfg \
	Info.plist \
	version.plist

CLEANFILES = \
	coin@COIN_MAJOR_VERSION@.dsp \
	coin@COIN_MAJOR_VERSION@.dsw \
	coin@COIN_MAJOR_VERSION@.ncb \
	coin@COIN_MAJOR_VERSION@.opt \
	coin@COIN_MAJOR_VERSION@.plg

DISTCLEANFILES = \
	coin-@CONFIG@.cfg \
	Info.plist \
	version.plist \
	docs/coin.doxygen \
	docs/coin.doxygen.bak

if BUILD_LIBRARY
m4datadir = $(datadir)/aclocal
dist_m4data_DATA = cfg/coin.m4

cfgdatadir = $(datadir)/Coin/conf
cfgdata_DATA = coin-@CONFIG@.cfg

if MAC_FRAMEWORK
frameworkdatadir = $(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Resources
frameworkdata_DATA = Info.plist version.plist
endif
endif

EXTRA_DIST = \
	FAQ \
	FAQ.legal \
	INSTALL.GNU \
	LICENSE.GPL \
	README.AIX \
	README.IRIX \
	README.MACOSX \
	README.MKS \
	README.SUN \
	README.VRML97 \
	README.WIN32 \
	RELNOTES \
	bootstrap \
	coin.cfg.in \
	Info.plist.in \
	version.plist.in \
	cfg/doxy4win.pl \
	cfg/errors.txt \
	cfg/gendsp.sh \
	cfg/wrapmsvc.exe \
	docs/ChangeLog.1999 \
	docs/ChangeLog.2000 \
	docs/ChangeLog.2001 \
	docs/ChangeLog.2002 \
	docs/ChangeLog.v2.0.0 \
	docs/ChangeLog.v2.0.1 \
	docs/ChangeLog.v2.0.2 \
	docs/ChangeLog.v2.1.0 \
	docs/ChangeLog.v2.2.0 \
	docs/ChangeLog.v2.2.1 \
	docs/ChangeLog.v2.3.0 \
	docs/announcement-2_0_0.txt \
	docs/announcement-2_0_1.txt \
	docs/announcement-2_0_2.txt \
	docs/announcement-2_1_0.txt \
	docs/announcement-2_2_0.txt \
	docs/announcement-2_2_1.txt \
	docs/announcement-2_3_0.txt \
	docs/coin.doxygen.in \
	docs/oiki-launch.txt \
	docs/doxygen/header.html \
	docs/doxygen/footer.html \
	docs/doxygen/stylesheet.css \
	docs/doxygen/Coin_logo.png \
	packaging/debian/changelog.in \
	packaging/debian/control.in \
	packaging/debian/copyright.in \
	packaging/debian/rules.in \
	packaging/debian/libcoin40.files.in \
	packaging/debian/libcoin40.README.Debian.in \
	packaging/debian/libcoin40-dev.files.in \
	packaging/debian/libcoin40-dev.README.Debian.in \
	packaging/debian/libcoin40-doc.files.in \
	packaging/debian/libcoin40-doc.README.Debian.in \
	packaging/debian/libcoin40-runtime.files.in \
	packaging/debian/libcoin40-runtime.README.Debian.in \
	packaging/macosx/coin.info.template.in \
	packaging/macosx/checklist.txt \
	packaging/macosx/Coin_Description.plist.in \
	packaging/macosx/Coin_Info.plist.in \
	packaging/macosx/Coin_Welcome.rtf \
	packaging/macosx/CoinTools_Description.plist.in \
	packaging/macosx/CoinTools_Info.plist.in \
	packaging/macosx/CoinTools_Welcome.rtf \
	packaging/macosx/inst-dmg-files/.DS_Store \
	packaging/macosx/inst-dmg-files/.VolumeIcon.icns \
	packaging/macosx/inst-dmg-files/coin_dmg_bg.tiff \
	packaging/macosx/inst-dmg-files/Desktop_DB \
	packaging/macosx/inst-dmg-files/Desktop_DF \
	packaging/macosx/License.rtf \
	packaging/macosx/makecoinpkg.sh.in \
	packaging/macosx/makecointoolspkg.sh.in \
	packaging/macosx/makedmg.sh.in \
	packaging/macosx/Makefile.in \
	packaging/macosx/makeinstdmg.sh.in \
	packaging/macosx/makenoinstdmg.sh.in \
	packaging/macosx/noinst-dmg-files/.DS_Store \
	packaging/macosx/noinst-dmg-files/.VolumeIcon.icns \
	packaging/macosx/noinst-dmg-files/coin_dmg_bg.tiff \
	packaging/macosx/noinst-dmg-files/Desktop_DB \
	packaging/macosx/noinst-dmg-files/Desktop_DF \
	packaging/macosx/noinst-README-Jaguar.txt.in \
	packaging/macosx/noinst-README-Panther.txt.in \
	packaging/macosx/noinst-README-.txt.in \
	packaging/macosx/inst-README-Jaguar.txt.in \
	packaging/macosx/inst-README-Panther.txt.in \
	packaging/macosx/inst-README-.txt.in \
	packaging/macosx/background.tiff \
	packaging/redhat/coin.spec.in \
	packaging/windows/Makefile.in \
	packaging/windows/bfheader.nsi.in \
	packaging/windows/coin-sdk.html.in \
	packaging/windows/footer.nsi.in \
	packaging/windows/heading.nsi.in \
	packaging/windows/middle.nsi.in \
	packaging/windows/post.nsi.in \
	examples/bindings/glutiv.cpp

# FIXME: These files should really be added instead of the ones
#        containing '_' instead of ' '. If this is fixed, also
#        update packaging/macosx/make*dmg.sh.in (kintel 20040119)
#	packaging/macosx/inst-dmg-files/Desktop DB \
#	packaging/macosx/inst-dmg-files/Desktop DF \
#	packaging/macosx/noinst-dmg-files/Desktop DB \
#	packaging/macosx/noinst-dmg-files/Desktop DF \
#

coin-@CONFIG@.cfg: config.status $(srcdir)/coin.cfg.in
	@$(SHELL) config.status --file=$@:coin.cfg.in

Info.plist: config.status $(srcdir)/Info.plist.in
	@$(SHELL) config.status --file=$@:Info.plist.in

version.plist: config.status $(srcdir)/version.plist.in
	@$(SHELL) config.status --file=$@:version.plist.in

# sources needed to generate docs must be created by this rule
built-sources: $(BUILT_SOURCES)

include/Inventor/C/basic.h: $(srcdir)/include/Inventor/C/basic.h.in config.status
	@./config.status --header=$@

include/Inventor/SbBasic.h: $(srcdir)/include/Inventor/SbBasic.h.in config.status
	@./config.status --header=$@

include/Inventor/system/gl.h: $(srcdir)/include/Inventor/system/gl.h.in config.status
	@./config.status --file=include/Inventor/system/gl.h.new:include/Inventor/system/gl.h.in; \
	if cmp -s include/Inventor/system/gl.h include/Inventor/system/gl.h.new; then \
	  echo "include/Inventor/system/gl.h is unchanged"; \
	  rm -f include/Inventor/system/gl.h.new; \
	else \
	  mv include/Inventor/system/gl.h.new include/Inventor/system/gl.h; \
	fi

include/Inventor/system/inttypes.h: $(srcdir)/include/Inventor/system/inttypes.h.in config.status
	@./config.status --header=$@

docs/coin.doxygen: $(srcdir)/docs/coin.doxygen.in config.status
	@if test -d docs; then :; else mkdir docs; fi
	@./config.status --file=$@:$@.in
	@$(srcdir)/cfg/doxy4win.pl docs/coin.doxygen

doxygen-doc: built-sources
	if test x"@COIN_DOC_HTML@" = x"YES"; then \
	  mkdir -p "@coin_html_dir@"; \
	else :; fi
	if test x"@COIN_DOC_MAN@" = x"YES"; then \
	  mkdir -p "@coin_man_dir@"; \
	else :; fi
	@sim_ac_doxygen_exe@ $(top_builddir)/docs/coin.doxygen

doxygen-docs: built-sources
	if test x"@COIN_DOC_HTML@" = x"YES"; then \
	  mkdir -p "@coin_html_dir@"; \
	else :; fi
	if test x"@COIN_DOC_MAN@" = x"YES"; then \
	  mkdir -p "@coin_man_dir@"; \
	else :; fi
	@sim_ac_doxygen_exe@ $(top_builddir)/docs/coin.doxygen

if BUILD_LIBRARY
if MAC_FRAMEWORK
install-exec-local:
install-data-local:
	@$(NORMAL_INSTALL)
	@echo "Setting up Mac OS X Compiler Framework"
	@if test -d "$(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)"; then :; else \
	  echo " $(mkinstalldirs) $(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)"; \
	  $(mkinstalldirs) "$(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)"; \
	  echo " $(mkinstalldirs) $(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Resources"; \
	  $(mkinstalldirs) "$(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/$(MAC_FRAMEWORK_VERSION)/Resources"; \
	fi
	@if test -e "$(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/Current"; then \
	  echo " rm -f $(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/Current"; \
	  rm -f "$(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/Current"; \
	fi; \
	echo " ln -s $(MAC_FRAMEWORK_VERSION) $(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/Current"; \
	ln -s $(MAC_FRAMEWORK_VERSION) "$(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/Versions/Current";
	@for symlink in Headers Resources Libraries; do \
	  if test -L "$(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/$$symlink"; then \
	    echo " rm -f $(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/$$symlink"; \
	    rm -f "$(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/$$symlink"; \
	  fi; \
	  echo " ln -s Versions/Current/$$symlink $(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/$$symlink"; \
	  ln -s Versions/Current/$$symlink "$(DESTDIR)$(MAC_FRAMEWORK_PREFIX)/$(MAC_FRAMEWORK_NAME).framework/$$symlink" || exit 1; \
	done
else
install-data-local:
install-exec-local: $(srcdir)/cfg/wrapmsvc.exe
	@$(NORMAL_INSTALL)
	@if @BUILD_WITH_MSVC@; then \
	  echo " $(mkinstalldirs) $(DESTDIR)$(bindir)"; \
	  $(mkinstalldirs) $(DESTDIR)$(bindir); \
	  p=wrapmsvc.exe; \
	  echo " $(INSTALL_PROGRAM) $(srcdir)/cfg/$$p $(DESTDIR)$(bindir)/$$p"; \
	  $(INSTALL_PROGRAM) $(srcdir)/cfg/$$p $(DESTDIR)$(bindir)/$$p; \
	else :; fi
endif
endif

cvs-update:
	@cd $(top_srcdir) && cvs -z3 -q update -dP

# **************************************************************************
# misc rules for automatic debian packaging.  main: `debian-packages'

if DEB_PACKAGEABLE

coin-$(VERSION):
	if test -d coin-$(VERSION); then \
	  rm -rf coin-$(VERSION); \
	else :; fi;
	$(MAKE) distdir;
	mv Coin-$(VERSION) coin-$(VERSION)

coin_$(VERSION).orig.tar.gz:
	$(MAKE) dist
	mv Coin-$(VERSION).tar.gz coin_$(VERSION).orig.tar.gz

debian-files: $(DEBIAN_DIST_DIR)
	test -d $(DEBIAN_DIST_DIR)/debian || mkdir $(DEBIAN_DIST_DIR)/debian;
	for f in $(top_srcdir)/packaging/debian/*.in; do \
	  file=`echo $$f | sed 's/.*\///g; s/\.in$$//g'`; \
	  ./config.status --file=$(DEBIAN_DIST_DIR)/debian/$$file:$$f; \
	done;
	for f in rules preinst prerm postinst postrm; do \
	  if test -f $(DEBIAN_DIST_DIR)/debian/$$f; then \
	    echo " chmod +x $(DEBIAN_DIST_DIR)/debian/$$f"; \
	    chmod +x $(DEBIAN_DIST_DIR)/debian/$$f; \
	  fi; \
	done;

debian-control:
	distdir=coin-$(VERSION); \
	$(MAKE) DEBIAN_DIST_DIR=$$distdir debian-files;

debian-setup: coin-$(VERSION) debian-control

debian-packages: debian-setup coin_$(VERSION).orig.tar.gz
	@( cd coin-$(VERSION); dpkg-buildpackage )

endif

# **************************************************************************
# misc rules for automatic Microsoft Windows packaging.
# main: `windows-packages'

if WIN_PACKAGEABLE

windows-files:
	@if test -d windows; then :; else mkdir windows; fi
	@for file in $(top_srcdir)/packaging/windows/*.in; do \
	  basename=`echo $$file | sed 's/^.*\///g; s/\.in$$//'`; \
	  ./config.status --file=windows/$$basename:$$file; \
	done

windows-packages: windows-files
	@( cd windows; $(MAKE) VERSION=$(VERSION) )

endif

if MACOSX_PACKAGEABLE

macosx-files:
	@if test -d macosx; then :; else mkdir macosx; fi
	@for file in $(top_srcdir)/packaging/macosx/*.in; do \
	  basename=`basename $$file .in`; \
          if ! test -f macosx/$$basename; then \
	    ./config.status --file=macosx/$$basename:$$file; \
          fi \
	done

macosx-packages: macosx-files
macosx-packages:
	@( cd macosx; $(MAKE) VERSION=$(VERSION) )

endif

# EOF ######################################################################