-
Notifications
You must be signed in to change notification settings - Fork 1
/
mfoigm6
112 lines (84 loc) · 3.19 KB
/
mfoigm6
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
# This makefile has been tested on
# computer: Origin 2000
# OS: IRIX 6.5 (beta)
# compiler: MIPSpro f90 7.2 (?)
# C: MIPSpro C (?)
# OpenGL: Mesa 3.0, Glut 3.6 (with Mesa) with patch, f90gl 1.1.1
#------------- User configuration parameters ---------------
# modify these for your system
# any relative paths should be relative to a subdirectory of the directory
# containing this makefile
# procedure name mangling approach used by your fortran compiler
# LOWERCASE - convert to lower case
# UNDERSCORE - convert to lower case and append underscore
# UPPERCASE - convert to upper case
FNAME = UNDERSCORE
# the include directory(ies) for OpenGL (GL is a subdirectory of it) and GLUT
OGLINC = -I/usr/local/apps/f90gl/mesa
# the include directory for X11
X11INC = -I/usr/include/X11
# the library directory(ies) for OpenGL and GLUT
OGLLIBDIR = -L/usr/local/lib64
# the OpenGL, GLU and GLUT libraries
OGLLIB = -lMesaglut -lMesaGLU -lMesaGL
# the library directory for X11
X11LIBDIR = -L/usr/lib64
# the X11 libraries
X11LIB = -lXmu -lXi -lXext -lX11
# extra characters to put into the library names, in case there is
# more than one OpenGL installed. For example if LIBNAME is Mesa
# then the libraries will be libMesaf90GL.a etc.
LIBNAME = Mesa
# commands for making a library
MAKELIB = ar rcv
RANLIB = true
# fortran 90 compiler and compiler flags
F90 = f90
F90FLAGS = -O -64
# C compiler and compiler flags
CC = cc
CFLAGS = -64 -woff 1048 -DFNAME=$(FNAME)
# The suffix for module files generated by the compiler. If none are
# generated, then use 'junk' or something (do not leave it blank).
MOD = mod
# The compiler flag to get at the module file for opengl_kinds in ../include/GL
USEMOD = -I../include/GL
#----------- end of user configuration parameters ------------
# The preprocessor
F90PPR = ../util/sppr
# The include file for f90ppr directives
F90PPR_INC = ../fppincs/fppoigm6
# collect the macros to be passed to subservant makefiles
PASSMACROS = "FNAME=$(FNAME)" "OGLINC=$(OGLINC)" \
"MAKELIB=$(MAKELIB)" "RANLIB=$(RANLIB)" "F90=$(F90)" \
"F90FLAGS=$(F90FLAGS)" "CC=$(CC)" "CFLAGS=$(CFLAGS)" "MOD=$(MOD)" \
"USEMOD=$(USEMOD)" "X11INC=$(X11INC)" \
"F90PPR=$(F90PPR)" "F90PPR_INC=$(F90PPR_INC)" \
"OGLLIBDIR=$(OGLLIBDIR)" "OGLLIB=$(OGLLIB)" \
"X11LIBDIR=$(X11LIBDIR)" "X11LIB=$(X11LIB)"
install:
cd util; make -f mfmost sppr $(PASSMACROS)
cd util; make -f mfmost mkfppinc $(PASSMACROS)
cd gl; make -f mfmost install $(PASSMACROS) "LIBNAME=$(LIBNAME)"
cd glu; make -f mfmost install $(PASSMACROS) "LIBNAME=$(LIBNAME)"
cd glut; make -f mfmost install $(PASSMACROS) "LIBNAME="
libgl:
cd gl; make -f mfmost library $(PASSMACROS) "LIBNAME=$(LIBNAME)"
libglu:
cd glu; make -f mfmost library $(PASSMACROS) "LIBNAME=$(LIBNAME)"
libglut:
cd glut; make -f mfmost library $(PASSMACROS) "LIBNAME="
clean:
cd gl; make -f mfmost clean
cd glu; make -f mfmost clean
cd glut; make -f mfmost clean
cd examples; make -f mfoigm6 clean
cd util; make -f mfmost clean
reallyclean:
cd gl; make -f mfmost clean
cd glu; make -f mfmost clean
cd glut; make -f mfmost clean
cd examples; make -f mfoigm6 clean
cd util; make -f mfmost clean
rm -rf lib/lib*
rm -f include/GL/*.mod