CC = gcc OBJECTS = ruinREG.o Dist.o all: ${OBJECTS} MAKEINPUT ${CC} ${OBJECTS} SimRuinReg.c -lm -L. -lqmc -o SimRuinReg #this rule makes all the object files for the QMC exectuable ruinREG.o: ruinREG.c ruinREG.h Dist.h qmc.h ${CC} -c ruinREG.c -o ruinREG.o Dist.o: Dist.c Dist.h ${CC} -c Dist.c -o Dist.o #this rule makes the MAKEINPUT executable MAKEINPUT: makeinput.c ${CC} makeinput.c -lm -L. -lqmc -o makeinput #this rule cleans up the directory clean: rm -f *.o core *~ ruinREG makeinput