ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/Makefile.inc
Revision: 177
Committed: Mon Nov 18 21:23:58 2002 UTC (21 years, 7 months ago) by mmeineke
File size: 740 byte(s)
Log Message:
overhauled the makefiles to be more elegant with regard to builds.

ie. now the name of the library will change when you select single or mpi
    build in the Makefile.inc compilers and flags will also be updated

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 YC = bison
23 LC = flex
24 LD = ld
25
26 LIBDIR = $(HOME)/lib
27
28 ifeq ($(strip $(BUILD)), $(strip mpi))
29
30 CC = mpicc
31 CC_PLUS = mpiCC
32 FC = mpif90
33
34 CFLAGS = -DIS_MPI -I/usr/local/include
35 FFLAGS = -DIS_MPI -I/usr/local/include
36
37 LIBNAME = libMPImdtools.a
38
39 else
40
41 CC = icc
42 CC_PLUS = icc
43 FC = ifc
44
45 CFLAGS = -tpp6 -O3
46 FFLAGS = -tpp6 -O3
47
48 LIBNAME = libmdtools.a
49
50 endif
51
52 ifeq ($(strip $(WARN)), $(strip on))
53 CFLAGS += -w2
54 endif
55
56 ifeq ($(strip $(DEBUG)), $(strip on))
57 CFLAGS += -g
58 FFLAGS += -g
59 endif
60