Newer
Older
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
# Define our compilers.................................
#
F90 = mpif90
F77 = mpif77
CC = mpicc
# wsmp lives here.
#
WSMP_DIR = /home/dguptill/software/wsmp/wsmp-Linux/lib/X86_64/PGI
# for 64 bit compile..................................
#
AR=ar
OPTIONS=
PGPLOT = /home/dguptill/software/pgplot-5.2.2
WSMP_LIB = -L$(WSMP_DIR) -lpwsmp64
# Define FORTRAN compiler flags.......................
#
FFLAGS=-fastsse -pc 64 -Kieee
# Define C compiler flags.............................
#
CFLAGS=-fastsse -pc 64 -Kieee
# full speed ahead and damn the torpedos..................
#
# compile rules.......................................
#
COMPILE_OUT=$(NAME).compile
.SUFFIXES:
.SUFFIXES: .o .c .f .f90
.f90.o:
@echo "--" >>$(COMPILE_OUT) 2>&1
@echo "$(F90) $(FFLAGS) -c $<" >>$(COMPILE_OUT) 2>&1
$(F90) $(FFLAGS) -c $< >>$(COMPILE_OUT) 2>&1
.f.o:
@echo "--" >>$(COMPILE_OUT) 2>&1
@echo "$(F90) $(FFLAGS) -c $<" >>$(COMPILE_OUT) 2>&1
$(F90) $(FFLAGS) -c $< >>$(COMPILE_OUT) 2>&1
.c.o:
@echo "--" >>$(COMPILE_OUT) 2>&1
@echo "$(CC) $(CFLAGS) -c $<" >>$(COMPILE_OUT) 2>&1
$(CC) $(CFLAGS) -c $< >>$(COMPILE_OUT) 2>&1
# Libraries................
#
# libs removed on p690...
# -lacml
# -lpthread
LIBS = \
-LOCTREE -lOctree$(BITS) \
-LNN -lnn_f$(BITS) \
-LNN -lnn_c$(BITS) \
-LCASCADE -lcascade$(BITS) \
-LRESAMPLE -lresample$(BITS) \
-L$(PGPLOT) -lpgplot \
-L/usr/X11R6/lib64 -lX11 \
$(WSMP_LIB)