Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. LIB=$(TOP)/libcrypto.a
  18. LIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c
  19. LIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o
  20. SRC= $(LIBSRC)
  21. HEADER= bf_pi.h bf_locl.h
  22. ALL= $(GENERAL) $(SRC) $(HEADER)
  23. top:
  24. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  25. all: lib
  26. lib: $(LIBOBJ)
  27. $(AR) $(LIB) $(LIBOBJ)
  28. $(RANLIB) $(LIB) || echo Never mind.
  29. @touch lib
  30. bf-586.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  31. $(PERL) asm/bf-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
  32. files:
  33. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  34. tags:
  35. ctags $(SRC)
  36. tests:
  37. lint:
  38. lint -DLINT $(INCLUDES) $(SRC)>fluff
  39. depend:
  40. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  41. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  42. dclean:
  43. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  44. mv -f Makefile.new $(MAKEFILE)
  45. clean:
  46. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  47. # DO NOT DELETE THIS LINE -- make depend depends on it.
  48. bf_cfb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  49. bf_cfb64.o: ../../include/openssl/opensslconf.h bf_cfb64.c bf_locl.h
  50. bf_ecb.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  51. bf_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  52. bf_ecb.o: bf_ecb.c bf_locl.h
  53. bf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  54. bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h
  55. bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  56. bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c
  57. bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
  58. bf_skey.o: ../../include/openssl/opensslconf.h bf_locl.h bf_pi.h bf_skey.c