Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. LIB=$(TOP)/libcrypto.a
  18. LIBSRC=rmd_dgst.c rmd_one.c
  19. LIBOBJ=rmd_dgst.o rmd_one.o $(RMD160_ASM_OBJ)
  20. SRC= $(LIBSRC)
  21. HEADER= rmd_locl.h rmdconst.h
  22. ALL= $(GENERAL) $(SRC) $(HEADER)
  23. top:
  24. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  25. all: lib
  26. lib: $(LIBOBJ)
  27. $(AR) $(LIB) $(LIBOBJ)
  28. $(RANLIB) $(LIB) || echo Never mind.
  29. @touch lib
  30. rmd-586.s: asm/rmd-586.pl ../perlasm/x86asm.pl
  31. $(PERL) asm/rmd-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
  32. files:
  33. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  34. tags:
  35. ctags $(SRC)
  36. tests:
  37. lint:
  38. lint -DLINT $(INCLUDES) $(SRC)>fluff
  39. depend:
  40. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  41. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  42. dclean:
  43. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  44. mv -f Makefile.new $(MAKEFILE)
  45. clean:
  46. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  47. # DO NOT DELETE THIS LINE -- make depend depends on it.
  48. rmd_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  49. rmd_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ripemd.h
  50. rmd_dgst.o: ../md32_common.h rmd_dgst.c rmd_locl.h rmdconst.h
  51. rmd_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  52. rmd_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
  53. rmd_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/ripemd.h
  54. rmd_one.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  55. rmd_one.o: ../../include/openssl/symhacks.h rmd_one.c