"Fossies" - the Fresh Open Source Software Archive

Member "cvs-1.11.23/zlib/Makefile.in" (4 Apr 2005, 7324 Bytes) of package /linux/misc/old/cvs-1.11.23.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Makefile for zlib
    2 # Copyright (C) 1995-2002 Jean-loup Gailly.
    3 # For conditions of distribution and use, see copyright notice in zlib.h 
    4 
    5 srcdir     = @srcdir@
    6 top_srcdir = @top_srcdir@
    7 VPATH      = @srcdir@
    8 
    9 # To compile and test, type:
   10 #   ./configure; make test
   11 # The call of configure is optional if you don't have special requirements
   12 # If you wish to build zlib as a shared library, use: ./configure -s
   13 
   14 # To install /usr/local/lib/libz.* and /usr/local/include/zlib.h, type:
   15 #    make install
   16 # To install in $HOME instead of /usr/local, use:
   17 #    make install prefix=$HOME
   18 
   19 CC=@CC@
   20 
   21 CFLAGS=@CFLAGS@
   22 #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
   23 #CFLAGS=-g -DDEBUG
   24 #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
   25 #           -Wstrict-prototypes -Wmissing-prototypes
   26 
   27 LDFLAGS=@LDFLAGS@
   28 LDSHARED=$(CC)
   29 CPP=$(CC) -E
   30 
   31 VER=1.1.4
   32 LIBS=libz.a
   33 SHAREDLIB=libz.so
   34 
   35 # For CVS, separate AR and ARFLAGS.
   36 AR=ar
   37 RANLIB=@RANLIB@
   38 AMTAR=@AMTAR@
   39 SHELL=/bin/sh
   40 
   41 prefix=@prefix@
   42 exec_prefix = $(prefix)
   43 libdir = ${exec_prefix}/lib
   44 includedir = ${prefix}/include
   45 
   46 OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
   47        zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
   48 
   49 OBJA =
   50 # to use the asm code: make OBJA=match.o
   51 
   52 TEST_OBJS = example.o minigzip.o
   53 
   54 DISTFILES = README FAQ INDEX ChangeLog configure Makefile.* *.[ch] *.mms \
   55   algorithm.txt zlib.3 zlib.html \
   56   msdos/Make*[a-z0-9] msdos/zlib.def msdos/zlib.rc \
   57   nt/Make*[a-z0-9] nt/zlib.dnt amiga/Make*.??? os2/M*.os2 os2/zlib.def \
   58   contrib/RE*.contrib contrib/*.txt contrib/asm386/*.asm contrib/asm386/*.c \
   59   contrib/asm386/*.bat contrib/asm386/zlibvc.d?? contrib/asm[56]86/*.?86 \
   60   contrib/asm[56]86/*.S contrib/iostream/*.cpp \
   61   contrib/iostream/*.h  contrib/iostream2/*.h contrib/iostream2/*.cpp \
   62   contrib/untgz/Makefile contrib/untgz/*.c contrib/untgz/*.w32 \
   63   contrib/minizip/[CM]*[pe] contrib/minizip/*.[ch] contrib/minizip/*.[td]?? \
   64   contrib/delphi*/*.??? \
   65   Make_vms.com libz.dep libz.dsp libz.mak .cvsignore
   66 
   67 # for CVS's distdir & Makefile targets
   68 subdir = zlib
   69 
   70 # For CVS, just build libz.a
   71 all: libz.a
   72 
   73 # To reenable make test
   74 all-original: all minigzip example
   75 
   76 check test: all-original
   77 	@LD_LIBRARY_PATH=.:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \
   78 	echo hello world | ./minigzip | ./minigzip -d || \
   79 	  echo '		*** minigzip test FAILED ***' ; \
   80 	if ./example; then \
   81 	  echo '		*** zlib test OK ***'; \
   82 	else \
   83 	  echo '		*** zlib test FAILED ***'; \
   84 	fi
   85 
   86 # For CVS, use an explict rc after $(AR).
   87 libz.a: $(OBJS) $(OBJA)
   88 	$(AR) rc $@ $(OBJS) $(OBJA)
   89 	-@ ($(RANLIB) $@ || true) >/dev/null 2>&1
   90 
   91 match.o: match.S
   92 	$(CPP) match.S > _match.s
   93 	$(CC) -c _match.s
   94 	mv _match.o match.o
   95 	rm -f _match.s
   96 
   97 $(SHAREDLIB).$(VER): $(OBJS)
   98 	$(LDSHARED) -o $@ $(OBJS)
   99 	rm -f $(SHAREDLIB) $(SHAREDLIB).1
  100 	ln -s $@ $(SHAREDLIB)
  101 	ln -s $@ $(SHAREDLIB).1
  102 
  103 example: example.o $(LIBS)
  104 	$(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS) $(LIBS)
  105 
  106 minigzip: minigzip.o $(LIBS)
  107 	$(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) $(LIBS)
  108 
  109 # For CVS, make install dependant on all and remove the uninstall target.
  110 install: all
  111 uninstall:
  112 .PHONY: install uninstall
  113 
  114 # Remove targets for CVS
  115 dvi info pdf ps:
  116 .PHONY: dvi info pdf ps
  117 installcheck:
  118 .PHONY: installcheck
  119 
  120 #install: $(LIBS)
  121 #	-@if [ ! -d $(includedir)  ]; then mkdir $(includedir); fi
  122 #	-@if [ ! -d $(libdir) ]; then mkdir $(libdir); fi
  123 #	cp zlib.h zconf.h $(includedir)
  124 #	chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h
  125 #	cp $(LIBS) $(libdir)
  126 #	cd $(libdir); chmod 755 $(LIBS)
  127 #	-@(cd $(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
  128 #	cd $(libdir); if test -f $(SHAREDLIB).$(VER); then \
  129 #	  rm -f $(SHAREDLIB) $(SHAREDLIB).1; \
  130 #	  ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB); \
  131 #	  ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB).1; \
  132 #	  (ldconfig || true)  >/dev/null 2>&1; \
  133 #	fi
  134 # The ranlib in install is needed on NeXTSTEP which checks file times
  135 # ldconfig is for Linux
  136 
  137 #uninstall:
  138 #	cd $(includedir); \
  139 #	v=$(VER); \
  140 #	if test -f zlib.h; then \
  141 #	  v=`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`; \
  142 #          rm -f zlib.h zconf.h; \
  143 #	fi; \
  144 #	cd $(libdir); rm -f libz.a; \
  145 #	if test -f $(SHAREDLIB).$$v; then \
  146 #	  rm -f $(SHAREDLIB).$$v $(SHAREDLIB) $(SHAREDLIB).1; \
  147 #	fi
  148 
  149 installdirs:
  150 .PHONY: installdirs
  151 
  152 # distdir added for CVS.
  153 top_builddir = ..
  154 PACKAGE = @PACKAGE@
  155 VERSION = @VERSION@
  156 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
  157 distdir:
  158 	@d=$(srcdir); \
  159 	for file in `cd $$d; echo $(DISTFILES)`; do \
  160 	  if test -d $(distdir)/`dirname $$file`; then \
  161 	    :; \
  162 	  else \
  163 	    mkdir $(distdir)/`dirname $$file`; \
  164 	  fi; \
  165 	  if test -d $$d/$$file; then \
  166 	    cp -pR $$d/$$file $(distdir) \
  167 	    || exit 1; \
  168 	  else \
  169 	    test -f $(distdir)/$$file \
  170 	    || cp -p $$d/$$file $(distdir)/$$file \
  171 	    || exit 1; \
  172 	  fi; \
  173 	done
  174 .PHONY: distdir
  175 
  176 # mostlyclean added for CVS.
  177 mostlyclean clean:
  178 	rm -f *.o *~ example minigzip libz.a libz.so* foo.gz so_locations \
  179 	   _match.s maketree
  180 .PHONY: mostlyclean clean
  181 
  182 # distclean and realclean and maintainer-clean added for CVS.
  183 distclean realclean maintainer-clean:	clean
  184 	rm -f Makefile
  185 .PHONY: distclean realclean maintainer-clean
  186 
  187 zip:
  188 	mv Makefile Makefile~; cp -p Makefile.in Makefile
  189 	rm -f test.c ztest*.c contrib/minizip/test.zip
  190 	v=`sed -n -e 's/\.//g' -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\
  191 	zip -ul9 zlib$$v $(DISTFILES)
  192 	mv Makefile~ Makefile
  193 
  194 dist:
  195 	mv Makefile Makefile~; cp -p Makefile.in Makefile
  196 	rm -f test.c ztest*.c contrib/minizip/test.zip
  197 	d=zlib-`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\
  198 	rm -f $$d.tar.gz; \
  199 	if test ! -d ../$$d; then rm -f ../$$d; ln -s `pwd` ../$$d; fi; \
  200 	files=""; \
  201 	for f in $(DISTFILES); do files="$$files $$d/$$f"; done; \
  202 	cd ..; \
  203 	GZIP=-9 $(AMTAR) chofz $$d/$$d.tar.gz $$files; \
  204 	if test ! -d $$d; then rm -f $$d; fi
  205 	mv Makefile~ Makefile
  206 
  207 .PHONY: tags
  208 tags: TAGS
  209 
  210 TAGS:
  211 	tags=; \
  212 	here=`pwd`; \
  213 	list=`(echo *.[ch] && cd $(srcdir) && echo *.[ch]) |sort |uniq`; \
  214 	unique=`for i in $$list; do \
  215 	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  216 	  done | \
  217 	  $(AWK) '    { files[$$0] = 1; } \
  218 	       END { for (i in files) print i; }'`; \
  219 	test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  220 	  || etags $(ETAGS_ARGS) $$tags $$unique $(LISP)
  221 
  222 # Makefile target added for CVS.
  223 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
  224 	cd $(top_builddir) \
  225 	  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  226 
  227 depend:
  228 	makedepend -- $(CFLAGS) -- *.[ch]
  229 
  230 # DO NOT DELETE THIS LINE -- make depend depends on it.
  231 
  232 adler32.o: zlib.h zconf.h
  233 compress.o: zlib.h zconf.h
  234 crc32.o: zlib.h zconf.h
  235 deflate.o: deflate.h zutil.h zlib.h zconf.h
  236 example.o: zlib.h zconf.h
  237 gzio.o: zutil.h zlib.h zconf.h
  238 infblock.o: infblock.h inftrees.h infcodes.h infutil.h zutil.h zlib.h zconf.h
  239 infcodes.o: zutil.h zlib.h zconf.h
  240 infcodes.o: inftrees.h infblock.h infcodes.h infutil.h inffast.h
  241 inffast.o: zutil.h zlib.h zconf.h inftrees.h
  242 inffast.o: infblock.h infcodes.h infutil.h inffast.h
  243 inflate.o: zutil.h zlib.h zconf.h infblock.h
  244 inftrees.o: zutil.h zlib.h zconf.h inftrees.h
  245 infutil.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h
  246 minigzip.o:  zlib.h zconf.h 
  247 trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
  248 uncompr.o: zlib.h zconf.h
  249 zutil.o: zutil.h zlib.h zconf.h