--- trunk/mdtools/Makefile.inc 2002/10/11 15:09:09 134 +++ trunk/mdtools/Makefile.inc 2002/11/21 20:33:02 183 @@ -4,15 +4,64 @@ CC = mpicc OSS = $(strip $(OS)) -CC = mpicc -CC_PLUS = mpiCC +# Here we decide whether the build is single or mutiple processor + +BUILD = mpi +#BUILD = single + +# turn on compiler warnings + +#WARN = on +WARN = off + +# turn on debuging + +#DEBUG = on +DEBUG = off + +TALKATIVE = on +#TALKATIVE = off + YC = bison LC = flex +LD = ld + +LIBDIR = $(HOME)/lib + +ifeq ($(strip $(BUILD)), $(strip mpi)) + +CC = mpicc +CC_PLUS = mpiCC FC = mpif90 -#CFLAGS = -g -w2 -O2 -DIS_MPI -I/usr/local/include -CFLAGS = -g -O2 -DIS_MPI -I/usr/local/include -FFLAGS = -g -tpp6 -O3 -LD = ld -FLIBS = +CFLAGS = -DIS_MPI -I/usr/local/include +FFLAGS = -DIS_MPI -I/usr/local/include +LIBNAME = libMPImdtools.a + +else + +CC = icc +CC_PLUS = icc +FC = ifc + +CFLAGS = -tpp6 -O3 +FFLAGS = -tpp6 -O3 + +LIBNAME = libmdtools.a + +endif + +ifeq ($(strip $(WARN)), $(strip on)) +CFLAGS += -w2 +endif + +ifeq ($(strip $(DEBUG)), $(strip on)) +CFLAGS += -g +FFLAGS += -g +endif + +ifeq ($(strip $(TALKATIVE)), $(strip on)) +CFLAGS += -DCHECKPOINT_VERBOSE +endif +