ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/Makefile.inc
Revision: 183
Committed: Thu Nov 21 20:33:02 2002 UTC (21 years, 7 months ago) by mmeineke
File size: 853 byte(s)
Log Message:

The simulation can run successfully on parrallel computers!! Now all that is need is the parrallel io routines, and parrallel forces

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
31 ifeq ($(strip $(BUILD)), $(strip mpi))
32
33 CC = mpicc
34 CC_PLUS = mpiCC
35 FC = mpif90
36
37 CFLAGS = -DIS_MPI -I/usr/local/include
38 FFLAGS = -DIS_MPI -I/usr/local/include
39
40 LIBNAME = libMPImdtools.a
41
42 else
43
44 CC = icc
45 CC_PLUS = icc
46 FC = ifc
47
48 CFLAGS = -tpp6 -O3
49 FFLAGS = -tpp6 -O3
50
51 LIBNAME = libmdtools.a
52
53 endif
54
55 ifeq ($(strip $(WARN)), $(strip on))
56 CFLAGS += -w2
57 endif
58
59 ifeq ($(strip $(DEBUG)), $(strip on))
60 CFLAGS += -g
61 FFLAGS += -g
62 endif
63
64 ifeq ($(strip $(TALKATIVE)), $(strip on))
65 CFLAGS += -DCHECKPOINT_VERBOSE
66 endif
67