head	1.8;
access;
symbols;
locks
	paul:1.8; strict;
comment	@# @;


1.8
date	92.05.05.18.28.52;	author paul;	state Exp;
branches;
next	1.7;

1.7
date	92.03.09.00.16.47;	author paul;	state Exp;
branches;
next	1.6;

1.6
date	92.02.23.14.36.15;	author paul;	state Exp;
branches;
next	1.5;

1.5
date	92.02.17.22.55.55;	author paul;	state Exp;
branches;
next	1.4;

1.4
date	91.12.18.22.19.08;	author paul;	state Exp;
branches;
next	1.3;

1.3
date	91.09.01.16.15.16;	author paul;	state Exp;
branches;
next	1.2;

1.2
date	91.08.19.03.22.52;	author paul;	state Exp;
branches;
next	1.1;

1.1
date	91.08.19.03.03.46;	author paul;	state Exp;
branches;
next	;


desc
@Deleted uucp-queue stuff.
@


1.8
log
@Updated CC commands.
@
text
@# Makefile for UIUC sendmail-related programs.
#
# Written by Paul Pomes, University of Illinois, Computing Services Office
# Copyright (c) 1991 by Paul Pomes and the University of Illinois Board
# of Trustees.  
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#	This product includes software developed by the University of
#	Illinois, Urbana and its contributors.
# 4. Neither the name of the University nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE TRUSTEES AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE TRUSTEES OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# Email:	Paul-Pomes@@uiuc.edu	USMail:	Paul Pomes
# ICBM:	40 06 47 N / 88 13 35 W			University of Illinois - CSO
#						1304 West Springfield Avenue
#						Urbana, Illinois,  61801-2910
# @@(#)$Id: Makefile,v 1.7 1992/03/09 00:16:47 paul Exp paul $

# .PREFIXES:	./RCS
.SUFFIXES:	.0 .8

# QI_HOST	The fully qualified domain name of the local qi/ph server
# QI_ALT	The fully qualified domain name of the backup qi/ph server
# QISERVICE	The name of the TCP service at port 105 in /etc/services.
#		Usually "ns" or "csnet-ns"
# DOMAIN	The domain name to append to Reply-To: aliases.  This must
#		be the same as DOMAINMASTER in sendmail.cf
# SYSLOG	Syslog logging facility.
# SYSV		Installation under System 5.

# Reasonable defaults.  A CPU type must usually be specified with ANSI C
# compilers in order to select the correct byte-ordering in <arpa/nameser.h>.
# IT'S LIKELY THAT THE -Dvax BELOW WILL BE WRONG FOR YOUR MACHINE.
CC=	cc -O
#CC=	gcc -Dvax -ansi -O2
DEFS   = -DQI_HOST=\"ns.uiuc.edu\" \
	 -DQI_ALT=\"ns1.uiuc.edu\" \
	 -DQISERVICE=\"ns\" \
	 -DDOMAIN=\"uiuc.edu\" \
	 -DSYSLOG=LOG_MAIL
CFLAGS = ${DEFS} -I../src
FFLAGS = ${DEFS}
PFLAGS = ${DEFS}
LFLAGS = 
YFLAGS = 
LDFLAGS= 
LIBS   = 

DESTBIN= /bin
DESTETC= /usr/local/etc
DESTLIB= /usr/lib/mail
CAT8DIR = /usr/local/man/cat8
DOCDIR = /usr/local/doc

HDRS   = messages.h phquery.h
SRCS   = dconn.c malloc.c phquery.c
OBJS   = phquery.o # mktemp.o malloc.o
OTHERS = Makefile README phquery.8
VERS   = 

.8.0:
	/usr/man/manroff $*.8 > $*.0

all:	phquery 

# If your /lib/libc.a doesn't have mkstemp(), copy ../support/mktemp.c to this
# directory and insert into the SRCS/OBJS list above.  Also add mktemp.o below.
phquery:	${OBJS}
	$(CC) -o phquery ${CFLAGS} ${LDFLAGS} ${OBJS} $(LIBS)

install:	phquery phquery.0
	install -s -o daemon -m 4511 phquery {DESTLIB}/phquery
	install -c -m 444 phquery.0 ${CAT8DIR}/phquery.0

uninstall:	/tmp
	rm -f ${DESTLIB}/phquery ${CAT8DIR}/phquery.0

lint:	${HDRS} ${SRCS}
	lint -chpb ${DEFS} phquery.c

shar:	${HDRS} ${SRCS} ${OTHERS}
	shar ${HDRS} ${SRCS} ${OTHERS} > phquery.shar

tags:	${HDRS} ${SRCS}
	ctags ${HDRS} ${SRCS}

clean:
	@@echo "Removing object and junk files."
	rm -f phquery *.o core a.out make.log lint.out \
		Makefile.bak phquery.shar

clobber:
	@@echo "Removing read-only source files that have RCS parents."
	@@echo "Error code 1 indicates last file in SRCS list was not removed."
	@@echo "(Which is OK)"
	make clean
	-if [ `whoami` != root ]; then \
	   for i in ${HDRS} ${SRCS}; do \
	      if [ ! -w $$i ]; then \
	         ( if   [ -f $$i,v ];     then rm -f $$i; \
	           elif [ -f RCS/$$i,v ]; then rm -f $$i; \
	         fi ); \
	      else echo $$i "writeable, not removed"; \
	      fi; \
	   done; \
	else echo "Running \"make clobber\" as root will zap ALL SRCS,\
		RCS'ed or not (not done)."; \
	fi

compress:
	make clean
	@@echo "Compressing source and RCS files."
	find . -size +2 \( -name \*.h -o -name \*.c -o -name \*.f \
		-o -name \*.p -o -name \*.l -o -name \*.y -o -name \*,v \) \
		-exec compress {} \;

uncompress:
	uncompressdir .

# RCS stuff

ci:		${HDRS} ${SRCS}
		-ci $?
		@@touch ci

coall:
		co -l ${HDRS} ${SRCS}

update:
		ci -sDist -u -f${VERS} ${HDRS} ${SRCS}
		@@touch ci

depend:
	mkdep ${DEFS} ${SRCS}

# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
@


1.7
log
@Replaced "REGENTS" with "TRUSTEES". *sigh*
@
text
@d39 1
a39 1
# @@(#)$Id: Makefile,v 1.6 1992/02/23 14:36:15 paul Exp paul $
d56 2
a57 2
CC=	cc
#CC=	gcc -Dvax -ansi -fpcc-struct-return -fstrength-reduce -finline-functions
d63 1
a63 1
CFLAGS = ${DEFS} -O -I../src
@


1.6
log
@New copyright statement lifted from Berkeley code.
@
text
@d23 1
a23 1
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
d26 1
a26 1
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
d39 1
a39 1
# @@(#)$Id: Makefile,v 1.5 1992/02/17 22:55:55 paul Exp paul $
@


1.5
log
@Punted copyleft.
@
text
@d4 1
a4 1
# Copyright (C) 1991 by Paul Pomes and the University of Illinois Board
d7 15
a21 13
# Redistribution and use in source and binary forms are permitted
# provided that: (1) source distributions retain this entire copyright
# notice and comment, and (2) distributions including binaries display
# the following acknowledgement:  ``This product includes software
# developed by the University of Illinois, Urbana and its contributors''
# in the documentation or other materials provided with the distribution
# and in all advertising materials mentioning features or use of this
# software. Neither the name of the University nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
d23 12
d39 1
a39 1
# @@(#)$Id$
@


1.4
log
@Add a -I../src to CFLAGS.
@
text
@d1 1
a1 2
# Makefile written by Paul Pomes, University of Illinois,
# Computing Services Office
d3 23
a25 41
# Copyright (C) 1988 by Paul Pomes and the University of Illinois Board
# of Trustees
#
# This Makefile is distributed in the hope that it will be useful,
# but without any warranty.  No author or distributor accepts
# responsibility to anyone for the consequences of using it or for
# whether it serves any particular purpose or works at all, unless
# s/he says so in writing.
#
# Everyone is granted permission to copy, modify and redistribute
# this Makefile under the following conditions:
#
#    Permission is granted to anyone to make or distribute copies
#    of Makefile source code, either as received or modified, in any
#    medium, provided that all copyright notices, permission and
#    nonwarranty notices are preserved, and that the distributor
#    grants the recipient permission for further redistribution as
#    permitted by this document, and gives him and points out to
#    him an exact copy of this document to inform him of his rights.
#
#    Permission is granted to distribute this Makefile in compiled
#    or executable form under the same conditions applying for
#    source code, provided that either
#    A. it is accompanied by the corresponding machine-readable
#       source code, or
#    B. it is accompanied by a written offer, with no time limit,
#       to give anyone a machine-readable copy of the corresponding
#       source code in return for reimbursement of the cost of
#       distribution.  This written offer must permit verbatim
#       duplication by anyone.
#    C. it is distributed by someone who received only the
#       executable form, and is accompanied by a copy of the
#       written offer of source code which he received along with it.
#
# In other words, you are welcome to use, share and improve this
# Makefile.  You are forbidden to forbid anyone else to use, share
# and improve what you give them.   Help stamp out software-hoarding!
#
# UUCP:     {uunet,convex}!uiucuxc!paul
# Internet, BITNET, CSNET: paul@@uxc.cso.uiuc.edu
# US Mail:  UofIllinois, CSO, 1304 W Springfield Ave, Urbana, IL  61801
@


1.3
log
@*** empty log message ***
@
text
@d68 1
a68 1
CFLAGS = ${DEFS} -O
@


1.2
log
@System 5 changes.
@
text
@d59 2
a60 3
# compilers in order to select the correct byte-ordering in <arpa/nameser.h>
# and to use the right getloadavg() routine.  IT'S LIKELY THAT THE -Dvax
# BELOW WILL BE WRONG FOR YOUR MACHINE.
d62 1
a62 1
#CC=	gcc -Dvax -ansi -fpcc-struct-return -fstrength-reduce 
d96 1
a96 1
	$(CC) -o phquery ${LDFLAGS} ${OBJS} $(LIBS)
@


1.1
log
@Initial revision
@
text
@d56 1
d58 6
a63 2
#CC     = cc
CC     = gcc -ansi -fpcc-struct-return -fstrength-reduce
d85 1
a85 1
OBJS   = dconn.o malloc.o phquery.o
d96 2
a97 2
phquery:	phquery.o 
	$(CC) -o phquery ${LDFLAGS} phquery.o $(LIBS)
@
