ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/Makefile.inc
Revision: 249
Committed: Mon Jan 27 21:28:19 2003 UTC (21 years, 5 months ago) by chuckv
File size: 870 byte(s)
Log Message:
For some unknown reason the Single processor builds. Has not been tested!

File Contents

# Content
1 MV := 2
2 OS := $(shell uname -s)
3 export OS
4 OSS = $(strip $(OS))
5
6
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
37
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