Makefile 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. $(ARX) $(LIB) $(LIBOBJ)
  31. $(RANLIB) $(LIB) || echo Never mind.
  32. @touch lib
  33. rmd-586.s: asm/rmd-586.pl ../perlasm/x86asm.pl
  34. $(PERL) asm/rmd-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
  35. files:
  36. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  37. links:
  38. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  39. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  40. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  41. install:
  42. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  43. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  44. do \
  45. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  46. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  47. done;
  48. tags:
  49. ctags $(SRC)
  50. tests:
  51. lint:
  52. lint -DLINT $(INCLUDES) $(SRC)>fluff
  53. depend:
  54. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  55. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  56. dclean:
  57. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  58. mv -f Makefile.new $(MAKEFILE)
  59. clean:
  60. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  61. # DO NOT DELETE THIS LINE -- make depend depends on it.
  62. rmd_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  63. rmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h
  64. rmd_dgst.o: ../md32_common.h rmd_dgst.c rmd_locl.h rmdconst.h
  65. rmd_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  66. rmd_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  67. rmd_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/ripemd.h
  68. rmd_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  69. rmd_one.o: ../../include/openssl/symhacks.h rmd_one.c