Нема описа
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.

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