12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- CC=g++
- LDFLAGS=
- CFLAGS=-Wall -Wextra -O -std=c++17 -lboost_program_options
-
- STATE=dev
-
- SRC=src/
- INCLUDE=include/
- OBJ=object/
- BIN=bin/$(STATE)/
-
- all: crypt
-
- run: crypt
- $(BIN)reits
-
- rerun: clean run
-
- remake: clean reits
-
- crypt: $(OBJ)main.o $(OBJ)Crypt.o
- @echo "\nCompilation de \033[0;36m $@ \033[0m"
- $(CC) -o $(BIN)$@ $^ $(LDFLAGS)
-
- dev: $(OBJ)main_dev.o $(OBJ)Crypt.o $(OBJ)Test.o
- @echo "\nCompilation de \033[0;36m $@ \033[0m"
- $(CC) -o $(BIN)$@ $^ $(LDFLAGS)
-
- $(OBJ)main.o: main.cpp
- @echo "\nCompilation de \033[0;36m $@ \033[0m"
- $(CC) -o $@ -c $^ $(CFLAGS)
-
- $(OBJ)main_dev.o: main_dev.cpp
- @echo "\nCompilation de \033[0;36m $@ \033[0m"
- $(CC) -o $@ -c $^ $(CFLAGS)
-
- $(OBJ)%.o: $(SRC)%.cpp $(INCLUDE)%.h
- @echo "\nCompilation de \033[0;36m $@ \033[0m"
- @$(CC) -o $@ -c $< $(CFLAGS)
-
- clean:
- @echo "Nettoyage des objets dans \033[0;34m$(OBJ)\033[0m"
- rm main.o $(OBJ)*
|