1219820Sjeff# 2219820Sjeff# OpenSSL/crypto/comp/Makefile 3219820Sjeff# 4219820Sjeff 5289578ShselaskyDIR= comp 6289578ShselaskyTOP= ../.. 7219820SjeffCC= cc 8219820SjeffINCLUDES= -I.. -I$(TOP) -I../../include 9219820SjeffCFLAG=-g 10219820SjeffMAKEFILE= Makefile 11219820SjeffAR= ar r 12219820Sjeff 13219820SjeffCFLAGS= $(INCLUDES) $(CFLAG) 14219820Sjeff 15219820SjeffGENERAL=Makefile 16219820SjeffTEST= 17219820SjeffAPPS= 18219820Sjeff 19219820SjeffLIB=$(TOP)/libcrypto.a 20219820SjeffLIBSRC= comp_lib.c comp_err.c \ 21219820Sjeff c_rle.c c_zlib.c 22219820Sjeff 23219820SjeffLIBOBJ= comp_lib.o comp_err.o \ 24219820Sjeff c_rle.o c_zlib.o 25219820Sjeff 26219820SjeffSRC= $(LIBSRC) 27219820Sjeff 28219820SjeffEXHEADER= comp.h 29289644ShselaskyHEADER= $(EXHEADER) 30289644Shselasky 31219820SjeffALL= $(GENERAL) $(SRC) $(HEADER) 32219820Sjeff 33219820Sjefftop: 34219820Sjeff (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) 35278681Shselasky 36219820Sjeffall: lib 37219820Sjeff 38289578Shselaskylib: $(LIBOBJ) 39289578Shselasky $(ARX) $(LIB) $(LIBOBJ) 40219820Sjeff $(RANLIB) $(LIB) || echo Never mind. 41289578Shselasky @touch lib 42219820Sjeff 43219820Sjefffiles: 44219820Sjeff $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 45219820Sjeff 46219820Sjefflinks: 47219820Sjeff @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 48289578Shselasky @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 49219820Sjeff @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 50219820Sjeff 51219820Sjeffinstall: 52219820Sjeff @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... 53219820Sjeff @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ 54219820Sjeff do \ 55289578Shselasky (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 56219820Sjeff chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 57219820Sjeff done; 58219820Sjeff 59219820Sjefftags: 60219820Sjeff ctags $(SRC) 61219820Sjeff 62289578Shselaskytests: 63219820Sjeff 64219820Sjefflint: 65219820Sjeff lint -DLINT $(INCLUDES) $(SRC)>fluff 66219820Sjeff 67219820Sjeffdepend: 68219820Sjeff @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... 69289578Shselasky $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(LIBSRC) 70289578Shselasky 71289578Shselaskydclean: 72289578Shselasky $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 73289578Shselasky mv -f Makefile.new $(MAKEFILE) 74289578Shselasky 75289578Shselaskyclean: 76289578Shselasky rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 77289578Shselasky 78289578Shselasky# DO NOT DELETE THIS LINE -- make depend depends on it. 79289578Shselasky 80289578Shselaskyc_rle.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 81289578Shselaskyc_rle.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h 82289578Shselaskyc_rle.o: ../../include/openssl/e_os2.h ../../include/openssl/obj_mac.h 83289578Shselaskyc_rle.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 84289578Shselaskyc_rle.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 85289578Shselaskyc_rle.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 86289578Shselaskyc_rle.o: ../../include/openssl/symhacks.h c_rle.c 87289578Shselaskyc_zlib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 88289578Shselaskyc_zlib.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h 89289578Shselaskyc_zlib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 90270710Shselaskyc_zlib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h 91c_zlib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 92c_zlib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 93c_zlib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 94c_zlib.o: ../../include/openssl/symhacks.h c_zlib.c 95comp_err.o: ../../include/openssl/bio.h ../../include/openssl/comp.h 96comp_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 97comp_err.o: ../../include/openssl/err.h ../../include/openssl/lhash.h 98comp_err.o: ../../include/openssl/opensslconf.h 99comp_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 100comp_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 101comp_err.o: ../../include/openssl/symhacks.h comp_err.c 102comp_lib.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h 103comp_lib.o: ../../include/openssl/comp.h ../../include/openssl/crypto.h 104comp_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/obj_mac.h 105comp_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h 106comp_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 107comp_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 108comp_lib.o: ../../include/openssl/symhacks.h comp_lib.c 109