Makefile 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. #
  2. # OpenSSL/crypto/cast/Makefile
  3. #
  4. DIR= cast
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=
  9. CFLAG=-g
  10. MAKEFILE= Makefile
  11. AR= ar r
  12. CAST_ENC=c_enc.o
  13. CFLAGS= $(INCLUDES) $(CFLAG)
  14. ASFLAGS= $(INCLUDES) $(ASFLAG)
  15. AFLAGS= $(ASFLAGS)
  16. GENERAL=Makefile
  17. TEST=casttest.c
  18. APPS=
  19. LIB=$(TOP)/libcrypto.a
  20. LIBSRC=c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c
  21. LIBOBJ=c_skey.o c_ecb.o $(CAST_ENC) c_cfb64.o c_ofb64.o
  22. SRC= $(LIBSRC)
  23. EXHEADER= cast.h
  24. HEADER= cast_s.h cast_lcl.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. $(ARX) $(LIB) $(LIBOBJ)
  31. $(RANLIB) $(LIB) || echo Never mind.
  32. @touch lib
  33. # ELF
  34. cx86-elf.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  35. (cd asm; $(PERL) cast-586.pl elf $(CLAGS) $(PROCESSOR) > ../$@)
  36. # COFF
  37. cx86-cof.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  38. (cd asm; $(PERL) cast-586.pl coff $(CLAGS) $(PROCESSOR) > ../$@)
  39. # a.out
  40. cx86-out.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
  41. (cd asm; $(PERL) cast-586.pl a.out $(CLAGS) $(PROCESSOR) > ../$@)
  42. files:
  43. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  44. links:
  45. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  46. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  47. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  48. install:
  49. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  50. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  51. do \
  52. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  53. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  54. done;
  55. tags:
  56. ctags $(SRC)
  57. tests:
  58. lint:
  59. lint -DLINT $(INCLUDES) $(SRC)>fluff
  60. depend:
  61. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  62. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  63. dclean:
  64. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  65. mv -f Makefile.new $(MAKEFILE)
  66. clean:
  67. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  68. # DO NOT DELETE THIS LINE -- make depend depends on it.
  69. c_cfb64.o: ../../e_os.h ../../include/openssl/cast.h
  70. c_cfb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  71. c_cfb64.o: c_cfb64.c cast_lcl.h
  72. c_ecb.o: ../../e_os.h ../../include/openssl/cast.h
  73. c_ecb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  74. c_ecb.o: ../../include/openssl/opensslv.h c_ecb.c cast_lcl.h
  75. c_enc.o: ../../e_os.h ../../include/openssl/cast.h
  76. c_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  77. c_enc.o: c_enc.c cast_lcl.h
  78. c_ofb64.o: ../../e_os.h ../../include/openssl/cast.h
  79. c_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  80. c_ofb64.o: c_ofb64.c cast_lcl.h
  81. c_skey.o: ../../e_os.h ../../include/openssl/cast.h
  82. c_skey.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  83. c_skey.o: ../../include/openssl/fips.h ../../include/openssl/opensslconf.h
  84. c_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  85. c_skey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  86. c_skey.o: ../../include/openssl/symhacks.h c_skey.c cast_lcl.h cast_s.h