No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.old 907B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. CC=g++
  2. LDFLAGS=
  3. CFLAGS=-Wall -Wextra -O -std=c++17
  4. STATE=debug
  5. SRC=src/
  6. INCLUDE=include/
  7. OBJ=object/
  8. BIN=bin/$(STATE)/
  9. all: reits
  10. run: reits
  11. $(BIN)reits
  12. reits: main.o $(OBJ)Game.o $(OBJ)Scene.o $(OBJ)Interface.o
  13. @echo "\nCompilation de \033[0;36m $@ \033[0m"
  14. $(CC) -o $(BIN)$@ $(OBJ)$^ $(LDFLAGS)
  15. main.o: main.cpp $(INCLUDE)Game.h
  16. @echo "\nCompilation de \033[0;36m $@ \033[0m"
  17. $(CC) -o $(OBJ)$@ -c $^ $(CFLAGS)
  18. Game.o: $(SRC)Game.cpp $(INCLUDE)Game.h $(INCLUDE)Scene.h
  19. @echo "\nCompilation de \033[0;36m $@ \033[0m"
  20. @$(CC) -o $(OBJ)$@ -c $< $(CFLAGS)
  21. Scene.o: $(SRC)Scene.cpp $(INCLUDE)Scene.h $(INCLUDE)Interface.h
  22. @echo "\nCompilation de \033[0;36m $@ \033[0m"
  23. @$(CC) -o $(OBJ)$@ -c $< $(CFLAGS)
  24. Interface.o: $(SRC)Interface.cpp $(INCLUDE)Interface.h
  25. @echo "\nCompilation de \033[0;36m $@ \033[0m"
  26. @$(CC) -o $(OBJ)$@ -c $< $(CFLAGS)
  27. clean:
  28. echo "Nettoyage des objets"
  29. rm $(OBJ)*