Advertisement
swarley

Untitled

Aug 29th, 2014
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.67 KB | None | 0 0
  1. # Makefile
  2.  
  3. CXX = g++
  4. CXX_OUTPUT = hw1
  5. CXX_FLAGS = -Wall -o $(CXX_OUTPUT)
  6. CXX_SRC = hw1.cpp main.cpp
  7.  
  8. all:
  9.     @echo Generating $(CXX_OUTPUT)...
  10.     @$(CXX) $(CXX_FLAGS) $(CXX_SRC)
  11.     @echo Done
  12.  
  13. clean:
  14.     @rm -rf $(CXX_OUTPUT)
  15.  
  16. test: all
  17.     @echo Testing...
  18.     @./$(CXX_OUTPUT) abcde 9 isosceles_triangle abcde_iso.txt
  19.     @./$(CXX_OUTPUT) abcde 9 right_triangle abcde_right.txt
  20.     @./$(CXX_OUTPUT) abcde 9 square abcde_square.txt
  21.     @echo Diffing abcde_square.txt
  22.     @diff abcde_square.txt test/abcde_9_square.txt
  23.     @echo Diffing abcde_right.txt
  24.     @diff abcde_right.txt test/abcde_9_right_triangle.txt
  25.     @echo Diffing abcde_iso.txt
  26.     @diff abcde_iso.txt test/abcde_9_isosceles_triangle.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement