# stringfun demo
# Walker M. White
# February 6, 2016

# Variables.  In case we wanted to swap compilers
CC=c++
CCFLAGS=

# The implementation with prefix notation
prefix.exe: prefix.o 
	$(CC) -o prefix.exe prefix.o

prefix.o: prefix.cpp stringfun.h
	$(CC) -c prefix.cpp

# The implementation with using notation
using.exe: using.o 
	$(CC) -o using.exe using.o

using.o: using.cpp stringfun.h
	$(CC) -c using.cpp

# The implementation with namespace notation
namespace.exe: namespace.o 
	$(CC) -o namespace.exe namespace.o

namespace.o: namespace.cpp stringfun.h
	$(CC) -c namespace.cpp

# To clean up
clean:
	rm -rf *.o

realclean: clean
	rm *.exe
