Makefile 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. #
  2. # OpenSSL/crypto/modes/Makefile
  3. #
  4. DIR= modes
  5. TOP= ../..
  6. CC= cc
  7. INCLUDES= -I.. -I$(TOP) -I../../include
  8. CFLAG=-g
  9. MAKEFILE= Makefile
  10. AR= ar r
  11. MODES_ASM_OBJ=
  12. CFLAGS= $(INCLUDES) $(CFLAG)
  13. ASFLAGS= $(INCLUDES) $(ASFLAG)
  14. AFLAGS= $(ASFLAGS)
  15. GENERAL=Makefile
  16. TEST=
  17. APPS=
  18. LIB=$(TOP)/libcrypto.a
  19. LIBSRC= cbc128.c ctr128.c cts128.c cfb128.c ofb128.c gcm128.c \
  20. ccm128.c xts128.c
  21. LIBOBJ= cbc128.o ctr128.o cts128.o cfb128.o ofb128.o gcm128.o \
  22. ccm128.o xts128.o $(MODES_ASM_OBJ)
  23. SRC= $(LIBSRC)
  24. #EXHEADER= store.h str_compat.h
  25. EXHEADER= modes.h
  26. HEADER= modes_lcl.h $(EXHEADER)
  27. ALL= $(GENERAL) $(SRC) $(HEADER)
  28. top:
  29. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  30. all: lib
  31. lib: $(LIBOBJ)
  32. $(ARX) $(LIB) $(LIBOBJ)
  33. $(RANLIB) $(LIB) || echo Never mind.
  34. @touch lib
  35. ghash-ia64.s: asm/ghash-ia64.pl
  36. $(PERL) asm/ghash-ia64.pl $@ $(CFLAGS)
  37. ghash-x86.s: asm/ghash-x86.pl
  38. $(PERL) asm/ghash-x86.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
  39. ghash-x86_64.s: asm/ghash-x86_64.pl
  40. $(PERL) asm/ghash-x86_64.pl $(PERLASM_SCHEME) > $@
  41. ghash-sparcv9.s: asm/ghash-sparcv9.pl
  42. $(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS)
  43. ghash-alpha.s: asm/ghash-alpha.pl
  44. $(PERL) $< | $(CC) -E - | tee $@ > /dev/null
  45. ghash-parisc.s: asm/ghash-parisc.pl
  46. $(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@
  47. # GNU make "catch all"
  48. ghash-%.S: asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
  49. ghash-armv4.o: ghash-armv4.S
  50. files:
  51. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  52. links:
  53. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  54. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  55. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  56. install:
  57. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  58. @headerlist="$(EXHEADER)"; for i in $$headerlist; \
  59. do \
  60. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  61. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  62. done;
  63. tags:
  64. ctags $(SRC)
  65. tests:
  66. lint:
  67. lint -DLINT $(INCLUDES) $(SRC)>fluff
  68. depend:
  69. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  70. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  71. dclean:
  72. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  73. mv -f Makefile.new $(MAKEFILE)
  74. clean:
  75. rm -f *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  76. # DO NOT DELETE THIS LINE -- make depend depends on it.
  77. cbc128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  78. cbc128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  79. cbc128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  80. cbc128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  81. cbc128.o: ../../include/openssl/symhacks.h cbc128.c modes_lcl.h
  82. cfb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  83. cfb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  84. cfb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  85. cfb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  86. cfb128.o: ../../include/openssl/symhacks.h cfb128.c modes_lcl.h
  87. ctr128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  88. ctr128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  89. ctr128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  90. ctr128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  91. ctr128.o: ../../include/openssl/symhacks.h ctr128.c modes_lcl.h
  92. cts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  93. cts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  94. cts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  95. cts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  96. cts128.o: ../../include/openssl/symhacks.h cts128.c modes_lcl.h
  97. gcm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  98. gcm128.o: ../../include/openssl/fips.h ../../include/openssl/modes.h
  99. gcm128.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  100. gcm128.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  101. gcm128.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  102. gcm128.o: gcm128.c modes_lcl.h
  103. ofb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  104. ofb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  105. ofb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  106. ofb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  107. ofb128.o: ../../include/openssl/symhacks.h modes_lcl.h ofb128.c