File: Makefile

package info (click to toggle)
vis5d 4.3-5
  • links: PTS
  • area: main
  • in suites: slink
  • size: 16,856 kB
  • ctags: 6,127
  • sloc: ansic: 66,158; fortran: 4,470; makefile: 1,683; tcl: 414; sh: 69
file content (481 lines) | stat: -rw-r--r-- 11,931 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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
# makefile for Vis5D version 4.3

# Vis5D system for visualizing five dimensional gridded data sets
# Copyright (C) 1990 - 1997 Bill Hibbard, Brian Paul, Dave Santek,
# and Andre Battaiola.
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 1, or (at your option)
# any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


# Notes on IRIX compiler flags
#    IRIX 5.x only supports 32-bit architecture, -mips2 option not used by
#        Vis5D but could squeeze out a little extra performance.
#    IRIX 6.x supports 32 and 64-bit architectures, works only on R4000 or
#        later.  32-bit addressing is enough for Vis5D (-n32 mode).
#        Use -mips3 on all R4x00 variants.  Use -mips4 on R8000, R5000
#        and R10000.


default:
	@echo "Type one of the following:"
	@echo "	make irix4		for SGIs with IRIX 4.x"
	@echo "	make irix5		for SGIs with IRIX 5.x using IRIS GL"
	@echo "	make irix5-opengl	for SGIs with IRIX 5.x using OpenGL"
	@echo "	make irix5-x            for SGIs with IRIX 5.x using X"
	@echo "	make irix6-x            for SGIs with IRIX 6.x using X"
	@echo "	make irix6.0.1          for SGIs with R8000 and IRIX 6.0.1"
	@echo "	make irix6		for SGIs with IRIX 6.x"
	@echo "	make irix6-mips4	for SGIs with IRIX 6.x and R5K, R8K or R10K CPU"
#	@echo "	make alpha-denali	for Alpha with Denali graphics"
	@echo "	make alpha-x		for Alpha with X"
	@echo "	make dec-opengl		for DEC workstations with OpenGL"
	@echo "	make freebsd-x		for FreeBSD with X"
	@echo "	make hp-pex		for HP with PEX"
	@echo "	make hp10-pex		for HP with PEX and HP-UX 10.x"
	@echo "	make hp-opengl		for HP with OpenGL"
	@echo "	make hp-x		for HP with X"
	@echo "	make ibm-opengl		for IBM RS/6000 with OpenGL"
	@echo "	make ibm-x		for IBM RS/6000 with X"
	@echo "	make linux-ppc		for Linux on the PowerPC"
	@echo "	make linux-opengl	for Linux 1.2.x with OpenGL"
	@echo "	make linux-x		for Linux 1.2.x with X"
#	@echo "	make sunos4-x		for SunOS 4.x with X"
	@echo "	make sunos5-x		for SunOS 5.x with X"
	@echo "	make sunos5-opengl	for SunOS 5.x with OpenGL"
	@echo "	make sunos5-opengl-gcc	for SunOS 5.x with OpenGL using gcc"
	@echo "	make sunos5-ultra	for SunOS 5.x with OpenGL on an Ultra"
	@echo "	make clean		to remove unneeded files when finished"


# For debugging on SGI:
debug:
	cd lui5 ; $(MAKE) debug
	cd src ; $(MAKE) debug
	cd util ; $(MAKE) debug
	cd userfuncs ; ./externf_all

irix4:
	cd lui5 ; $(MAKE) irix4
	cd src ; $(MAKE) irix4
	cd util ; $(MAKE) irix4
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) irix4

irix5:
	cd lui5 ; $(MAKE) irix5
	cd src ; $(MAKE) irix5
	cd util ; $(MAKE) irix5
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) irix5

irix6.0.1:
	cd lui5 ; $(MAKE) irix6.0.1
	cd src ; $(MAKE) irix6.0.1
	cd util ; $(MAKE) irix6.0.1
	cd import ; $(MAKE) irix6.0.1
	cd userfuncs ; ./externf_all

irix6-x:
	cd lui5 ; $(MAKE) irix6.0.1
	cd Mesa ; $(MAKE) irix6
	cd src ; $(MAKE) irix6-x
	cd util ; $(MAKE) irix6.0.1
	cd import ; $(MAKE) irix6.0.1
	cd userfuncs ; ./externf_all

irix6:
	cd lui5 ; $(MAKE) irix6
	cd src ; $(MAKE) irix6
	cd util ; $(MAKE) irix6
	cd import ; $(MAKE) irix6
	cd userfuncs ; ./externf_all

irix6-mips4:
	cd lui5 ; $(MAKE) irix6-mips4
	cd src ; $(MAKE) irix6-mips4
	cd util ; $(MAKE) irix6-mips4
	cd import ; $(MAKE) irix6-mips4
	cd userfuncs ; ./externf_all

irix5-opengl:
	cd lui5 ; $(MAKE) irix5
	cd src ; $(MAKE) irix5-opengl
	cd util ; $(MAKE) irix5
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) irix5

irix5-x:
	cd lui5 ; $(MAKE) irix5
	cd Mesa ; $(MAKE) irix5
	cd src ; $(MAKE) irix5-mesa
	cd util ; $(MAKE) irix5
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) irix5

alpha-denali:
	cd lui5 ; $(MAKE) alpha
	cd src ; $(MAKE) alpha-denali
	cd util ; $(MAKE) alpha
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) dec-alpha

alpha-x:
	cd lui5 ; $(MAKE) alpha
	cd Mesa ; $(MAKE) osf1
	cd src ; $(MAKE) alpha-mesa
	cd util ; $(MAKE) alpha
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) dec-alpha

dec-opengl:
	cd lui5 ; $(MAKE) alpha
	cd src ; $(MAKE) dec-opengl
	cd util ; $(MAKE) alpha
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) dec-alpha

freebsd-x:
	cd lui5 ; $(MAKE) freebsd
	cd Mesa ; $(MAKE) freebsd
	cd src ; $(MAKE) freebsd-mesa
	cd util ; $(MAKE) freebsd
	cd import ; $(MAKE) freebsd

ibm-opengl:
	cd lui5 ; $(MAKE) ibm
	cd src ; $(MAKE) ibm-opengl
	cd util ; $(MAKE) ibm
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) ibm

ibm-x:
	cd lui5 ; $(MAKE) ibm
	cd Mesa ; $(MAKE) aix
	cd src ; $(MAKE) ibm-mesa
	cd util ; $(MAKE) ibm
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) ibm

hp-pex:
	cd lui5 ; $(MAKE) hp
	cd src ; $(MAKE) hp-pex
	cd util ; $(MAKE) hp
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) hp

hp10-pex:
	cd lui5 ; $(MAKE) hp
	cd src ; $(MAKE) hp10-pex
	cd util ; $(MAKE) hp
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) hp

hp-opengl:
	cd lui5 ; $(MAKE) hp
	cd src ; $(MAKE) hp-opengl
	cd util ; $(MAKE) hp
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) hp

hp-x:
	cd lui5 ; $(MAKE) hp
	cd Mesa ; $(MAKE) hpux
	cd src ; $(MAKE) hp-mesa
	cd util ; $(MAKE) hp
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) hp

linux-ppc:
	cd lui5 ; $(MAKE) linux-ppc
	cd Mesa ; $(MAKE) linux-ppc
	cd src ; $(MAKE) linux-ppc-mesa
	cd util ; $(MAKE) linux-ppc
	cd import ; $(MAKE) linux-ppc

linux-opengl:
	cd lui5 ; $(MAKE) linux
	cd src ; $(MAKE) linux-opengl
	cd util ; $(MAKE) linux
	cd import ; $(MAKE) linux

linux-x:
	cd lui5 ; $(MAKE) linux
	cd src ; $(MAKE) linux-mesa
	cd util ; $(MAKE) linux
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) linux

sunos4-x:
	cd lui5 ; $(MAKE) sunos4
	cd Mesa ; $(MAKE) sunos4
	cd src ; $(MAKE) sunos4-mesa
	cd util ; $(MAKE) sunos4
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) sunos4

sunos5-x:
	cd lui5 ; $(MAKE) sunos5
	cd Mesa ; $(MAKE) sunos5
	cd src ; $(MAKE) sunos5-mesa
	cd util ; $(MAKE) sunos5
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) sunos5

sunos5-opengl:
	cd lui5 ; $(MAKE) sunos5
	cd src ; $(MAKE) sunos5-opengl
	cd util ; $(MAKE) sunos5
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) sunos5

sunos5-opengl-gcc:
	cd lui5 ; $(MAKE) sunos5-gcc
	cd src ; $(MAKE) sunos5-opengl-gcc
	cd util ; $(MAKE) sunos5-gcc
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) sunos5-gcc

sunos5-ultra:
	cd lui5 ; $(MAKE) sunos5-ultra
	cd src ; $(MAKE) sunos5-opengl-ultra
	cd util ; $(MAKE) sunos5-ultra
	cd userfuncs ; ./externf_all
	cd import ; $(MAKE) sunos5-ultra

foo:
	cd lui5 ; $(MAKE) foo
	cd src ; $(MAKE) foo
	cd util ; $(MAKE) foo
	cd userfuncs ; ./externf_all


######################################################################

#
# Miscellaneous makes:
#

VDIR = vis5d-4.3


# Make the Vis5D source tar file

TAR_FILES = \
	$(VDIR)/README			\
	$(VDIR)/README.ps		\
	$(VDIR)/NOTICE			\
	$(VDIR)/PORTING			\
	$(VDIR)/Makefile		\
	$(VDIR)/listfonts		\
	$(VDIR)/*.tcl			\
	$(VDIR)/lui5/Makefile		\
	$(VDIR)/lui5/*.[ch]		\
	$(VDIR)/src/Makefile		\
	$(VDIR)/src/*.[chf]		\
	$(VDIR)/src/*[45].a		\
	$(VDIR)/util/Makefile		\
	$(VDIR)/util/*.[chfm]		\
	$(VDIR)/convert/*.[cfhm]	\
	$(VDIR)/userfuncs/README	\
	$(VDIR)/userfuncs/externf	\
	$(VDIR)/userfuncs/externf.m	\
	$(VDIR)/userfuncs/externf_all	\
	$(VDIR)/userfuncs/*.f		\
	$(VDIR)/Mesa/README		\
	$(VDIR)/Mesa/Makefile		\
	$(VDIR)/Mesa/Make-config	\
	$(VDIR)/Mesa/src/*.[ch]		\
	$(VDIR)/Mesa/src/depend		\
	$(VDIR)/Mesa/src/Makefile	\
	$(VDIR)/Mesa/src-glu/*.[ch]	\
	$(VDIR)/Mesa/src-glu/depend	\
	$(VDIR)/Mesa/src-glu/Makefile	\
	$(VDIR)/Mesa/include		\
	$(VDIR)/Mesa/mklib.*		\
	$(VDIR)/Mesa/*.BAT		\
	$(VDIR)/Mesa/Imakefile		\
	$(VDIR)/Mesa/descrip.mms	\
	$(VDIR)/Mesa/mms-config		\
	$(VDIR)/Mesa/xlib.opt		\
	$(VDIR)/Mesa/STARTUP.MK		\
	$(VDIR)/Mesa/mesawin32.mak	\
	$(VDIR)/Mesa/Names.win		\
	$(VDIR)/import/README		\
	$(VDIR)/import/Makefile		\
	$(VDIR)/import/*.[chf]		\
	$(VDIR)/contrib

#
# add to TAR_FILE to make merged file for shows / demos:
#
#	$(VDIR)/vis5d			\
#	$(VDIR)/vis5d_opengl		\
#	$(VDIR)/EARTH.TOPO		\
#	$(VDIR)/OUTLUSAM		\
#	$(VDIR)/OUTLSUPW		\
#	$(VDIR)/SCHL.v5d		\
#	$(VDIR)/LAMPS.v5d		\
#

# v5dimport source files:
V5DIMPORT_FILES = \
	$(VDIR)/import/Makefile		\
	$(VDIR)/import/README		\
	$(VDIR)/import/*.[chf]


tar:
	cd src ; \
	cd ../.. ; \
	tar -cvdLf vis5d-4.3.tar $(TAR_FILES) ; \
	compress vis5d-4.3.tar ; \
	mv vis5d-4.3.tar.Z $(VDIR)

#	co graphics.gl.c ; co graphics.ogl.c ; \
#	co graphics.pex.c ; co Makefile ; \
#	tar -rvf vis5d-4.3.tar $(V5DIMPORT_FILES) ; \

import_tar:
	cd .. ; \
	tar -cvf v5dimport.tar $(V5DIMPORT_FILES) ; \
	compress v5dimport.tar ; \
	mv v5dimport.tar.Z $(VDIR)


# Make the Vis5D Data tar file

DATA_FILES = \
	OUTLUSAM	\
	OUTLSUPW	\
	EARTH.TOPO	\
	SCHL.v5d	\
	LAMPS.v5d
datatar:
	tar -cvdLf vis5d-data.tar $(DATA_FILES) ; \
	compress vis5d-data.tar



# Make tar file of executables for certain systems

BINARIES = \
	comp_to_v5d	\
	gr3d_to_v5d	\
	gg3d		\
	igg3d		\
	igu3d		\
	vis5d		\
	v5dinfo		\
	v5dstats	\
	v5dedit		\
	v5dappend	\
	v5dimport	\
	topoinfo


# Make tar file of SGI IRIX 5.x binaries:
irix5_bin_tar:
	cd .. ; \
	tar -cvf vis5d.irix5.bin.tar $(BINARIES) $(VDIR)/listfonts ; \
	compress vis5d.irix5.bin.tar ; \
	mv vis5d.irix5.bin.tar.Z $(VDIR)


# Make tar file of IBM AIX binaries:
ibm_bin_tar:
	cd .. ; \
	tar -cvf vis5d.ibm.bin.tar $(BINARIES) ; \
	compress vis5d.ibm.bin.tar ; \
	mv vis5d.ibm.bin.tar.Z $(VDIR)


# Make tar file of HP HP-UX binaries:
hp_bin_tar:
	cd .. ; \
	tar -cvf vis5d.hp.bin.tar $(BINARIES) ; \
	compress vis5d.hp.bin.tar ; \
	mv vis5d.hp.bin.tar.Z $(VDIR)


# Make tar file of Alpha OSF/1 binaries:
alpha_bin_tar:
	cd .. ; \
	tar -cvf vis5d.alpha.bin.tar $(BINARIES) ; \
	compress vis5d.alpha.bin.tar ; \
	mv vis5d.alpha.bin.tar.Z $(VDIR)


# Make tar file of SunOS 5.x binaries:
sunos5_bin_tar:
	cd .. ; \
	tar -cvf vis5d.sunos5.bin.tar $(BINARIES) ; \
	compress vis5d.sunos5.bin.tar ; \
	mv vis5d.sunos5.bin.tar.Z $(VDIR)


# Make tar file of PC Linux binaries:
linux_bin_tar:
	cd .. ; \
	tar -cvf vis5d.linux.bin.tar $(BINARIES) ; \
	compress vis5d.linux.bin.tar ; \
	mv vis5d.linux.bin.tar.Z $(VDIR)



# Remove all .o files and Emacs backup files:
clean:
	cd lui5 ; $(MAKE) clean
	cd src ; $(MAKE) clean
	cd util ; $(MAKE) clean
	cd import ; $(MAKE) clean
	-rm userfuncs/*.o


# Remove everything that can be reproduced with make
really_clean:
	cd lui5 ; $(MAKE) clean
	cd src ; $(MAKE) clean
	cd util ; $(MAKE) clean
	cd Mesa ; $(MAKE) clean
	-rm -rf Mesa/lib
	-rm lui5/liblui.a util/libmain.a
	-rm $(BINARIES)	userfuncs/example userfuncs/probe userfuncs/spd3d


# Make backup of vis5d-4.3 directory tree
SAVE_DIR = /usr6/save/vis5d-4.3
save:
	cp Makefile		$(SAVE_DIR)
	cp lui5/Makefile	$(SAVE_DIR)/lui5
	cp lui5/*.[ch]		$(SAVE_DIR)/lui5
	cp src/Makefile		$(SAVE_DIR)/src
	cp src/*.[ch]		$(SAVE_DIR)/src
	cp util/Makefile	$(SAVE_DIR)/util
	cp util/*.[chfF]	$(SAVE_DIR)/util
#	cp import/*.[chf]	$(SAVE_DIR)/import
	cp Mesa/LICENSE		$(SAVE_DIR)/Mesa
	cp Mesa/Make*		$(SAVE_DIR)/Mesa
	cp Mesa/README		$(SAVE_DIR)/Mesa
	cp Mesa/mklib*		$(SAVE_DIR)/Mesa
	cp -r Mesa/include	$(SAVE_DIR)/Mesa
	cp Mesa/src/Makefile	$(SAVE_DIR)/Mesa/src
	cp Mesa/src/depend	$(SAVE_DIR)/Mesa/src
	cp Mesa/src/*.[ch]		$(SAVE_DIR)/Mesa/src
	cp Mesa/src-glu/Makefile	$(SAVE_DIR)/Mesa/src-glu
	cp Mesa/src-glu/depend		$(SAVE_DIR)/Mesa/src-glu
	cp Mesa/src-glu/*.[ch]		$(SAVE_DIR)/Mesa/src-glu
	cp import/Makefile	$(SAVE_DIR)/import
	cp import/*.[ch]	$(SAVE_DIR)/import