Advertisement
perjespersson

Untitled

May 22nd, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. FLAGS := -std=c++17 -pedantic -Wall -Wextra
  2. LIBS := -lsfml-window -lsfml-graphics -lsfml-system
  3.  
  4. all: application.o GameObj.o gamehandler.o state.o gui.o
  5. g++ $(FLAGS) application.o GameObj.o gamehandler.o state.o gui.o $(LIBS)
  6.  
  7. application.o: cc/application.cc
  8. g++ $(FLAGS) cc/application.cc -c -o application.o
  9.  
  10. gamehandler.o: cc/GameHandler.cc
  11. g++ $(FLAGS) cc/GameHandler.cc -c -o gamehandler.o
  12.  
  13. state.o: cc/state.cc cc/Game_State.cc cc/Name_State.cc cc/Pause_Menu_State.cc cc/Start_Menu_State.cc
  14. g++ $(FLAGS) cc/state.cc -c -o state.o
  15.  
  16. gui.o: cc/gui.cc
  17. g++ $(FLAGS) cc/gui.cc -c -o gui.o
  18.  
  19. GameObj.o: cc/GameObj.cc cc/Player.cc cc/Terrain.cc cc/Wall_Of_Death.cc cc/Coin.cc cc/Goal.cc cc/Player.cc cc/Spike.cc
  20. g++ $(FLAGS) cc/GameObj.cc -c -o GameObj.o
  21.  
  22. .PHONY: clean
  23. clean:
  24. rm *.o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement