all: compile checkstyle test compile.OLD: # First compile all the code files. g++ -c LeapYear.cpp g++ -c LeapYearMain.cpp g++ -c LeapYearTest.cpp # Then link them together. g++ -o LeapYearMain LeapYearMain.o LeapYear.o g++ -o LeapYearTest LeapYearTest.o LeapYear.o -lgtest compile: LeapYearMain LeapYearTest LeapYear.o: LeapYear.cpp g++ -Wall -c LeapYear.cpp LeapYearMain.o: LeapYearMain.cpp LeapYear.h g++ -Wall -c LeapYearMain.cpp LeapYearTest.o: LeapYearTest.cpp LeapYear.h g++ -Wall -c LeapYearTest.cpp LeapYearMain: LeapYearMain.o LeapYear.o g++ -Wall -o LeapYearMain LeapYearMain.o LeapYear.o LeapYearTest: LeapYearTest.o LeapYear.o g++ -Wall -o LeapYearTest LeapYearTest.o LeapYear.o -lgtest -lpthread checkstyle: python ../cpplint.py *.h *.cpp test: LeapYearTest ./LeapYearTest clean: rm -f LeapYearMain rm -f LeapYearTest rm -f *.o