ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/Makefile.inc
Revision: 260
Committed: Fri Jan 31 21:04:27 2003 UTC (21 years, 4 months ago) by chuckv
File size: 1070 byte(s)
Log Message:
Fixed some bugs, made some more.

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 # 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
54
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