# Makefile for baseball.01

CCC=g++

BINARIES =  myStrTokTest strtokWithQuotedStringsTest


all: ${BINARIES}


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

runTests.o: runTests.h runTests.cc
	${CCC} -c runTests.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


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

