# This is a makefile.  If you do not have an IDE, it is a nice way to 
# to automated the complicated process of compiling and linking
#
# Walker M. White
# February 6, 2015

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

# The main application.
# The command "make" by itself makes this, because it is first.
unittest: main.o cornelltest.o temperature.o
	$(CC) -o unittest main.o cornelltest.o temperature.o

# The object files (pre-linker)
main.o: main.cpp temperature.h cornelltest.h
	$(CC) -c main.cpp

cornelltest.o: cornelltest.cpp cornelltest.h
	$(CC) -c cornelltest.cpp

temperature.o: temperature.cpp temperature.h
	$(CC) -c temperature.cpp

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

realclean: clean
	rm unittest 
