Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. $(AR) $(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. update: depend
  57. depend:
  58. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  59. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
  60. dclean:
  61. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  62. mv -f Makefile.new $(MAKEFILE)
  63. clean:
  64. rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  65. # DO NOT DELETE THIS LINE -- make depend depends on it.
  66. wp_block.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  67. wp_block.o: ../../include/openssl/whrlpool.h wp_block.c wp_locl.h
  68. wp_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
  69. wp_dgst.o: ../../include/openssl/whrlpool.h wp_dgst.c wp_locl.h