Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #
  2. # crypto/seed/Makefile
  3. #
  4. DIR= seed
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=
  9. CFLAG=-g
  10. MAKEFILE= Makefile
  11. AR= ar r
  12. CFLAGS= $(INCLUDES) $(CFLAG)
  13. GENERAL=Makefile
  14. TEST=
  15. APPS=
  16. LIB=$(TOP)/libcrypto.a
  17. LIBSRC=seed.c seed_ecb.c seed_cbc.c seed_cfb.c seed_ofb.c
  18. LIBOBJ=seed.o seed_ecb.o seed_cbc.o seed_cfb.o seed_ofb.o
  19. SRC= $(LIBSRC)
  20. EXHEADER= seed.h
  21. HEADER= seed_locl.h $(EXHEADER)
  22. ALL= $(GENERAL) $(SRC) $(HEADER)
  23. top:
  24. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  25. all: lib
  26. lib: $(LIBOBJ)
  27. $(ARX) $(LIB) $(LIBOBJ)
  28. $(RANLIB) $(LIB) || echo Never mind.
  29. @touch lib
  30. files:
  31. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  32. links:
  33. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  34. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  35. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  36. install:
  37. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  38. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  39. do \
  40. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  41. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  42. done;
  43. tags:
  44. ctags $(SRC)
  45. tests:
  46. lint:
  47. lint -DLINT $(INCLUDES) $(SRC)>fluff
  48. depend:
  49. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  50. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  51. dclean:
  52. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  53. mv -f Makefile.new $(MAKEFILE)
  54. clean:
  55. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  56. # DO NOT DELETE THIS LINE -- make depend depends on it.
  57. seed.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  58. seed.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  59. seed.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
  60. seed.o: ../../include/openssl/seed.h ../../include/openssl/stack.h
  61. seed.o: ../../include/openssl/symhacks.h seed.c seed_locl.h
  62. seed_cbc.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  63. seed_cbc.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  64. seed_cbc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  65. seed_cbc.o: ../../include/openssl/safestack.h ../../include/openssl/seed.h
  66. seed_cbc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  67. seed_cbc.o: seed_cbc.c
  68. seed_cfb.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  69. seed_cfb.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  70. seed_cfb.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  71. seed_cfb.o: ../../include/openssl/safestack.h ../../include/openssl/seed.h
  72. seed_cfb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  73. seed_cfb.o: seed_cfb.c
  74. seed_ecb.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  75. seed_ecb.o: ../../include/openssl/opensslconf.h
  76. seed_ecb.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  77. seed_ecb.o: ../../include/openssl/safestack.h ../../include/openssl/seed.h
  78. seed_ecb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  79. seed_ecb.o: seed_ecb.c
  80. seed_ofb.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  81. seed_ofb.o: ../../include/openssl/modes.h ../../include/openssl/opensslconf.h
  82. seed_ofb.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  83. seed_ofb.o: ../../include/openssl/safestack.h ../../include/openssl/seed.h
  84. seed_ofb.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
  85. seed_ofb.o: seed_ofb.c