Makefile.ssl 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. #
  2. # SSLeay/crypto/rc5/Makefile
  3. #
  4. DIR= rc5
  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. RC5_ENC= rc5_enc.o
  19. # or use
  20. #DES_ENC= r586-elf.o
  21. CFLAGS= $(INCLUDES) $(CFLAG)
  22. GENERAL=Makefile
  23. TEST=rc5test.c
  24. APPS=
  25. LIB=$(TOP)/libcrypto.a
  26. LIBSRC=rc5_skey.c rc5_ecb.c rc5_enc.c rc5cfb64.c rc5ofb64.c
  27. LIBOBJ=rc5_skey.o rc5_ecb.o $(RC5_ENC) rc5cfb64.o rc5ofb64.o
  28. SRC= $(LIBSRC)
  29. EXHEADER= rc5.h
  30. HEADER= rc5_locl.h $(EXHEADER)
  31. ALL= $(GENERAL) $(SRC) $(HEADER)
  32. top:
  33. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  34. all: lib
  35. lib: $(LIBOBJ)
  36. $(AR) $(LIB) $(LIBOBJ)
  37. @echo You may get an error following this line. Please ignore.
  38. - $(RANLIB) $(LIB)
  39. @touch lib
  40. # elf
  41. asm/r586-elf.o: asm/r586unix.cpp
  42. $(CPP) -DELF -x c asm/r586unix.cpp | as -o asm/r586-elf.o
  43. # solaris
  44. asm/r586-sol.o: asm/r586unix.cpp
  45. $(CC) -E -DSOL asm/r586unix.cpp | sed 's/^#.*//' > asm/r586-sol.s
  46. as -o asm/r586-sol.o asm/r586-sol.s
  47. rm -f asm/r586-sol.s
  48. # a.out
  49. asm/r586-out.o: asm/r586unix.cpp
  50. $(CPP) -DOUT asm/r586unix.cpp | as -o asm/r586-out.o
  51. # bsdi
  52. asm/r586bsdi.o: asm/r586unix.cpp
  53. $(CPP) -DBSDI asm/r586unix.cpp | sed 's/ :/:/' | as -o asm/r586bsdi.o
  54. asm/r586unix.cpp: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  55. (cd asm; $(PERL) rc5-586.pl cpp >r586unix.cpp)
  56. files:
  57. $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
  58. links:
  59. @$(TOP)/util/point.sh Makefile.ssl Makefile
  60. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  61. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  62. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  63. install:
  64. @for i in $(EXHEADER) ; \
  65. do \
  66. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  67. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  68. done;
  69. tags:
  70. ctags $(SRC)
  71. tests:
  72. lint:
  73. lint -DLINT $(INCLUDES) $(SRC)>fluff
  74. depend:
  75. $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
  76. dclean:
  77. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  78. mv -f Makefile.new $(MAKEFILE)
  79. clean:
  80. rm -f asm/r586unix.cpp *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  81. # DO NOT DELETE THIS LINE -- make depend depends on it.
  82. rc5_ecb.o: ../../include/openssl/opensslv.h ../../include/openssl/rc5.h
  83. rc5_ecb.o: rc5_ecb.c rc5_locl.h
  84. rc5_enc.o: ../../include/openssl/rc5.h rc5_enc.c rc5_locl.h
  85. rc5_skey.o: ../../include/openssl/rc5.h rc5_locl.h rc5_skey.c
  86. rc5cfb64.o: ../../include/openssl/rc5.h rc5_locl.h rc5cfb64.c
  87. rc5ofb64.o: ../../include/openssl/rc5.h rc5_locl.h rc5ofb64.c