Makefile 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. #
  2. # OpenSSL/crypto/comp/Makefile
  3. #
  4. DIR= comp
  5. TOP= ../..
  6. CC= cc
  7. INCLUDES= -I.. -I$(TOP) -I../../include
  8. CFLAG=-g
  9. MAKEFILE= Makefile
  10. AR= ar r
  11. CFLAGS= $(INCLUDES) $(CFLAG)
  12. GENERAL=Makefile
  13. TEST=
  14. APPS=
  15. LIB=$(TOP)/libcrypto.a
  16. LIBSRC= comp_lib.c comp_err.c \
  17. c_rle.c c_zlib.c
  18. LIBOBJ= comp_lib.o comp_err.o \
  19. c_rle.o c_zlib.o
  20. SRC= $(LIBSRC)
  21. EXHEADER= comp.h
  22. HEADER= $(EXHEADER)
  23. ALL= $(GENERAL) $(SRC) $(HEADER)
  24. top:
  25. (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
  26. all: lib
  27. lib: $(LIBOBJ)
  28. $(ARX) $(LIB) $(LIBOBJ)
  29. $(RANLIB) $(LIB) || echo Never mind.
  30. @touch lib
  31. files:
  32. $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
  33. links:
  34. @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
  35. @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
  36. @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
  37. install:
  38. @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
  39. @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
  40. do \
  41. (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
  42. chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
  43. done;
  44. tags:
  45. ctags $(SRC)
  46. tests:
  47. lint:
  48. lint -DLINT $(INCLUDES) $(SRC)>fluff
  49. depend:
  50. @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
  51. $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC)
  52. dclean:
  53. $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
  54. mv -f Makefile.new $(MAKEFILE)
  55. clean:
  56. rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
  57. # DO NOT DELETE THIS LINE -- make depend depends on it.
  58. c_rle.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  59. c_rle.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h
  60. c_rle.o: ../../include/openssl/e_os2.h ../../include/openssl/obj_mac.h
  61. c_rle.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  62. c_rle.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  63. c_rle.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  64. c_rle.o: ../../include/openssl/symhacks.h c_rle.c
  65. c_zlib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  66. c_zlib.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h
  67. c_zlib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
  68. c_zlib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
  69. c_zlib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  70. c_zlib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  71. c_zlib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  72. c_zlib.o: ../../include/openssl/symhacks.h c_zlib.c
  73. comp_err.o: ../../include/openssl/bio.h ../../include/openssl/comp.h
  74. comp_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
  75. comp_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
  76. comp_err.o: ../../include/openssl/opensslconf.h
  77. comp_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  78. comp_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  79. comp_err.o: ../../include/openssl/symhacks.h comp_err.c
  80. comp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
  81. comp_lib.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h
  82. comp_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/obj_mac.h
  83. comp_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h
  84. comp_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
  85. comp_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
  86. comp_lib.o: ../../include/openssl/symhacks.h comp_lib.c