Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.45 KB | None | 0 0
  1. CPP = g++
  2. FLAGS = -c -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} ${FLAGS} -o ${EXEC} ${OBJS} ${LFLAGS}
  19.  
  20. .cpp.o:
  21.     ${CPP} ${FLAGS} -c $<
  22.  
  23. graphics-window.o: graphics-window.cpp
  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