ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/Makefile.inc
(Generate patch)

Comparing trunk/mdtools/Makefile.inc (file contents):
Revision 132 by chuckv, Wed Oct 9 22:56:09 2002 UTC vs.
Revision 260 by chuckv, Fri Jan 31 21:04:27 2003 UTC

# Line 4 | Line 4 | CC = icc
4   OSS = $(strip $(OS))
5  
6  
7 < CC = icc
8 < CC_PLUS = icc
7 > #  Here we decide whether the build is single or mutiple processor
8 >
9 > BUILD = mpi
10 > #BUILD = single
11 >
12 > # turn on compiler warnings
13 >
14 > #WARN = on
15 > WARN = off
16 >
17 > # turn on debuging
18 >
19 > DEBUG = on
20 > #DEBUG = off
21 >
22 > TALKATIVE = on
23 > #TALKATIVE = off
24 >
25 > # use drand 48 or SPRNG
26 >
27 > RANDOM = sprng
28 > #RANDOM = drand48
29 >
30 >
31   YC = bison
32   LC = flex
33 + LD = ld
34 +
35 + #LIBDIR = $(HOME)/lib
36 + LIBDIR = ../lib
37 +
38 + ifeq ($(strip $(BUILD)), $(strip mpi))
39 +    
40 + CC = mpicc
41 + CC_PLUS = mpiCC
42 + FC = mpif90
43 +
44 + CFLAGS = -mp -DIS_MPI -I/usr/local/include
45 + FFLAGS = -mp -DIS_MPI -I/usr/local/include -I/usr/local/include/f90choice -I../f90_include
46 +
47 + LIBNAME = libMPImdtools.a
48 +
49 + else
50 +
51 + CC = icc
52 + CC_PLUS = icc
53   FC = ifc
12 CFLAGS = -g  -O2 -DIS_MPI -I/usr/local/include
13 FFLAGS = -mp -tpp6 -O3
54  
55 < LD = ld
56 < FLIBS =
55 > CFLAGS = -mp
56 > FFLAGS = -mp
57  
58 + LIBNAME = libmdtools.a
59 +
60 + endif
61 +
62 + ifeq ($(strip $(WARN)), $(strip on))
63 + CFLAGS += -w2
64 + endif
65 +
66 + ifeq ($(strip $(DEBUG)), $(strip on))
67 + CFLAGS += -g
68 + FFLAGS += -g -u
69 + endif
70 +
71 + ifeq ($(strip $(TALKATIVE)), $(strip on))
72 + CFLAGS += -DCHECKPOINT_VERBOSE
73 + endif
74 +
75 + ifeq ($(strip $(RANDOM)), $(strip sprng))
76 + CFLAGS += -DUSE_SPRNG
77 + FFLAGS += -DUSE_SPRNG
78 + endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines