Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. #
  2. # SSLeay/crypto/sha/Makefile
  3. #
  4. DIR= sha
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=
  9. CFLAG=-g
  10. INSTALL_PREFIX=
  11. OPENSSLDIR= /usr/local/ssl
  12. INSTALLTOP=/usr/local/ssl
  13. MAKEDEPPROG= makedepend
  14. MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
  15. MAKEFILE= Makefile
  16. AR= ar r
  17. SHA1_ASM_OBJ=
  18. CFLAGS= $(INCLUDES) $(CFLAG)
  19. ASFLAGS= $(INCLUDES) $(ASFLAG)
  20. GENERAL=Makefile
  21. TEST=shatest.c sha1test.c
  22. APPS=
  23. LIB=$(TOP)/libcrypto.a
  24. LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c
  25. LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ)
  26. SRC= $(LIBSRC)
  27. EXHEADER= sha.h
  28. HEADER= sha_locl.h $(EXHEADER)
  29. ALL= $(GENERAL) $(SRC) $(HEADER)
  30. top:
  31. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  32. all: lib
  33. lib: $(LIBOBJ)
  34. $(AR) $(LIB) $(LIBOBJ)
  35. $(RANLIB) $(LIB) || echo Never mind.
  36. @touch lib
  37. # elf
  38. asm/sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl
  39. (cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > sx86-elf.s)
  40. # a.out
  41. asm/sx86-out.o: asm/sx86unix.cpp
  42. $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o
  43. # bsdi
  44. asm/sx86bsdi.o: asm/sx86unix.cpp
  45. $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
  46. asm/sx86unix.cpp: asm/sha1-586.pl ../perlasm/x86asm.pl
  47. (cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp)
  48. files:
  49. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  50. links:
  51. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  52. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  53. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  54. install:
  55. @for i in $(EXHEADER) ; \
  56. do \
  57. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  58. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  59. done;
  60. tags:
  61. ctags $(SRC)
  62. tests:
  63. lint:
  64. lint -DLINT $(INCLUDES) $(SRC)>fluff
  65. depend:
  66. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  67. dclean:
  68. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  69. mv -f Makefile.new $(MAKEFILE)
  70. clean:
  71. rm -f asm/sx86unix.cpp asm/*-elf.* *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
  72. # DO NOT DELETE THIS LINE -- make depend depends on it.
  73. sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  74. sha1_one.o: ../../include/openssl/opensslconf.h
  75. sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
  76. sha1_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
  77. sha1_one.o: ../../include/openssl/symhacks.h sha1_one.c
  78. sha1dgst.o: ../../include/openssl/opensslconf.h
  79. sha1dgst.o: ../../include/openssl/opensslv.h sha1dgst.c
  80. sha_dgst.o: ../../fips/fips_locl.h ../../include/openssl/bio.h
  81. sha_dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  82. sha_dgst.o: ../../include/openssl/err.h ../../include/openssl/fips.h
  83. sha_dgst.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h
  84. sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
  85. sha_dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
  86. sha_dgst.o: ../../include/openssl/symhacks.h ../md32_common.h sha_dgst.c
  87. sha_dgst.o: sha_locl.h
  88. sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  89. sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  90. sha_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
  91. sha_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  92. sha_one.o: sha_one.c