Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #
  2. # crypto/whrlpool/Makefile
  3. #
  4. DIR= whrlpool
  5. TOP= ../..
  6. CC= cc
  7. CPP= $(CC) -E
  8. INCLUDES=
  9. CFLAG=-g
  10. MAKEFILE= Makefile
  11. AR= ar r
  12. WP_ASM_OBJ=wp_block.o
  13. CFLAGS= $(INCLUDES) $(CFLAG)
  14. ASFLAGS= $(INCLUDES) $(ASFLAG)
  15. AFLAGS= $(ASFLAGS)
  16. GENERAL=Makefile
  17. TEST=wp_test.c
  18. APPS=
  19. LIB=$(TOP)/libcrypto.a
  20. LIBSRC=wp_dgst.c wp_block.c
  21. LIBOBJ=wp_dgst.o $(WP_ASM_OBJ)
  22. SRC= $(LIBSRC)
  23. EXHEADER= whrlpool.h
  24. HEADER= wp_locl.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. wp-mmx.s: asm/wp-mmx.pl ../perlasm/x86asm.pl
  34. $(PERL) asm/wp-mmx.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
  35. wp-x86_64.s: asm/wp-x86_64.pl
  36. $(PERL) asm/wp-x86_64.pl $(PERLASM_SCHEME) > $@
  37. $(LIBOBJ): $(LIBSRC)
  38. files:
  39. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  40. links:
  41. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  42. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  43. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  44. install:
  45. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  46. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  47. do \
  48. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  49. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  50. done;
  51. tags:
  52. ctags $(SRC)
  53. tests:
  54. lint:
  55. lint -DLINT $(INCLUDES) $(SRC)>fluff
  56. depend:
  57. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  58. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  59. dclean:
  60. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  61. mv -f Makefile.new $(MAKEFILE)
  62. clean:
  63. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  64. # DO NOT DELETE THIS LINE -- make depend depends on it.
  65. wp_block.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  66. wp_block.o: ../../include/openssl/whrlpool.h wp_block.c wp_locl.h
  67. wp_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  68. wp_dgst.o: ../../include/openssl/whrlpool.h wp_dgst.c wp_locl.h