2
0

Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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/e_os2.h ../../include/openssl/opensslconf.h
  58. seed.o: ../../include/openssl/seed.h seed.c seed_locl.h
  59. seed_cbc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  60. seed_cbc.o: ../../include/openssl/seed.h seed_cbc.c seed_locl.h
  61. seed_cfb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  62. seed_cfb.o: ../../include/openssl/seed.h seed_cfb.c seed_locl.h
  63. seed_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/seed.h
  64. seed_ecb.o: seed_ecb.c
  65. seed_ofb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  66. seed_ofb.o: ../../include/openssl/seed.h seed_locl.h seed_ofb.c