Makefile 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. CFLAGS= $(INCLUDES) $(CFLAG)
  14. ASFLAGS= $(INCLUDES) $(ASFLAG)
  15. AFLAGS= $(ASFLAGS)
  16. GENERAL=Makefile
  17. TEST=bftest.c
  18. APPS=
  19. LIB=$(TOP)/libcrypto.a
  20. LIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c
  21. LIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o
  22. SRC= $(LIBSRC)
  23. EXHEADER= blowfish.h
  24. HEADER= bf_pi.h bf_locl.h $(EXHEADER)
  25. ALL= $(GENERAL) $(SRC) $(HEADER)
  26. top:
  27. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  28. all: lib
  29. lib: $(LIBOBJ)
  30. $(AR) $(LIB) $(LIBOBJ)
  31. $(RANLIB) $(LIB) || echo Never mind.
  32. @touch lib
  33. bf-586.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  34. $(PERL) asm/bf-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
  35. files:
  36. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  37. links:
  38. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  39. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  40. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  41. # We need to use force because 'install' matches 'INSTALL' on case
  42. # insensitive systems
  43. FRC.install:
  44. install: FRC.install
  45. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  46. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  47. do \
  48. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  49. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  50. done;
  51. tags:
  52. ctags $(SRC)
  53. tests:
  54. lint:
  55. lint -DLINT $(INCLUDES) $(SRC)>fluff
  56. depend:
  57. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  58. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  59. dclean:
  60. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  61. mv -f Makefile.new $(MAKEFILE)
  62. clean:
  63. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  64. # DO NOT DELETE THIS LINE -- make depend depends on it.
  65. bf_cfb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  66. bf_cfb64.o: ../../include/openssl/opensslconf.h bf_cfb64.c bf_locl.h
  67. bf_ecb.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  68. bf_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  69. bf_ecb.o: bf_ecb.c bf_locl.h
  70. bf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  71. bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h
  72. bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  73. bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c
  74. bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  75. bf_skey.o: ../../include/openssl/opensslconf.h bf_locl.h bf_pi.h bf_skey.c