add *.hpp into Makefile as exec target dependency
This commit is contained in:
parent
db0fba47e5
commit
a48e96004e
6
Makefile
6
Makefile
@ -11,7 +11,7 @@ JSON_CPP=$(OBJ_PATH)/jsoncpp.o
|
||||
cryptomain.ex: $(EXEC)
|
||||
|
||||
# merge crypt and decrypt binary into cryptomain
|
||||
$(EXEC): $(SRC) $(JSON_CPP)
|
||||
$(EXEC): $(SRC) *.hpp $(JSON_CPP)
|
||||
@echo "compilation de aes"
|
||||
@g++ -Wall -Wextra -ggdb -o $(EXEC) $(SRC) $(JSON_CPP) -lcrypto --std=c++14
|
||||
|
||||
@ -31,11 +31,11 @@ SRC_DECRYPT=mainDecrypt.cpp
|
||||
crypt.ex: $(EXEC_CRYPT)
|
||||
decrypt.ex: $(EXEC_DECRYPT)
|
||||
|
||||
$(EXEC_CRYPT): $(SRC_CRYPT) $(JSON_CPP) aes.hpp
|
||||
$(EXEC_CRYPT): $(SRC_CRYPT) *.hpp $(JSON_CPP)
|
||||
@echo "compilation de crypt.ex"
|
||||
@g++ -Wall -Wextra -ggdb -o $(EXEC_CRYPT) $(SRC_CRYPT) $(JSON_CPP) -lcrypto --std=c++14
|
||||
|
||||
$(EXEC_DECRYPT): $(SRC_DECRYPT) $(JSON_CPP) aes.hpp
|
||||
$(EXEC_DECRYPT): $(SRC_DECRYPT) *.hpp $(JSON_CPP)
|
||||
@echo "compilation de decrypt.ex"
|
||||
@g++ -Wall -Wextra -ggdb -o $(EXEC_DECRYPT) $(SRC_DECRYPT) $(JSON_CPP) -lcrypto --std=c++14
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user