# Makefile for the new MD code

CC = cc
OPT = -O4
run_condition_file = con

argon: argon.c argon.h 
	$(CC) $(OPT) -o argon argon.c -lm

smile: smile.c 
	$(CC) $(OPT) -o smile smile.c -lm

run: argon
	./argon < $(run_condition_file); \
	./save $(run_condition_file)

longrun: argon
	@mv output output.old
	@echo start time = `date` | tee -a output
	@time nohup nice ./argon < $(run_condition_file) | tee -a output; \
	echo end time = `date` | tee -a output; \
	./save $(run_condition_file); \
	mail $$LOGNAME@mit.edu < temp.out &

clean:	
	rm argon *~ *.out

cleanall: 
	rm argon *~ *.out *.old Data/*