# makefile
# for testing String and EvaluateSalaryAndReturnName function.
# Written by Ben Stanley 20000815 bstanley@uow.edu.au
# Written for gnu make and g++.

CXX=g++
#CXXFLAGS=-g -Wall -Weffc++ -ansi -I../Common
CXXFLAGS=-g -Wall -ansi -I../Common

TARGETS=Test_Function Test_String

all: $(TARGETS)

Test_String: String.h TestString.cpp \
		../Common/Counter.h ../Common/Counter.cpp
	$(CXX) $(CXXFLAGS) -o $@ ../Common/Counter.cpp TestString.cpp

Test_Function: String.h Employee.h TestFunction.cpp \
		../Common/Counter.h ../Common/Counter.cpp \
		Function.cpp
	$(CXX) $(CXXFLAGS) -o $@ ../Common/Counter.cpp \
		Function.cpp TestFunction.cpp

realclean: clean
	rm -f $(TARGETS)

clean:
	rm -f *~ core *.o
