2
0

Makefile.ssl 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #
  2. # SSLeay/crypto/blowfish/Makefile
  3. #
  4. DIR= bf
  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. 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. BF_ENC= bf_enc.o
  19. # or use
  20. #DES_ENC= bx86-elf.o
  21. CFLAGS= $(INCLUDES) $(CFLAG)
  22. ASFLAGS= $(INCLUDES) $(ASFLAG)
  23. GENERAL=Makefile
  24. TEST=bftest.c
  25. APPS=
  26. LIB=$(TOP)/libcrypto.a
  27. LIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c
  28. LIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o
  29. SRC= $(LIBSRC)
  30. EXHEADER= blowfish.h
  31. HEADER= bf_pi.h bf_locl.h $(EXHEADER)
  32. ALL= $(GENERAL) $(SRC) $(HEADER)
  33. top:
  34. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  35. all: lib
  36. lib: $(LIBOBJ)
  37. $(AR) $(LIB) $(LIBOBJ)
  38. $(RANLIB) $(LIB) || echo Never mind.
  39. @touch lib
  40. # elf
  41. asm/bx86-elf.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  42. (cd asm; $(PERL) bf-586.pl elf $(CFLAGS) $(PROCESSOR) > bx86-elf.s)
  43. # a.out
  44. asm/bx86-out.o: asm/bx86unix.cpp
  45. $(CPP) -DOUT asm/bx86unix.cpp | as -o asm/bx86-out.o
  46. # bsdi
  47. asm/bx86bsdi.o: asm/bx86unix.cpp
  48. $(CPP) -DBSDI asm/bx86unix.cpp | sed 's/ :/:/' | as -o asm/bx86bsdi.o
  49. asm/bx86unix.cpp: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  50. (cd asm; $(PERL) bf-586.pl cpp $(PROCESSOR) >bx86unix.cpp)
  51. files:
  52. $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
  53. links:
  54. @sh $(TOP)/util/point.sh Makefile.ssl Makefile
  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: installs
  59. installs:
  60. @for i in $(EXHEADER) ; \
  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. depend:
  71. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  72. dclean:
  73. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  74. mv -f Makefile.new $(MAKEFILE)
  75. clean:
  76. rm -f asm/bx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  77. # DO NOT DELETE THIS LINE -- make depend depends on it.
  78. bf_cfb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  79. bf_cfb64.o: ../../include/openssl/opensslconf.h bf_cfb64.c bf_locl.h
  80. bf_ecb.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  81. bf_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  82. bf_ecb.o: bf_ecb.c bf_locl.h
  83. bf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  84. bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h
  85. bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  86. bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c
  87. bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  88. bf_skey.o: ../../include/openssl/opensslconf.h bf_locl.h bf_pi.h bf_skey.c