# Makefile for baseball.01

CCC = g++


BINARIES = main strtokWithQuotedStringsTest myStrTokTest


all: ${BINARIES}


date.o: date.cc date.h

event.o: event.cc event.h date.h

main.o: main.cc baseballMaster.h event.h date.h

main: main.o date.o event.o
	${CCC} main.o date.o event.o -o $@


myStrTokTest: myStrTokTest.o runTests.o myStrTok.o 
	${CCC} myStrTokTest.o runTests.o myStrTok.o -o $@

myStrTok.o: myStrTok.h myStrTok.cc
	${CCC} -c myStrTok.cc

strtokWithQuotedStringsTest: strtokWithQuotedStringsTest.o \
		runTests.o strtokWithQuotedStrings.o
	${CCC} strtokWithQuotedStringsTest.o runTests.o \
		strtokWithQuotedStrings.o -o $@

strtokWithQuotedStrings.o: strtokWithQuotedStrings.o.CC.backup
	/bin/cp strtokWithQuotedStrings.o.${CCC}.backup strtokWithQuotedStrings.o


strtokWithQuotedStringsTest.o: strtokWithQuotedStrings.h \
		strtokWithQuotedStringsTest.cc runTests.h
	${CCC} -c strtokWithQuotedStringsTest.cc

runTests.o: runTests.h runTests.cc
	${CCC} -c runTests.cc

clean: 
	/bin/rm -f *.o ${BINARIES} core a.out

