Makefile.ssl 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. #
  2. # SSLeay/crypto/md5/Makefile
  3. #
  4. DIR= md5
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=-I.. -I$(TOP) -I../../include
  9. CFLAG=-g
  10. INSTALL_PREFIX=
  11. OPENSSLDIR= /usr/local/ssl
  12. INSTALLTOP=/usr/local/ssl
  13. MAKE= make -f Makefile.ssl
  14. MAKEDEPPROG= makedepend
  15. MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
  16. MAKEFILE= Makefile.ssl
  17. AR= ar r
  18. MD5_ASM_OBJ=
  19. CFLAGS= $(INCLUDES) $(CFLAG)
  20. ASFLAGS= $(INCLUDES) $(ASFLAG)
  21. GENERAL=Makefile
  22. TEST=md5test.c
  23. APPS=
  24. LIB=$(TOP)/libcrypto.a
  25. LIBSRC=md5_dgst.c md5_one.c
  26. LIBOBJ=md5_dgst.o md5_one.o $(MD5_ASM_OBJ)
  27. SRC= $(LIBSRC)
  28. EXHEADER= md5.h
  29. HEADER= md5_locl.h $(EXHEADER)
  30. ALL= $(GENERAL) $(SRC) $(HEADER)
  31. top:
  32. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  33. all: lib
  34. lib: $(LIBOBJ)
  35. $(AR) $(LIB) $(LIBOBJ)
  36. $(RANLIB) $(LIB) || echo Never mind.
  37. @touch lib
  38. # elf
  39. asm/mx86-elf.s: asm/md5-586.pl ../perlasm/x86asm.pl
  40. (cd asm; $(PERL) md5-586.pl elf $(CFLAGS) > mx86-elf.s)
  41. # a.out
  42. asm/mx86-out.o: asm/mx86unix.cpp
  43. $(CPP) -DOUT asm/mx86unix.cpp | as -o asm/mx86-out.o
  44. # bsdi
  45. asm/mx86bsdi.o: asm/mx86unix.cpp
  46. $(CPP) -DBSDI asm/mx86unix.cpp | sed 's/ :/:/' | as -o asm/mx86bsdi.o
  47. asm/mx86unix.cpp: asm/md5-586.pl ../perlasm/x86asm.pl
  48. (cd asm; $(PERL) md5-586.pl cpp >mx86unix.cpp)
  49. asm/md5-sparcv8plus.o: asm/md5-sparcv9.S
  50. $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \
  51. -o asm/md5-sparcv8plus.o asm/md5-sparcv9.S
  52. # Old GNU assembler doesn't understand V9 instructions, so we
  53. # hire /usr/ccs/bin/as to do the job. Note that option is called
  54. # *-gcc27, but even gcc 2>=8 users may experience similar problem
  55. # if they didn't bother to upgrade GNU assembler. Such users should
  56. # not choose this option, but be adviced to *remove* GNU assembler
  57. # or upgrade it.
  58. asm/md5-sparcv8plus-gcc27.o: asm/md5-sparcv9.S
  59. $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -E asm/md5-sparcv9.S | \
  60. /usr/ccs/bin/as -xarch=v8plus - -o asm/md5-sparcv8plus-gcc27.o
  61. asm/md5-sparcv9.o: asm/md5-sparcv9.S
  62. $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \
  63. -o asm/md5-sparcv9.o asm/md5-sparcv9.S
  64. files:
  65. $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
  66. links:
  67. @sh $(TOP)/util/point.sh Makefile.ssl Makefile
  68. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  69. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  70. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  71. install:
  72. @for i in $(EXHEADER) ; \
  73. do \
  74. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  75. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  76. done;
  77. tags:
  78. ctags $(SRC)
  79. tests:
  80. lint:
  81. lint -DLINT $(INCLUDES) $(SRC)>fluff
  82. depend:
  83. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  84. dclean:
  85. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  86. mv -f Makefile.new $(MAKEFILE)
  87. clean:
  88. rm -f asm/mx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  89. # DO NOT DELETE THIS LINE -- make depend depends on it.
  90. md5_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/md5.h
  91. md5_dgst.o: ../../include/openssl/opensslconf.h
  92. md5_dgst.o: ../../include/openssl/opensslv.h ../md32_common.h md5_dgst.c
  93. md5_dgst.o: md5_locl.h
  94. md5_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  95. md5_one.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h
  96. md5_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
  97. md5_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  98. md5_one.o: md5_one.c