Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Makefile
- CXX = g++
- CXX_OUTPUT = hw1
- CXX_FLAGS = -Wall -o $(CXX_OUTPUT)
- CXX_SRC = hw1.cpp main.cpp
- all:
- @echo Generating $(CXX_OUTPUT)...
- @$(CXX) $(CXX_FLAGS) $(CXX_SRC)
- @echo Done
- clean:
- @rm -rf $(CXX_OUTPUT)
- test: all
- @echo Testing...
- @./$(CXX_OUTPUT) abcde 9 isosceles_triangle abcde_iso.txt
- @./$(CXX_OUTPUT) abcde 9 right_triangle abcde_right.txt
- @./$(CXX_OUTPUT) abcde 9 square abcde_square.txt
- @echo Diffing abcde_square.txt
- @diff abcde_square.txt test/abcde_9_square.txt
- @echo Diffing abcde_right.txt
- @diff abcde_right.txt test/abcde_9_right_triangle.txt
- @echo Diffing abcde_iso.txt
- @diff abcde_iso.txt test/abcde_9_isosceles_triangle.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement