File: Makefile.am

package info (click to toggle)
coin 1.0.4-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 12,604 kB
  • ctags: 14,748
  • sloc: cpp: 111,242; sh: 7,581; ansic: 5,303; makefile: 3,267; yacc: 174; lex: 99; perl: 8
file content (277 lines) | stat: -rw-r--r-- 8,454 bytes parent folder | download | duplicates (3)
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
## Process this file with automake to generate Makefile.in.

ACLOCAL_AMFLAGS = -I cfg/m4

if BUILD_LIBRARY
BINDIR = bin
BUILDDIRS = data src
else
BINDIR =
BUILDDIRS =
endif

if BUILD_HTMLPAGES
HTMLDIR = html
else
HTMLDIR =
endif

if MAC_FRAMEWORK
MANDIR =
else
MANDIR = man
endif

SUBDIRS = . $(BINDIR) include $(BUILDDIRS) $(MANDIR) $(HTMLDIR)

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

DISTCLEANFILES = \
	coin-@CONFIG@.cfg \
	docs/coin.doxygen

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

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

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

EXTRA_DIST = \
	FAQ \
	INSTALL.GNU \
	LICENSE.GPL \
	LICENSE.LGPL \
	README.AIX \
	README.SUN \
	README.IRIX \
	README.MAC \
	README.WIN32 \
	RELNOTES \
	bootstrap \
	coin.cfg.in \
	Info.plist \
	docs/ChangeLog.1999 \
	docs/ChangeLog.2000 \
	docs/ChangeLog.2001 \
	docs/ChangeLog.v1.0.1 \
	docs/ChangeLog.v1.0.2 \
	docs/ChangeLog.v1.0.3 \
	docs/ChangeLog.v1.0.4 \
	docs/coin.doxygen.in \
	docs/announcement-1_0_0.txt \
	docs/announcement-1_0_1.txt \
	docs/announcement-1_0_2.txt \
	docs/announcement-1_0_3.txt \
	docs/announcement-1_0_4.txt \
	docs/oiki-launch.txt \
	cfg/doxy4win.pl \
	cfg/wrapmsvc.cpp \
	cfg/wrapmsvc.exe \
	cfg/m4/README \
	cfg/m4/check_dl.m4 \
	cfg/m4/check_mac.m4 \
	cfg/m4/check_mathlib.m4 \
	cfg/m4/check_nprintf.m4 \
	cfg/m4/check_opengl.m4 \
	cfg/m4/check_pthread.m4 \
	cfg/m4/check_x11.m4 \
	cfg/m4/compile_debug.m4 \
	cfg/m4/compile_exceptions.m4 \
	cfg/m4/compile_functionname.m4 \
	cfg/m4/compile_profiling.m4 \
	cfg/m4/compile_rtti.m4 \
	cfg/m4/compile_symbols.m4 \
	cfg/m4/compile_warnings.m4 \
	cfg/m4/compiler_capabilities.m4 \
	cfg/m4/configuration_summary.m4 \
	cfg/m4/cvschanges.m4 \
	cfg/m4/dates.m4 \
	cfg/m4/doxygen_detection.m4 \
	cfg/m4/errors.m4 \
	cfg/m4/errors.txt \
	cfg/m4/general.m4 \
	cfg/m4/libtool.m4 \
	cfg/m4/macro_quoting.m4 \
	cfg/m4/misc_compiler.m4 \
	cfg/m4/network.m4 \
	cfg/m4/simage.m4 \
	cfg/m4/uniqify.m4 \
	cfg/m4/wrapmsvc.m4 \
	packaging/debian/changelog.in \
	packaging/debian/control.in \
	packaging/debian/copyright.in \
	packaging/debian/rules.in \
	packaging/debian/libcoin20.files.in \
	packaging/debian/libcoin20.README.Debian.in \
	packaging/debian/libcoin20-runtime.files.in \
	packaging/debian/libcoin20-runtime.README.Debian.in \
	packaging/debian/libcoin20-dev.files.in \
	packaging/debian/libcoin20-dev.README.Debian.in \
	packaging/debian/libcoin20-doc.files.in \
	packaging/debian/libcoin20-doc.README.Debian.in \
	packaging/debian/libcoin20-doc.doc-base.in \
	packaging/redhat/coin.spec.in \
	packaging/windows/Makefile.in \
	packaging/windows/coin-sdk.html.in \
	packaging/windows/heading.nsi.in \
	packaging/windows/middle.nsi.in \
	packaging/windows/post.nsi.in \
	packaging/windows/footer.nsi.in

coin-@CONFIG@.cfg: config.status $(srcdir)/coin.cfg.in
	@$(SHELL) config.status --file=$@:coin.cfg.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 --header=$@

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

include/Inventor/system/inttypes.h: $(srcdir)/include/Inventor/system/inttypes.h.in
	@./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

# **************************************************************************

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)"; \
	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 -e "$(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); \
	else :; fi
	@if @BUILD_WITH_MSVC@; then \
	  p=wrapmsvc.exe; \
	  echo " $(INSTALL_PROGRAM) $(srcdir)/cfg/$$p $(DESTDIR)$(bindir)/$$p"; \
	  $(INSTALL_PROGRAM) $(srcdir)/cfg/$$p $(DESTDIR)$(bindir)/$$p; \
	else :; fi
endif
else
install-data-local:
install-exec-local:
endif

# **************************************************************************
# misc rules for automatic Debian Linux 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 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 redhat packaging.
# main: `redhat-packages'

rpmdir = /usr/src/rpm

redhat-packages:
	$(MAKE) dist
	mv Coin-$(VERSION).tar.gz $(rpmdir)/SOURCES
	@./config.status --file=$(rpmdir)/SPECS/coin.spec:packaging/redhat/coin.spec.in
	rm -rf /var/tmp/Coin-$(VERSION)
	mkdir /var/tmp/Coin-$(VERSION)
	( cd $(rpmdir)/SPECS; rpm --buildroot /var/tmp/Coin-$(VERSION) -ba coin.spec )

# **************************************************************************
# 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

# **************************************************************************
# TODO: rules for generating the Mac OS X package(s)
# main: `macosx-packages'

macosx-packages:
	@echo "not implemented yet"

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