Makefile 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #
  2. # OpenSSL/crypto/rc5/Makefile
  3. #
  4. DIR= rc5
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=
  9. CFLAG=-g
  10. MAKEFILE= Makefile
  11. AR= ar r
  12. RC5_ENC= rc5_enc.o
  13. CFLAGS= $(INCLUDES) $(CFLAG)
  14. ASFLAGS= $(INCLUDES) $(ASFLAG)
  15. AFLAGS= $(ASFLAGS)
  16. GENERAL=Makefile
  17. TEST=rc5test.c
  18. APPS=
  19. LIB=$(TOP)/libcrypto.a
  20. LIBSRC=rc5_skey.c rc5_ecb.c rc5_enc.c rc5cfb64.c rc5ofb64.c
  21. LIBOBJ=rc5_skey.o rc5_ecb.o $(RC5_ENC) rc5cfb64.o rc5ofb64.o
  22. SRC= $(LIBSRC)
  23. EXHEADER= rc5.h
  24. HEADER= rc5_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. rc5-586.s: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  34. $(PERL) asm/rc5-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
  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. install:
  42. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  43. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  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. update: depend
  54. depend:
  55. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  56. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  57. dclean:
  58. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  59. mv -f Makefile.new $(MAKEFILE)
  60. clean:
  61. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  62. # DO NOT DELETE THIS LINE -- make depend depends on it.
  63. rc5_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  64. rc5_ecb.o: ../../include/openssl/rc5.h rc5_ecb.c rc5_locl.h
  65. rc5_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
  66. rc5_enc.o: rc5_enc.c rc5_locl.h
  67. rc5_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
  68. rc5_skey.o: rc5_locl.h rc5_skey.c
  69. rc5cfb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
  70. rc5cfb64.o: rc5_locl.h rc5cfb64.c
  71. rc5ofb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
  72. rc5ofb64.o: rc5_locl.h rc5ofb64.c