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 616B

1234567891011121314151617181920212223242526272829303132333435
  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: 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. $(OBJ)main.o: main.cpp
  18. @echo "\nCompilation de \033[0;36m $@ \033[0m"
  19. $(CC) -o $@ -c $^ $(CFLAGS)
  20. $(OBJ)%.o: $(SRC)%.cpp $(INCLUDE)%.h
  21. @echo "\nCompilation de \033[0;36m $@ \033[0m"
  22. @$(CC) -o $@ -c $< $(CFLAGS)
  23. clean:
  24. @echo "Nettoyage des objets dans \033[0;34m$(OBJ)\033[0m"
  25. rm main.o $(OBJ)*