Makefile 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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. $(AR) $(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. (preproc=/tmp/$$$$.$@; trap "rm $$preproc" INT; \
  45. $(PERL) asm/ghash-alpha.pl > $$preproc && \
  46. $(CC) -E $$preproc > $@ && rm $$preproc)
  47. ghash-parisc.s: asm/ghash-parisc.pl
  48. $(PERL) asm/ghash-parisc.pl $(PERLASM_SCHEME) $@
  49. # GNU make "catch all"
  50. ghash-%.S: asm/ghash-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@
  51. ghash-armv4.o: ghash-armv4.S
  52. files:
  53. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  54. links:
  55. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  56. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  57. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  58. install:
  59. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  60. @headerlist="$(EXHEADER)"; for i in $$headerlist; \
  61. do \
  62. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  63. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  64. done;
  65. tags:
  66. ctags $(SRC)
  67. tests:
  68. lint:
  69. lint -DLINT $(INCLUDES) $(SRC)>fluff
  70. update: depend
  71. depend:
  72. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  73. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  74. dclean:
  75. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  76. mv -f Makefile.new $(MAKEFILE)
  77. clean:
  78. rm -f *.s *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  79. # DO NOT DELETE THIS LINE -- make depend depends on it.
  80. cbc128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  81. cbc128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  82. cbc128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  83. cbc128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  84. cbc128.o: ../../include/openssl/symhacks.h cbc128.c modes_lcl.h
  85. ccm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  86. ccm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  87. ccm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  88. ccm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  89. ccm128.o: ../../include/openssl/symhacks.h ccm128.c modes_lcl.h
  90. cfb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  91. cfb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  92. cfb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  93. cfb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  94. cfb128.o: ../../include/openssl/symhacks.h cfb128.c modes_lcl.h
  95. ctr128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  96. ctr128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  97. ctr128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  98. ctr128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  99. ctr128.o: ../../include/openssl/symhacks.h ctr128.c modes_lcl.h
  100. cts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  101. cts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  102. cts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  103. cts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  104. cts128.o: ../../include/openssl/symhacks.h cts128.c modes_lcl.h
  105. gcm128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  106. gcm128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  107. gcm128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  108. gcm128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  109. gcm128.o: ../../include/openssl/symhacks.h gcm128.c modes_lcl.h
  110. ofb128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  111. ofb128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  112. ofb128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  113. ofb128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  114. ofb128.o: ../../include/openssl/symhacks.h modes_lcl.h ofb128.c
  115. xts128.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  116. xts128.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  117. xts128.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  118. xts128.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  119. xts128.o: ../../include/openssl/symhacks.h modes_lcl.h xts128.c