Makefile 875 B

123456789101112131415161718192021222324252627282930
  1. patcher = TuxeraNTFS-patcher
  2. keygen = TuxeraNTFS-keygen
  3. verifier = TuxeraNTFS-verifier
  4. openssl_include_path = /usr/local/opt/openssl/include
  5. openssl_lib_path = /usr/local/opt/openssl/lib
  6. keygen: TuxeraNTFS-keygen.c helper.c
  7. gcc -std=c11 -I$(openssl_include_path) -L$(openssl_lib_path) -lcrypto -largon2 TuxeraNTFS-keygen.c helper.c -o $(keygen)
  8. patcher: TuxeraNTFS-patcher.c helper.c
  9. gcc -std=c11 -I$(openssl_include_path) -L$(openssl_lib_path) -lcrypto TuxeraNTFS-patcher.c helper.c -o $(patcher)
  10. verifier: verifier.c helper.c key_hashes.c
  11. gcc -std=c11 -I$(openssl_include_path) -L$(openssl_lib_path) -lcrypto -largon2 verifier.c helper.c key_hashes.c -o $(verifier)
  12. clean:
  13. ifeq ($(wildcard $(patcher)), $(patcher))
  14. rm $(patcher)
  15. endif
  16. ifeq ($(wildcard $(keygen)), $(keygen))
  17. rm $(keygen)
  18. endif
  19. ifeq ($(wildcard $(verifier)), $(verifier))
  20. rm $(verifier)
  21. endif