head	1.6;
access;
symbols
	RELENG_2_2_8_RELEASE:1.3.4.1
	RELENG_2_2_7_RELEASE:1.3.4.1
	RELENG_2_2_6_RELEASE:1.3.4.1
	RELENG_2_2_5_RELEASE:1.3.4.1
	RELENG_2_2_2_RELEASE:1.3
	RELENG_2_2_1_RELEASE:1.3
	RELENG_2_2_0_RELEASE:1.3
	RELENG_2_1_7_RELEASE:1.3
	RELENG_2_1_6_1_RELEASE:1.3
	RELENG_2_1_6_RELEASE:1.3
	RELENG_2_2:1.3.0.4
	RELENG_2_2_BP:1.3
	RELENG_2_1_5_RELEASE:1.3
	RELENG_2_1_0:1.3.0.2
	local951226:1.1.1.1
	FREEBSD_LOCAL:1.1.1;
locks; strict;
comment	@# @;


1.6
date	97.03.11.10.49.49;	author peter;	state dead;
branches;
next	1.5;

1.5
date	97.02.22.16.13.51;	author peter;	state Exp;
branches;
next	1.4;

1.4
date	97.01.14.07.19.01;	author jkh;	state Exp;
branches;
next	1.3;

1.3
date	95.12.26.05.15.12;	author peter;	state Exp;
branches
	1.3.2.1
	1.3.4.1;
next	1.2;

1.2
date	95.12.26.05.02.34;	author peter;	state Exp;
branches;
next	1.1;

1.1
date	95.12.26.04.54.46;	author peter;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	95.12.26.04.54.46;	author peter;	state Exp;
branches;
next	;

1.3.2.1
date	99.09.05.11.44.53;	author peter;	state Exp;
branches;
next	;

1.3.4.1
date	97.08.18.00.25.59;	author jdp;	state dead;
branches;
next	;


desc
@@


1.6
log
@Kill sup from the main sources now that the ports version is updated.
This puts it on the same footing as cvsup.  It's been suggested on
numerous occasions that I shouldn't have imported it in the first place,
and now that sup has outlived it's usefulness.....  Boom!
@
text
@# $Id: Makefile,v 1.5 1997/02/22 16:13:51 peter Exp peter $

SUBDIR=	lib sup supscan supfilesrv

.include <bsd.subdir.mk>
@


1.5
log
@Revert $FreeBSD$ to $Id$
@
text
@d1 1
a1 1
# $Id$
@


1.4
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.3
log
@Shamelessly steal Garrett Wollman's bmakefiles...
@
text
@d1 1
a1 1
# $Id$
@


1.3.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.3.4.1
log
@Remove sup.  If anybody still wants it, they can find it in the ports
collection.
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.3 1995/12/26 05:15:12 peter Exp $
@


1.2
log
@Apply ports/net/sup/patches/patch-aa...
@
text
@d1 1
a1 52
# Copyright (c) 1992,1991 Carnegie Mellon University
# All Rights Reserved.
# 
# Permission to use, copy, modify and distribute this software and its
# documentation is hereby granted, provided that both the copyright
# notice and this permission notice appear in all copies of the
# software, derivative works or modified versions, and any portions
# thereof, and that both notices appear in supporting documentation.
#
# CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
# CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
# ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
#
# Carnegie Mellon requests users of this software to return to
#
#  Software Distribution Coordinator   or   Software.Distribution@@CS.CMU.EDU
#  School of Computer Science
#  Carnegie Mellon University
#  Pittsburgh PA 15213-3890
#
# any improvements or extensions that they make and grant Carnegie the rights
# to redistribute these changes.
######################################################################
# Makefile to build sup (the client side), supfilesrv (the repository
# side, and supscan (used by the repository. If you only want to sup
# files from CMU, just build sup.
# The header files: c.h, libc.h and sysent.h are only
# necessary if you are compiling on a non-Mach system. Likewise the
# files in libextra.a are normally found in libcs.a on a Mach system.
# DOPRINT_VA is used by vprintf.c and should be defined if your version
# of libc/doprnt.c defines the routine _doprnt_va. If it defines _doprnt
# instead, leave DORPINT_VA undefined.
######################################################################
#
# If you need to build a sup for export outside of North America use
# 	"make EXPORTABLE_SYSTEM=true"
# this will remove (not use) any vestiges of crypt code that is present
# on the system.
#
# If you have crypt/crypt.c and /usr/lib/libcrypt.a, you will be building
# a system that uses the SUP crypt mechanism by default.
#
SITE			= NETBSD
#SITE			= CMUCS
RENAMELOG		= \"/usr/local/etc/sup.moved\"
NETBSD_DEFINES		= -UMACH -DVAR_TMP -DHAS_DAEMON
AFS_DEFINES		= -DAFS -I/usr/afsws/include
OSF_DEFINES		= -UMACH -DOSF -D_BSD -noshrlib -g -DNEED_VSNPRINTF -DVAR_TMP
CMUCS_DEFINES		= -DMACH -DDOPRINT_VA -DNEED_VPRINTF
NON_MACH_DEFINES	= -UMACH
#DEFS			= -UCMUCS -UCMU  ${${SITE}_DEFINES}
DEFS			= -UCMUCS -UCMU  ${NETBSD_DEFINES} -DRENAMELOG=${RENAMELOG}
d3 1
a3 4
#INSTALLATION PARAMETERS
NETBSD_BINDIR		= /usr/local/bin
NETBSD_MAN1		= /usr/local/man/man1
NETBSD_MAN8		= /usr/local/man/man8
d5 1
a5 87
CFLAGS			= ${DEFS} -O -I.

SUPCL			= supcmain.o supcvers.o supcparse.o supcname.o \
			  supcmisc.o supcmeat.o
SUPS			= scm.o scmio.o stree.o log.o supmsg.o netcrypt.o
EXTRA			= atoo.o errmsg.o expand.o ffilecopy.o filecopy.o \
			  nxtarg.o path.o quit.o run.o salloc.o skipto.o  \
			  vprintf.o


PROGRAMS		= sup supscan supfilesrv
MAN1			= sup.1
MAN8			= supservers.8

AFS_LIBPATH		= /usr/afs/lib
AFS_LIBS		= -L${AFS_LIBPATH}/afs -lkauth -lprot -L${AFS_LIBPATH} -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcmd -lcom_err -lc ${AFS_LIBPATH}/afs/util.a

.if exists(/usr/lib/libcrypt.a) && exists(${.CURDIR}/crypt/crypt.c) && !defined(EXPORTABLE_SYSTEM)
USE_CRYPT		= yes
.endif

.if defined(USE_CRYPT)
NETBSD_LIBS		= -lcipher -lcrypt -lutil
.else
NETBSD_LIBS		= -lcrypt -lutil
.endif
CMUCS_LIBS		= -lsys
OSF_LIBS		= -lbsd
LIBS			= libextra.a
sup_OFILES		= ${SUPCL} ${SUPS}
supfilesrv_OFILES	= supfilesrv.o scan.o ${SUPS}
supfilesrv_LIBS		= libextra.a 
supscan_OFILES		= supscan.o stree.o scan.o


all: ${PROGRAMS}
.if defined(USE_CRYPT)
	@@echo "WARNING: You have built a NON-exportable version of sup because it uses crypt()!"
	@@echo "	To build a crypt-clean version define EXPORTABLE_SYSTEM=true and make."
.endif

sup: ${sup_OFILES} ${LIBS}
	${CC} ${CFLAGS} -o sup ${sup_OFILES} ${LIBS} ${NETBSD_LIBS}

supfilesrv: ${supfilesrv_OFILES} ${supfilesrv_LIBS}
	${CC} ${CFLAGS} -o supfilesrv ${supfilesrv_OFILES} ${supfilesrv_LIBS} ${NETBSD_LIBS}

supscan:  ${supscan_OFILES} ${LIBS}
	${CC} ${CFLAGS} -o supscan ${supscan_OFILES} ${LIBS} ${NETBSD_LIBS}

libextra.a: ${EXTRA}
	ar r libextra.a $?
	ranlib libextra.a

clean:
	rm -f ${PROGRAMS} libextra.a netcrypt.c *.o core a.out

install:
	install -cs -m 555 -o bin -g bin ${PROGRAMS} ${NETBSD_BINDIR}
	install -c -m 444 -o bin -g bin ${MAN1} ${NETBSD_MAN1}
	install -c -m 444 -o bin -g bin ${MAN8} ${NETBSD_MAN8}

package: install
	pkg_create -c pkg/+ONELINE -d pkg/+DESC -f pkg/+PLIST sup_bin

netcrypt.c: crypt.diffs
.if defined(USE_CRYPT)
	ed - crypt/crypt.c < crypt.diffs
.else
	@@echo "[ Using netcryptvoid.c ]"
	cp netcryptvoid.c netcrypt.c
.endif

scan.o:	sup.h
scm.o:	sup.h
scmio.o: sup.h supmsg.h
stree.o: sup.h
supcmain.o: sup.h supmsg.h supcdefs.h
supcmeat.o: sup.h supmsg.h supcdefs.h
supcmisc.o: sup.h supmsg.h supcdefs.h
supcname.o: sup.h supmsg.h supcdefs.h
supcparse.o: sup.h supmsg.h supcdefs.h
supfilesrv.o: sup.h supmsg.h
supmsg.o: sup.h supmsg.h
supscan.o: sup.h
netcryptvoid.o: sup.h supmsg.h
netcrypt.o: sup.h supmsg.h
@


1.1
log
@Initial revision
@
text
@d45 1
d52 1
a52 1
DEFS			= -UCMUCS -UCMU  ${NETBSD_DEFINES}
d64 3
a66 2
EXTRA			= atoo.o errmsg.o expand.o ffilecopy.o filecopy.o nxtarg.o  \
			  path.o quit.o run.o salloc.o skipto.o  vprintf.o
d81 2
a83 2
.else
NETBSD_LIBS		= -lutil
@


1.1.1.1
log
@Import the unmodified version of the sup that we are using.
The heritage of this version is not clear.  It appears to be NetBSD
derived from some time ago.
@
text
@@
