"Fossies" - the Fresh Open Source Software Archive

Member "mod_gzip-1.3.26.1a/Makefile.tmpl" (1 Oct 2002, 2042 Bytes) of package /linux/www/apache_httpd_modules/old/mod_gzip-1.3.26.1a.tgz:


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 
    2 LIB=libgzip.$(LIBEXT)
    3 
    4 OBJS=\
    5      mod_gzip.o \
    6      mod_gzip_compress.o mod_gzip_debug.o
    7 OBJS_PIC=\
    8      mod_gzip.lo \
    9      mod_gzip_compress.lo mod_gzip_debug.lo
   10 
   11 all: lib
   12 
   13 lib: $(LIB)
   14 
   15 libgzip.a: $(OBJS)
   16 	rm -f $@
   17 	ar cr $@ $(OBJS)
   18 	$(RANLIB) $@
   19 
   20 libgzip.so: $(OBJS_PIC)
   21 	rm -f $@
   22 	$(LD_SHLIB) $(LDFLAGS_SHLIB) -o $@ $(OBJS_PIC) $(LIBS_SHLIB)
   23 
   24 libgzip.dll: $(OBJS_PIC) mod_gzip.def
   25 	if [ "x$(OS)" = "xCygwin" ]; then \
   26 	    rm -f $@; \
   27 	    if [ -f "$(SRCDIR)/$(SHCORE_IMPLIB)" ]; then \
   28 	    $(LD_SHLIB) $(LDFLAGS_SHLIB) -o $*.dll $(OBJS_PIC) $(LIBS_SHLIB) \
   29 	    $(SRCDIR)/$(SHCORE_IMPLIB) $(LIBS1); \
   30 	    fi \
   31 	else \
   32 	    $(LD_SHLIB) $(LDFLAGS_SHLIB) -o $* $(OBJS_PIC) $(LIBS_SHLIB); \
   33 	    emxbind -b -q -s -h0 -dmod_gzip.def $* && \
   34 	    rm $*; \
   35 	fi
   36 
   37 .SUFFIXES: .o .lo .dll
   38 
   39 .c.o:
   40 	$(CC) -c $(INCLUDES) $(CFLAGS) $<
   41 
   42 .c.lo:
   43 	$(CC) -c $(INCLUDES) $(CFLAGS) $(CFLAGS_SHLIB) $< && mv $*.o $*.lo
   44 
   45 clean:
   46 	rm -f $(OBJS) $(OBJS_PIC) $(LIB)
   47 
   48 distclean: clean
   49 	-rm -f Makefile
   50 
   51 # We really don't expect end users to use this rule.  It works only with
   52 # gcc, and rebuilds Makefile.tmpl.  You have to re-run Configure after
   53 # using it.
   54 depend:
   55 	cp Makefile.tmpl Makefile.tmpl.bak \
   56 	    && sed -ne '1,/^# DO NOT REMOVE/p' Makefile.tmpl > Makefile.new \
   57 	    && gcc -MM $(INCLUDES) $(CFLAGS) *.c >> Makefile.new \
   58 	    && sed -e '1,$$s: $(INCDIR)/: $$(INCDIR)/:g' \
   59 	           -e '1,$$s: $(OSDIR)/: $$(OSDIR)/:g' Makefile.new \
   60 	        > Makefile.tmpl \
   61 	    && rm Makefile.new
   62 
   63 #Dependencies
   64 
   65 $(OBJS) $(OBJS_PIC): Makefile
   66 
   67 # DO NOT REMOVE
   68 mod_gzip.o: mod_gzip.c mod_gzip.h mod_gzip_debug.h \
   69 	$(INCDIR)/httpd.h $(INCDIR)/http_config.h \
   70 	$(INCDIR)/http_core.h $(INCDIR)/http_log.h \
   71 	$(INCDIR)/http_main.h $(INCDIR)/http_protocol.h \
   72 	$(INCDIR)/http_request.h $(INCDIR)/util_script.h
   73 mod_gzip_debug.o: mod_gzip_debug.c mod_gzip_debug.h \
   74 	$(INCDIR)/httpd.h $(INCDIR)/http_config.h \
   75 	$(INCDIR)/http_log.h mod_gzip.h
   76 mod_gzip_compress.o: mod_gzip_compress.c \
   77 	$(INCDIR)/httpd.h $(INCDIR)/http_config.h \
   78 	$(INCDIR)/http_log.h mod_gzip.h