Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.43 KB | None | 0 0
  1. CPP = g++
  2. FLAGS = -Wall
  3. LFLAGS = -lsfml-graphics -lsfml-window -lsfml-system
  4.  
  5. EXEC = graphics
  6. OBJS = graphics-window.o
  7.  
  8. default: ${EXEC}
  9.  
  10. clean:
  11.     rm -f ${EXEC}
  12.     rm -f *.o
  13.  
  14. run: ${EXEC}
  15.     ./${EXEC}
  16.  
  17. ${EXEC}: ${OBJS}
  18.     ${CPP} -o $@ $^ ${LFLAGS}
  19.  
  20. %.o: %.cpp
  21.     ${CPP} ${FLAGS} -o $@ -c $<
  22.  
  23. .PHONY: default clean run
  24.  
  25. #g++ -c graphics-window.cpp
  26. #g++ -o graphics graphics-window.o -lsfml-graphics -lsfml-window -lsfml-system
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement