#Makefile

#Used to compile the Robinson MC code with the GNU C++ compiler for testing/deployment on any system with a relatively modern version of gcc.

#LEJ, 01/12/10
#AT, Jan 17,2011
#LEJ, 05/15/12 - final cleanup for old version
# - works with GNU make
# - modularized a bit

ROOT_DIR=./
include Makefile.choices

#Program name

PROG_NAME=MCsim

#Define object code files
OBJS = VmuE.o get_means.o OneStep.o utility_functions.o VecMat.o get_rs_mus.o VLJ.o TotalV.o Vmumu.o Ellipse.o evolve_system.o Latticeoids3d.o Molecule.o Cnsts.o output_data.o get_positions.o gofr.o newtouch.o setup.o

#Compile executable and link
all: $(OBJS)
	$(CPP) $(CPPFLAGS) -o $(PROG_NAME) $(ROOT_DIR)MCmain.cpp $(OBJS)

#Compile object code files without linking
%.o:$(ROOT_DIR)%.cpp
	$(CPP) $(CPPFLAGS) -c $<

.PHONY: clean

clean:
	rm -f *.o $(PROG_NAME)
