2
0

Makefile 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. #
  2. # OpenSSL/crypto/blowfish/Makefile
  3. #
  4. DIR= bf
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=
  9. CFLAG=-g
  10. MAKEFILE= Makefile
  11. AR= ar r
  12. BF_ENC= bf_enc.o
  13. # or use
  14. #DES_ENC= bx86-elf.o
  15. CFLAGS= $(INCLUDES) $(CFLAG)
  16. ASFLAGS= $(INCLUDES) $(ASFLAG)
  17. AFLAGS= $(ASFLAGS)
  18. GENERAL=Makefile
  19. TEST=bftest.c
  20. APPS=
  21. LIB=$(TOP)/libcrypto.a
  22. LIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c
  23. LIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o
  24. SRC= $(LIBSRC)
  25. EXHEADER= blowfish.h
  26. HEADER= bf_pi.h bf_locl.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. # ELF
  36. bx86-elf.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  37. (cd asm; $(PERL) bf-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@)
  38. # COFF
  39. bx86-cof.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  40. (cd asm; $(PERL) bf-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@)
  41. # a.out
  42. bx86-out.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  43. (cd asm; $(PERL) bf-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@)
  44. files:
  45. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  46. links:
  47. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  48. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  49. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  50. # We need to use force because 'install' matches 'INSTALL' on case
  51. # insensitive systems
  52. FRC.install:
  53. install: FRC.install
  54. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  55. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  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. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  67. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  68. dclean:
  69. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  70. mv -f Makefile.new $(MAKEFILE)
  71. clean:
  72. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  73. # DO NOT DELETE THIS LINE -- make depend depends on it.
  74. bf_cfb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  75. bf_cfb64.o: ../../include/openssl/opensslconf.h bf_cfb64.c bf_locl.h
  76. bf_ecb.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  77. bf_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  78. bf_ecb.o: bf_ecb.c bf_locl.h
  79. bf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  80. bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h
  81. bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  82. bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c
  83. bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/crypto.h
  84. bf_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h
  85. bf_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  86. bf_skey.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  87. bf_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  88. bf_skey.o: bf_locl.h bf_pi.h bf_skey.c