# Makefile for workoutProject1
# P. Conrad for CISC181, 03/15/06
# A project to show how to read a CSV file into an array of structs
# also to show how to write a Makefile from scratch


# the BINARIES variable is generally a list of the executable programs
# it is typically a list of the files that have a main() function in them

CCC = CC
#CCC = /opt/sfw/bin/g++
BINARIES = readWorkoutData testComputeSplitTime


all: ${BINARIES} test

readWorkoutData: readWorkoutData.o computeSplitTime.o
	${CCC} -o readWorkoutData readWorkoutData.o computeSplitTime.o


# for 10 points Extra Credit towards lab/hwk/quiz grade, tmintel
# will now make a rule for testComputeSplitTime

testComputeSplitTime: computeSplitTime.o testComputeSplitTime.o
	$(CCC) -o testComputeSplitTime computeSplitTime.o testComputeSplitTime.o


test: testComputeSplitTime
	./testComputeSplitTime
	touch test


greet:
	echo "Let's go Mountaineers.... beat Texas!"

clean:
	/bin/rm -f ${BINARIES} *.o core test foo
