Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. PROG= scrypt
  2. VER?= nosse
  3. SRCS= main.c
  4. LDADD+= -lcrypto
  5. WARNS?= 6
  6. # We have a config file for FreeBSD
  7. CFLAGS += -I .
  8. CFLAGS += -DCONFIG_H_FILE=\"config_freebsd.h\"
  9. # Include all possible object files containing built scrypt code.
  10. CLEANFILES += crypto_scrypt-ref.o
  11. CLEANFILES += crypto_scrypt-sse.o
  12. CLEANFILES += crypto_scrypt-nosse.o
  13. .PATH.c : lib/util
  14. SRCS += memlimit.c readpass.c warn.c
  15. CFLAGS += -I lib/util
  16. .PATH.c : lib/crypto
  17. SRCS += crypto_aesctr.c crypto_scrypt-${VER}.c sha256.c
  18. CFLAGS += -I lib/crypto
  19. .PATH.c : lib/scryptenc
  20. SRCS += scryptenc_cpuperf.c scryptenc.c
  21. CFLAGS += -I lib/scryptenc
  22. #======== public code ends here
  23. SCRYPTVERSION!=basename `pwd` | cut -f 2 -d -
  24. PKGNAME=scrypt-${SCRYPTVERSION}
  25. PKGSIGS=scrypt-sigs-${SCRYPTVERSION}
  26. publish-at:
  27. mkdir -p ${PKGNAME}
  28. cp -R lib ${PKGNAME}
  29. cp scrypt_platform.h main.c FORMAT scrypt.1 ${PKGNAME}
  30. echo -n '${SCRYPTVERSION}' > scrypt-version
  31. mkdir -p config.aux
  32. aclocal-1.10 -I .
  33. autoheader-2.62
  34. automake-1.10 -a -c
  35. autoconf-2.62
  36. mv Makefile.in config.h.in configure ${PKGNAME}/
  37. rm aclocal.m4
  38. mv config.aux ${PKGNAME}/
  39. rm scrypt-version
  40. tar -czf ${PKGNAME}.tgz ${PKGNAME}
  41. rm -rf ${PKGNAME}
  42. publish: publish-at
  43. sha256 ${PKGNAME}.tgz | \
  44. gpg --secret-keyring ../EC2/md/gpg.key --clearsign -u 3DD61E72 \
  45. > ${PKGSIGS}.asc
  46. .include <bsd.prog.mk>