Makefile.ssl 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #
  2. # SSLeay/crypto/idea/Makefile
  3. #
  4. DIR= idea
  5. TOP= ../..
  6. CC= cc
  7. INCLUDES=
  8. CFLAG=-g
  9. INSTALL_PREFIX=
  10. OPENSSLDIR= /usr/local/ssl
  11. INSTALLTOP=/usr/local/ssl
  12. MAKE= make -f Makefile.ssl
  13. MAKEDEPPROG= makedepend
  14. MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
  15. MAKEFILE= Makefile.ssl
  16. AR= ar r
  17. CFLAGS= $(INCLUDES) $(CFLAG)
  18. GENERAL=Makefile
  19. TEST=ideatest.c
  20. APPS=
  21. LIB=$(TOP)/libcrypto.a
  22. LIBSRC=i_cbc.c i_cfb64.c i_ofb64.c i_ecb.c i_skey.c
  23. LIBOBJ=i_cbc.o i_cfb64.o i_ofb64.o i_ecb.o i_skey.o
  24. SRC= $(LIBSRC)
  25. EXHEADER= idea.h
  26. HEADER= idea_lcl.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. $(AR) $(LIB) $(LIBOBJ)
  33. $(RANLIB) $(LIB) || echo Never mind.
  34. @touch lib
  35. files:
  36. $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
  37. links:
  38. @sh $(TOP)/util/point.sh Makefile.ssl Makefile
  39. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  40. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  41. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  42. install:
  43. @for i in $(EXHEADER) ; \
  44. do \
  45. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  46. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  47. done;
  48. tags:
  49. ctags $(SRC)
  50. tests:
  51. lint:
  52. lint -DLINT $(INCLUDES) $(SRC)>fluff
  53. depend:
  54. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  55. dclean:
  56. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  57. mv -f Makefile.new $(MAKEFILE)
  58. clean:
  59. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  60. # DO NOT DELETE THIS LINE -- make depend depends on it.
  61. i_cbc.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h
  62. i_cbc.o: i_cbc.c idea_lcl.h
  63. i_cfb64.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h
  64. i_cfb64.o: i_cfb64.c idea_lcl.h
  65. i_ecb.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h
  66. i_ecb.o: ../../include/openssl/opensslv.h i_ecb.c idea_lcl.h
  67. i_ofb64.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h
  68. i_ofb64.o: i_ofb64.c idea_lcl.h
  69. i_skey.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h
  70. i_skey.o: i_skey.c idea_lcl.h