Annotation of embedaddon/thttpd/cgi-src/Makefile, revision 1.1.1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>