Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. LIB=$(TOP)/libcrypto.a
  18. LIBSRC=rc5_skey.c rc5_ecb.c rc5_enc.c rc5cfb64.c rc5ofb64.c
  19. LIBOBJ=rc5_skey.o rc5_ecb.o $(RC5_ENC) rc5cfb64.o rc5ofb64.o
  20. SRC= $(LIBSRC)
  21. HEADER= rc5_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. rc5-586.s: asm/rc5-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  31. $(PERL) asm/rc5-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
  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. rc5_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  49. rc5_ecb.o: ../../include/openssl/rc5.h rc5_ecb.c rc5_locl.h
  50. rc5_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
  51. rc5_enc.o: rc5_enc.c rc5_locl.h
  52. rc5_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
  53. rc5_skey.o: rc5_locl.h rc5_skey.c
  54. rc5cfb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
  55. rc5cfb64.o: rc5_locl.h rc5cfb64.c
  56. rc5ofb64.o: ../../include/openssl/opensslconf.h ../../include/openssl/rc5.h
  57. rc5ofb64.o: rc5_locl.h rc5ofb64.c