Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #
  2. # OpenSSL/crypto/ripemd/Makefile
  3. #
  4. DIR= ripemd
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=
  9. CFLAG=-g
  10. MAKEFILE= Makefile
  11. AR= ar r
  12. RIP_ASM_OBJ=
  13. CFLAGS= $(INCLUDES) $(CFLAG)
  14. ASFLAGS= $(INCLUDES) $(ASFLAG)
  15. AFLAGS= $(ASFLAGS)
  16. GENERAL=Makefile
  17. TEST=rmdtest.c
  18. APPS=
  19. LIB=$(TOP)/libcrypto.a
  20. LIBSRC=rmd_dgst.c rmd_one.c
  21. LIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ)
  22. SRC= $(LIBSRC)
  23. EXHEADER= ripemd.h
  24. HEADER= rmd_locl.h rmdconst.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. # ELF
  34. rm86-elf.s: asm/rmd-586.pl ../perlasm/x86asm.pl
  35. (cd asm; $(PERL) rmd-586.pl elf $(CFLAGS) > ../$@)
  36. # COFF
  37. rm86-cof.s: asm/rmd-586.pl ../perlasm/x86asm.pl
  38. (cd asm; $(PERL) rmd-586.pl coff $(CFLAGS) > ../$@)
  39. # a.out
  40. rm86-out.s: asm/rmd-586.pl ../perlasm/x86asm.pl
  41. (cd asm; $(PERL) rmd-586.pl a.out $(CFLAGS) > ../$@)
  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. rmd_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  70. rmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h
  71. rmd_dgst.o: ../md32_common.h rmd_dgst.c rmd_locl.h rmdconst.h
  72. rmd_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  73. rmd_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  74. rmd_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/ripemd.h
  75. rmd_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  76. rmd_one.o: ../../include/openssl/symhacks.h rmd_one.c