CC = gcc
OBJECTS = AsianOption.o Dist.o

all: ${OBJECTS} MAKEINPUT
	${CC} ${OBJECTS} evaloption.c -lm -L. -lqmc -o evaloption

#this rule makes all the object files for the QMC exectuable

AsianOption.o: AsianOption.c AsianOption.h Dist.h
	${CC} -c AsianOption.c -o AsianOption.o

Dist.o:	Dist.c Dist.h
	${CC} -c Dist.c -o Dist.o

#this makes the MAKEINPUT executable

MAKEINPUT: makeinput.c
	${CC} makeinput.c -lm -L. -lqmc -o makeinput

#this cleans up the directory

clean:
	rm -f *.o core *~ asianoption makeinput