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 134 by chuckv, Fri Oct 11 15:09:09 2002 UTC vs.
Revision 249 by chuckv, Mon Jan 27 21:28:19 2003 UTC

# Line 4 | Line 4 | CC = mpicc
4   OSS = $(strip $(OS))
5  
6  
7 < CC = mpicc
8 < CC_PLUS = mpiCC
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   YC = bison
26   LC = flex
27 + LD = ld
28 +
29 + #LIBDIR = $(HOME)/lib
30 + LIBDIR = ../lib
31 +
32 + ifeq ($(strip $(BUILD)), $(strip mpi))
33 +    
34 + CC = mpicc
35 + CC_PLUS = mpiCC
36   FC = mpif90
12 #CFLAGS = -g  -w2 -O2 -DIS_MPI -I/usr/local/include
13 CFLAGS = -g -O2 -DIS_MPI -I/usr/local/include
14 FFLAGS = -g -tpp6 -O3
37  
38 < LD = ld
39 < FLIBS =
38 > CFLAGS = -mp -DIS_MPI -I/usr/local/include
39 > FFLAGS = -mp -DIS_MPI -I/usr/local/include
40  
41 + LIBNAME = libMPImdtools.a
42 +
43 + else
44 +
45 + CC = icc
46 + CC_PLUS = icc
47 + FC = ifc
48 +
49 + CFLAGS = -mp
50 + FFLAGS = -mp
51 +
52 + LIBNAME = libmdtools.a
53 +
54 + endif
55 +
56 + ifeq ($(strip $(WARN)), $(strip on))
57 + CFLAGS += -w2
58 + endif
59 +
60 + ifeq ($(strip $(DEBUG)), $(strip on))
61 + CFLAGS += -g
62 + FFLAGS += -g -u
63 + endif
64 +
65 + ifeq ($(strip $(TALKATIVE)), $(strip on))
66 + CFLAGS += -DCHECKPOINT_VERBOSE
67 + endif
68 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines