Annotation of embedaddon/thttpd/cgi-src/Makefile.in, revision 1.1
1.1 ! misho 1: # Makefile for cgi-src
! 2: #
! 3: # Copyright © 1995 by Jef Poskanzer <jef@mail.acme.com>.
! 4: # All rights reserved.
! 5: #
! 6: # Redistribution and use in source and binary forms, with or without
! 7: # modification, are permitted provided that the following conditions
! 8: # are met:
! 9: # 1. Redistributions of source code must retain the above copyright
! 10: # notice, this list of conditions and the following disclaimer.
! 11: # 2. Redistributions in binary form must reproduce the above copyright
! 12: # notice, this list of conditions and the following disclaimer in the
! 13: # documentation and/or other materials provided with the distribution.
! 14: #
! 15: # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
! 16: # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
! 17: # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
! 18: # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
! 19: # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
! 20: # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
! 21: # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
! 22: # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
! 23: # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
! 24: # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
! 25: # SUCH DAMAGE.
! 26:
! 27: prefix = @prefix@
! 28: exec_prefix = @exec_prefix@
! 29: WEBDIR = $(prefix)/www
! 30: CGIBINDIR = $(WEBDIR)/cgi-bin
! 31: MANDIR = @mandir@
! 32:
! 33: CC = @CC@
! 34: CCOPT = @CFLAGS@
! 35: DEFS = @DEFS@
! 36: INCLS = -I..
! 37: CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
! 38: LDFLAGS = @LDFLAGS@ @V_STATICFLAG@
! 39: LIBS = @LIBS@
! 40: NETLIBS = @V_NETLIBS@
! 41: INSTALL = @INSTALL@
! 42:
! 43: CLEANFILES = *.o redirect ssi phf
! 44:
! 45: @SET_MAKE@
! 46:
! 47: .c.o:
! 48: @rm -f $@
! 49: $(CC) $(CFLAGS) -c $*.c
! 50:
! 51: all: redirect ssi phf
! 52:
! 53: redirect: redirect.o
! 54: $(CC) $(LDFLAGS) $(STATICFLAG) redirect.o $(LIBS) -o redirect
! 55:
! 56: ssi: ssi.o ../match.o
! 57: $(CC) $(LDFLAGS) $(STATICFLAG) ssi.o ../match.o $(LIBS) -o ssi
! 58:
! 59: ssi.o: ../match.h
! 60:
! 61: phf: phf.o
! 62: $(CC) $(LDFLAGS) $(STATICFLAG) phf.o $(LIBS) -o phf
! 63:
! 64: strerror.o:
! 65: @rm -f strerror.o
! 66: @ln -s ../strerror.o
! 67: cd .. ; $(MAKE) $(MFLAGS) strerror.o
! 68:
! 69: install: all
! 70: -mkdir -p $(CGIBINDIR)
! 71: rm -f $(CGIBINDIR)/redirect
! 72: cp redirect $(CGIBINDIR)/redirect
! 73: rm -f $(MANDIR)/man8/redirect.8
! 74: cp redirect.8 $(MANDIR)/man8/redirect.8
! 75: rm -f $(CGIBINDIR)/ssi
! 76: cp ssi $(CGIBINDIR)/ssi
! 77: rm -f $(MANDIR)/man8/ssi.8
! 78: cp ssi.8 $(MANDIR)/man8/ssi.8
! 79: rm -f $(CGIBINDIR)/phf
! 80: cp phf $(CGIBINDIR)/phf
! 81:
! 82: clean:
! 83: rm -f $(CLEANFILES)
! 84:
! 85: distclean:
! 86: rm -f $(CLEANFILES) Makefile
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>