Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ##############################################################################
  2. # Copyright (c) 2021 by Rambus, Inc. and/or its subsidiaries
  3. # All rights reserved. Unauthorized use (including, without limitation,
  4. # distribution and copying) is strictly prohibited. All use requires,
  5. # and is subject to, explicit written authorization and nondisclosure
  6. # Rambus, Inc. and/or its subsidiaries
  7. #
  8. # For more information or support, please go to our online support system at
  9. # https://sipsupport.rambus.com.
  10. # In case you do not have an account for this system, please send an e-mail
  11. # to sipsupport@rambus.com.
  12. ##############################################################################
  13. # check dependencies
  14. ifndef OPENSSL_DIR
  15. $(error OPENSSL_DIR is not set)
  16. endif
  17. # default
  18. all: cipher digest
  19. # cipher executable
  20. cipher:
  21. ${CROSS_COMPILE}gcc -O0 \
  22. -ggdb \
  23. ../src/cipher.c \
  24. -Wl,-rpath=usr/lib64,-rpath=${OPENSSL_DIR} \
  25. -I${OPENSSL_DIR}/include \
  26. -L${OPENSSL_DIR} \
  27. -lcrypto \
  28. -o cipher
  29. ls -la cipher
  30. # digest executable
  31. digest:
  32. ${CROSS_COMPILE}gcc -O0 \
  33. -ggdb \
  34. ../src/digest.c \
  35. -Wl,-rpath=usr/lib64,-rpath=${OPENSSL_DIR} \
  36. -I${OPENSSL_DIR}/include \
  37. -L${OPENSSL_DIR} \
  38. -lcrypto \
  39. -o digest
  40. ls -la digest
  41. clean:
  42. rm cipher
  43. rm digest
  44. .PHONY: info
  45. info:
  46. $(info $$OPENSSL_DIR is [${OPENSSL_DIR}])