
# Makefile for EVE v2.1

###########################################################################
# Machine specifics variables

# compiler use CC=mpiCC to compile a parallel version with MPI library of 
# your choice, or CC=g++ to compile a serial version (and set IF_MPI flag to 0)
#CC=mpiCC
CC=g++

# If IF_MPI=1 a parallel version of the code is compiled using MPI library 
# of your choice, if IF_MPI=0 a serial version is compiled
IF_MPI=0

# use IF_64BIT=1 of a 64 bit machines (the code includes two versions of the 
# random number generators (32-bit or 64-bit), which are architecture specific.
IF_64BIT=0

###########################################################################

CFLAGS=-O2 -D_IF_MPI=$(IF_MPI)
LDFLAGS= 

OBJS= eve.o eve_parameters.o ilibrary.o  value_calculation.o import_export.o cell.o 

eve:	$(OBJS)
	$(CC) -o eve $(OBJS) $(LDFLAGS)
#	$(CC) -static -o eve $(OBJS) $(LDFLAGS)

%.o: %.cpp
	$(CC)  $(CFLAGS) -c $< -o $@

clean:
	rm -rf *.o eve
