Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. all: libcrypto.a
  2. clean:
  3. rm -f *~ *.o *.d *.gcno *.gcda *.gcov libcrypto.a
  4. install:
  5. @echo Nothing to be made.
  6. include ../lib.rules
  7. CFLAGS += -DCONFIG_CRYPTO_INTERNAL
  8. CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT
  9. CFLAGS += -DCONFIG_TLS_INTERNAL_SERVER
  10. #CFLAGS += -DALL_DH_GROUPS
  11. CFLAGS += -DCONFIG_SHA256
  12. LIB_OBJS= \
  13. aes-cbc.o \
  14. aes-ccm.o \
  15. aes-ctr.o \
  16. aes-eax.o \
  17. aes-encblock.o \
  18. aes-gcm.o \
  19. aes-internal.o \
  20. aes-internal-dec.o \
  21. aes-internal-enc.o \
  22. aes-omac1.o \
  23. aes-unwrap.o \
  24. aes-wrap.o \
  25. des-internal.o \
  26. dh_group5.o \
  27. dh_groups.o \
  28. md4-internal.o \
  29. md5.o \
  30. md5-internal.o \
  31. milenage.o \
  32. ms_funcs.o \
  33. rc4.o \
  34. sha1.o \
  35. sha1-internal.o \
  36. sha1-pbkdf2.o \
  37. sha1-prf.o \
  38. sha1-tlsprf.o \
  39. sha1-tprf.o \
  40. sha256.o \
  41. sha256-prf.o \
  42. sha256-tlsprf.o \
  43. sha256-internal.o
  44. LIB_OBJS += crypto_internal.o
  45. LIB_OBJS += crypto_internal-cipher.o
  46. LIB_OBJS += crypto_internal-modexp.o
  47. LIB_OBJS += crypto_internal-rsa.o
  48. LIB_OBJS += tls_internal.o
  49. LIB_OBJS += fips_prf_internal.o
  50. LIB_OBJS += random.o
  51. libcrypto.a: $(LIB_OBJS)
  52. $(AR) crT $@ $?
  53. -include $(OBJS:%.o=%.d)