head	1.33;
access;
symbols
	perseant-exfatfs-base-20250801:1.33
	perseant-exfatfs-base-20240630:1.33
	perseant-exfatfs:1.33.0.6
	perseant-exfatfs-base:1.33
	netbsd-8-3-RELEASE:1.32
	netbsd-9-4-RELEASE:1.32
	netbsd-9-3-RELEASE:1.32
	cjep_sun2x:1.33.0.4
	cjep_sun2x-base:1.33
	cjep_staticlib_x-base1:1.33
	netbsd-9-2-RELEASE:1.32
	cjep_staticlib_x:1.33.0.2
	cjep_staticlib_x-base:1.33
	netbsd-9-1-RELEASE:1.32
	phil-wifi-20200421:1.33
	phil-wifi-20200411:1.33
	phil-wifi-20200406:1.33
	netbsd-8-2-RELEASE:1.32
	netbsd-9-0-RELEASE:1.32
	netbsd-9-0-RC2:1.32
	netbsd-9-0-RC1:1.32
	netbsd-9:1.32.0.50
	netbsd-9-base:1.32
	phil-wifi-20190609:1.32
	netbsd-8-1-RELEASE:1.32
	netbsd-8-1-RC1:1.32
	pgoyette-compat-merge-20190127:1.32
	pgoyette-compat-20190127:1.32
	pgoyette-compat-20190118:1.32
	pgoyette-compat-1226:1.32
	pgoyette-compat-1126:1.32
	pgoyette-compat-1020:1.32
	pgoyette-compat-0930:1.32
	pgoyette-compat-0906:1.32
	netbsd-7-2-RELEASE:1.32
	pgoyette-compat-0728:1.32
	netbsd-8-0-RELEASE:1.32
	phil-wifi:1.32.0.48
	phil-wifi-base:1.32
	pgoyette-compat-0625:1.32
	netbsd-8-0-RC2:1.32
	pgoyette-compat-0521:1.32
	pgoyette-compat-0502:1.32
	pgoyette-compat-0422:1.32
	netbsd-8-0-RC1:1.32
	pgoyette-compat-0415:1.32
	pgoyette-compat-0407:1.32
	pgoyette-compat-0330:1.32
	pgoyette-compat-0322:1.32
	pgoyette-compat-0315:1.32
	netbsd-7-1-2-RELEASE:1.32
	pgoyette-compat:1.32.0.46
	pgoyette-compat-base:1.32
	netbsd-7-1-1-RELEASE:1.32
	matt-nb8-mediatek:1.32.0.44
	matt-nb8-mediatek-base:1.32
	perseant-stdc-iso10646:1.32.0.42
	perseant-stdc-iso10646-base:1.32
	netbsd-8:1.32.0.40
	netbsd-8-base:1.32
	prg-localcount2-base3:1.32
	prg-localcount2-base2:1.32
	prg-localcount2-base1:1.32
	prg-localcount2:1.32.0.38
	prg-localcount2-base:1.32
	pgoyette-localcount-20170426:1.32
	bouyer-socketcan-base1:1.32
	pgoyette-localcount-20170320:1.32
	netbsd-7-1:1.32.0.36
	netbsd-7-1-RELEASE:1.32
	netbsd-7-1-RC2:1.32
	netbsd-7-nhusb-base-20170116:1.32
	bouyer-socketcan:1.32.0.34
	bouyer-socketcan-base:1.32
	pgoyette-localcount-20170107:1.32
	netbsd-7-1-RC1:1.32
	pgoyette-localcount-20161104:1.32
	netbsd-7-0-2-RELEASE:1.32
	localcount-20160914:1.32
	netbsd-7-nhusb:1.32.0.32
	netbsd-7-nhusb-base:1.32
	pgoyette-localcount-20160806:1.32
	pgoyette-localcount-20160726:1.32
	pgoyette-localcount:1.32.0.30
	pgoyette-localcount-base:1.32
	netbsd-7-0-1-RELEASE:1.32
	netbsd-7-0:1.32.0.28
	netbsd-7-0-RELEASE:1.32
	netbsd-7-0-RC3:1.32
	netbsd-7-0-RC2:1.32
	netbsd-7-0-RC1:1.32
	netbsd-5-2-3-RELEASE:1.31
	netbsd-5-1-5-RELEASE:1.31
	netbsd-6-0-6-RELEASE:1.32
	netbsd-6-1-5-RELEASE:1.32
	netbsd-7:1.32.0.26
	netbsd-7-base:1.32
	yamt-pagecache-base9:1.32
	yamt-pagecache-tag8:1.32
	netbsd-6-1-4-RELEASE:1.32
	netbsd-6-0-5-RELEASE:1.32
	tls-earlyentropy:1.32.0.24
	tls-earlyentropy-base:1.32
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.32
	riastradh-drm2-base3:1.32
	netbsd-6-1-3-RELEASE:1.32
	netbsd-6-0-4-RELEASE:1.32
	netbsd-5-2-2-RELEASE:1.31
	netbsd-5-1-4-RELEASE:1.31
	netbsd-6-1-2-RELEASE:1.32
	netbsd-6-0-3-RELEASE:1.32
	netbsd-5-2-1-RELEASE:1.31
	netbsd-5-1-3-RELEASE:1.31
	netbsd-6-1-1-RELEASE:1.32
	riastradh-drm2-base2:1.32
	riastradh-drm2-base1:1.32
	riastradh-drm2:1.32.0.18
	riastradh-drm2-base:1.32
	netbsd-6-1:1.32.0.22
	netbsd-6-0-2-RELEASE:1.32
	netbsd-6-1-RELEASE:1.32
	netbsd-6-1-RC4:1.32
	netbsd-6-1-RC3:1.32
	agc-symver:1.32.0.20
	agc-symver-base:1.32
	netbsd-6-1-RC2:1.32
	netbsd-6-1-RC1:1.32
	yamt-pagecache-base8:1.32
	netbsd-5-2:1.31.0.12
	netbsd-6-0-1-RELEASE:1.32
	yamt-pagecache-base7:1.32
	netbsd-5-2-RELEASE:1.31
	netbsd-5-2-RC1:1.31
	matt-nb6-plus-nbase:1.32
	yamt-pagecache-base6:1.32
	netbsd-6-0:1.32.0.16
	netbsd-6-0-RELEASE:1.32
	netbsd-6-0-RC2:1.32
	tls-maxphys:1.32.0.14
	tls-maxphys-base:1.32
	matt-nb6-plus:1.32.0.12
	matt-nb6-plus-base:1.32
	netbsd-6-0-RC1:1.32
	yamt-pagecache-base5:1.32
	yamt-pagecache-base4:1.32
	netbsd-6:1.32.0.10
	netbsd-6-base:1.32
	netbsd-5-1-2-RELEASE:1.31
	netbsd-5-1-1-RELEASE:1.31
	yamt-pagecache-base3:1.32
	yamt-pagecache-base2:1.32
	yamt-pagecache:1.32.0.8
	yamt-pagecache-base:1.32
	cherry-xenmp:1.32.0.6
	cherry-xenmp-base:1.32
	bouyer-quota2-nbase:1.32
	bouyer-quota2:1.32.0.4
	bouyer-quota2-base:1.32
	matt-mips64-premerge-20101231:1.32
	matt-nb5-mips64-premerge-20101231:1.31
	matt-nb5-pq3:1.31.0.10
	matt-nb5-pq3-base:1.31
	netbsd-5-1:1.31.0.8
	netbsd-5-1-RELEASE:1.31
	netbsd-5-1-RC4:1.31
	matt-nb5-mips64-k15:1.31
	netbsd-5-1-RC3:1.31
	netbsd-5-1-RC2:1.31
	netbsd-5-1-RC1:1.31
	netbsd-5-0-2-RELEASE:1.31
	matt-nb5-mips64-premerge-20091211:1.31
	matt-premerge-20091211:1.32
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.31
	matt-nb4-mips64-k7-u2a-k9b:1.31
	matt-nb5-mips64-u1-k1-k5:1.31
	matt-nb5-mips64:1.31.0.6
	netbsd-5-0-1-RELEASE:1.31
	jym-xensuspend-nbase:1.32
	netbsd-5-0:1.31.0.4
	netbsd-5-0-RELEASE:1.31
	netbsd-5-0-RC4:1.31
	netbsd-5-0-RC3:1.31
	netbsd-5-0-RC2:1.31
	jym-xensuspend:1.32.0.2
	jym-xensuspend-base:1.32
	netbsd-5-0-RC1:1.31
	netbsd-5:1.31.0.2
	netbsd-5-base:1.31
	matt-mips64-base2:1.30
	matt-mips64:1.25.0.6
	netbsd-4-0-1-RELEASE:1.24
	wrstuden-revivesa-base-3:1.30
	wrstuden-revivesa-base-2:1.30
	wrstuden-fixsa-newbase:1.24
	wrstuden-revivesa-base-1:1.30
	yamt-pf42-base4:1.30
	yamt-pf42-base3:1.30
	hpcarm-cleanup-nbase:1.28
	yamt-pf42-baseX:1.28
	yamt-pf42-base2:1.28
	wrstuden-revivesa:1.28.0.6
	wrstuden-revivesa-base:1.30
	yamt-pf42:1.28.0.4
	yamt-pf42-base:1.28
	keiichi-mipv6-nbase:1.28
	keiichi-mipv6:1.28.0.2
	keiichi-mipv6-base:1.28
	matt-armv6-nbase:1.28
	matt-armv6-prevmlocking:1.25.4.1
	wrstuden-fixsa-base-1:1.24
	netbsd-4-0:1.24.0.8
	netbsd-4-0-RELEASE:1.24
	cube-autoconf:1.26.0.2
	cube-autoconf-base:1.26
	netbsd-4-0-RC5:1.24
	netbsd-4-0-RC4:1.24
	netbsd-4-0-RC3:1.24
	netbsd-4-0-RC2:1.24
	netbsd-4-0-RC1:1.24
	matt-armv6:1.25.0.4
	matt-armv6-base:1.28
	matt-mips64-base:1.25
	hpcarm-cleanup:1.25.0.2
	hpcarm-cleanup-base:1.28
	netbsd-3-1-1-RELEASE:1.21
	netbsd-3-0-3-RELEASE:1.21
	wrstuden-fixsa:1.24.0.6
	wrstuden-fixsa-base:1.24
	abandoned-netbsd-4-base:1.24
	abandoned-netbsd-4:1.24.0.2
	netbsd-3-1:1.21.0.12
	netbsd-3-1-RELEASE:1.21
	netbsd-3-0-2-RELEASE:1.21
	netbsd-3-1-RC4:1.21
	netbsd-3-1-RC3:1.21
	netbsd-3-1-RC2:1.21
	netbsd-3-1-RC1:1.21
	netbsd-4:1.24.0.4
	netbsd-4-base:1.24
	netbsd-3-0-1-RELEASE:1.21
	netbsd-3-0:1.21.0.10
	netbsd-3-0-RELEASE:1.21
	netbsd-3-0-RC6:1.21
	netbsd-3-0-RC5:1.21
	netbsd-3-0-RC4:1.21
	netbsd-3-0-RC3:1.21
	netbsd-3-0-RC2:1.21
	netbsd-3-0-RC1:1.21
	netbsd-2-0-3-RELEASE:1.21
	netbsd-2-1:1.21.0.8
	netbsd-2-1-RELEASE:1.21
	netbsd-2-1-RC6:1.21
	netbsd-2-1-RC5:1.21
	netbsd-2-1-RC4:1.21
	netbsd-2-1-RC3:1.21
	netbsd-2-1-RC2:1.21
	netbsd-2-1-RC1:1.21
	netbsd-2-0-2-RELEASE:1.21
	netbsd-3:1.21.0.6
	netbsd-3-base:1.21
	netbsd-2-0-1-RELEASE:1.21
	netbsd-2:1.21.0.4
	netbsd-2-base:1.21
	netbsd-2-0-RELEASE:1.21
	netbsd-2-0-RC5:1.21
	netbsd-2-0-RC4:1.21
	netbsd-2-0-RC3:1.21
	netbsd-2-0-RC2:1.21
	netbsd-2-0-RC1:1.21
	netbsd-2-0:1.21.0.2
	netbsd-2-0-base:1.21
	netbsd-1-6-PATCH002-RELEASE:1.17
	netbsd-1-6-PATCH002:1.17
	netbsd-1-6-PATCH002-RC4:1.17
	netbsd-1-6-PATCH002-RC3:1.17
	netbsd-1-6-PATCH002-RC2:1.17
	netbsd-1-6-PATCH002-RC1:1.17
	netbsd-1-6-PATCH001:1.17
	netbsd-1-6-PATCH001-RELEASE:1.17
	netbsd-1-6-PATCH001-RC3:1.17
	netbsd-1-6-PATCH001-RC2:1.17
	netbsd-1-6-PATCH001-RC1:1.17
	fvdl_fs64_base:1.19
	netbsd-1-6-RELEASE:1.17
	netbsd-1-6-RC3:1.17
	netbsd-1-6-RC2:1.17
	netbsd-1-6-RC1:1.17
	netbsd-1-6:1.17.0.2
	netbsd-1-6-base:1.17
	netbsd-1-5-PATCH003:1.16.8.1
	netbsd-1-5-PATCH002:1.16.8.1
	netbsd-1-5-PATCH001:1.16.8.1
	netbsd-1-5-RELEASE:1.16.8.1
	netbsd-1-5-BETA2:1.16.8.1
	netbsd-1-5-BETA:1.16.8.1
	netbsd-1-4-PATCH003:1.15
	netbsd-1-5-ALPHA2:1.16.8.1
	netbsd-1-5:1.16.0.8
	netbsd-1-5-base:1.16
	minoura-xpg4dl-base:1.16
	minoura-xpg4dl:1.16.0.6
	netbsd-1-4-PATCH002:1.15
	wrstuden-devbsize-19991221:1.16
	wrstuden-devbsize:1.16.0.4
	wrstuden-devbsize-base:1.16
	comdex-fall-1999:1.16.0.2
	comdex-fall-1999-base:1.16
	netbsd-1-4-PATCH001:1.15
	netbsd-1-4-RELEASE:1.15
	netbsd-1-4:1.15.0.2
	netbsd-1-4-base:1.15
	netbsd-1-3-PATCH003:1.13.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.13.2.1
	netbsd-1-3-PATCH003-CANDIDATE1:1.13.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.13.2.1
	netbsd-1-3-PATCH002:1.13.2.1
	netbsd-1-3-PATCH001:1.13.2.1
	netbsd-1-3-RELEASE:1.13.2.1
	netbsd-1-3-BETA:1.13.2.1
	netbsd-1-3:1.13.0.2
	netbsd-1-3-base:1.13
	netbsd-first:1.1.1.1
	cmu-sup:1.1.1;
locks; strict;
comment	@# @;


1.33
date	2019.10.15.18.33.23;	author christos;	state dead;
branches;
next	1.32;
commitid	vrRZKEqF6cc3FZGB;

1.32
date	2009.01.15.15.57.18;	author christos;	state Exp;
branches
	1.32.48.1;
next	1.31;

1.31
date	2008.10.25.22.35.37;	author apb;	state Exp;
branches;
next	1.30;

1.30
date	2008.05.30.14.23.54;	author christos;	state Exp;
branches;
next	1.29;

1.29
date	2008.05.30.14.19.57;	author christos;	state Exp;
branches;
next	1.28;

1.28
date	2007.12.20.20.25.08;	author christos;	state Exp;
branches
	1.28.4.1
	1.28.6.1;
next	1.27;

1.27
date	2007.12.20.20.16.34;	author christos;	state Exp;
branches;
next	1.26;

1.26
date	2007.10.06.20.19.52;	author christos;	state Exp;
branches;
next	1.25;

1.25
date	2007.07.20.16.39.05;	author christos;	state Exp;
branches
	1.25.4.1
	1.25.6.1;
next	1.24;

1.24
date	2006.04.02.01.39.48;	author christos;	state Exp;
branches;
next	1.23;

1.23
date	2006.03.14.22.59.43;	author christos;	state Exp;
branches;
next	1.22;

1.22
date	2006.03.14.17.42.06;	author christos;	state Exp;
branches;
next	1.21;

1.21
date	2003.04.03.20.32.41;	author christos;	state Exp;
branches;
next	1.20;

1.20
date	2003.04.03.17.14.24;	author christos;	state Exp;
branches;
next	1.19;

1.19
date	2002.11.30.03.10.58;	author lukem;	state Exp;
branches;
next	1.18;

1.18
date	2002.07.10.18.53.56;	author wiz;	state Exp;
branches;
next	1.17;

1.17
date	2000.07.19.07.52.44;	author enami;	state Exp;
branches;
next	1.16;

1.16
date	99.08.02.05.36.05;	author erh;	state Exp;
branches
	1.16.8.1;
next	1.15;

1.15
date	98.09.05.15.02.35;	author lukem;	state Exp;
branches;
next	1.14;

1.14
date	97.11.13.17.09.04;	author thorpej;	state Exp;
branches;
next	1.13;

1.13
date	97.10.07.01.27.14;	author thorpej;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	97.06.17.18.56.02;	author christos;	state Exp;
branches;
next	1.11;

1.11
date	96.09.05.16.50.01;	author christos;	state Exp;
branches;
next	1.10;

1.10
date	94.02.27.23.30.34;	author cgd;	state Exp;
branches;
next	1.9;

1.9
date	94.01.09.17.14.53;	author brezak;	state Exp;
branches;
next	1.8;

1.8
date	93.07.13.08.12.53;	author cgd;	state Exp;
branches;
next	1.7;

1.7
date	93.06.05.21.32.15;	author cgd;	state Exp;
branches;
next	1.6;

1.6
date	93.05.26.12.19.45;	author cgd;	state Exp;
branches;
next	1.5;

1.5
date	93.05.25.20.00.47;	author brezak;	state Exp;
branches;
next	1.4;

1.4
date	93.05.24.18.57.48;	author brezak;	state Exp;
branches;
next	1.3;

1.3
date	93.05.24.17.57.19;	author brezak;	state Exp;
branches;
next	1.2;

1.2
date	93.05.21.15.02.34;	author cgd;	state Exp;
branches;
next	1.1;

1.1
date	93.05.21.14.52.15;	author cgd;	state Exp;
branches
	1.1.1.1;
next	;

1.32.48.1
date	2020.04.13.08.05.59;	author martin;	state dead;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.28.4.1
date	2008.06.04.02.06.00;	author yamt;	state Exp;
branches;
next	;

1.28.6.1
date	2008.06.23.04.32.13;	author wrstuden;	state Exp;
branches;
next	;

1.25.4.1
date	2007.11.06.23.36.37;	author matt;	state Exp;
branches;
next	1.25.4.2;

1.25.4.2
date	2008.01.09.02.02.30;	author matt;	state Exp;
branches;
next	;

1.25.6.1
date	2007.07.20.16.39.05;	author christos;	state dead;
branches;
next	1.25.6.2;

1.25.6.2
date	2007.07.20.16.39.06;	author christos;	state Exp;
branches;
next	;

1.16.8.1
date	2000.07.22.01.40.13;	author enami;	state Exp;
branches;
next	;

1.13.2.1
date	97.11.13.17.14.20;	author veego;	state Exp;
branches;
next	;

1.1.1.1
date	93.05.21.14.52.16;	author cgd;	state Exp;
branches;
next	;


desc
@@


1.33
log
@remove sup
@
text
@#	$NetBSD: Makefile,v 1.32 2009/01/15 15:57:18 christos Exp $
# 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 and libc.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.
#
# If building on non 4.4BSD systems, you'll need the vis(3) and the daemon(3)
# functions from libc and libutil

#SITE			= SUNOS
#SITE			= SOLARIS
#SITE			= NETBSD
#SITE			= FREEBSD
#SITE			= CMUCS
SITE1			!= uname -s | tr '[a-z]' '[A-Z]' \
			    | sed -e s/_.*//g
SITE2			= $(shell uname -s | tr '[a-z]' '[A-Z]' \
			    | sed -e s/_.*//g)
SITE			= ${SITE1}${SITE2}
TARDIR			= sup-0.3

LINUX_DEFINES		= -UMACH -DVAR_TMP -DHAS_DAEMON -DHAS_POSIX_DIR \
			  -DNEED_SETPROCTITLE
NETBSD_DEFINES		= -UMACH -DVAR_TMP -DHAS_DAEMON -DHAS_POSIX_DIR \
			    -DHAS_FPARSELN -DHAS_FGETLN -DHAS_VIS
FREEBSD_DEFINES		= -UMACH -DVAR_TMP -DHAS_DAEMON -DHAS_POSIX_DIR \
			    -DHAS_FPARSELN -DHAS_FGETLN -DHAS_VIS
SOLARIS_DEFINES		= -UMACH -DVAR_TMP -DHAS_POSIX_DIR -DNEED_VSNPRINTF
AFS_DEFINES		= -DAFS -I/usr/afsws/include
OSF_DEFINES		= -UMACH -DOSF -D_BSD -noshrlib -g -DNEED_VSNPRINTF \
			    -DVAR_TMP
SUNOS_DEFINES		= -UMACH -D_BSD -DNEED_VSNPRINTF -DVAR_TMP \
			    -DHAS_POSIX_DIR -DHAS_DAEMON -DNEED_DAEMON
CYGWIN_DEFINES	= -UMACH -DVAR_TMP -DHAS_POSIX_DIR
CMUCS_DEFINES		= -DMACH -DDOPRINT_VA -DNEED_VPRINTF
NON_MACH_DEFINES	= -UMACH


#INSTALLATION PARAMETERS
PREFIX		       ?= /usr/pkg/
NETBSD_BINDIR		= ${PREFIX}/sbin
NETBSD_MAN1		= ${PREFIX}/man/man1
NETBSD_MAN8		= ${PREFIX}/man/man8

CFLAGS			= ${DEFS} -O -I. -g

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 expand.o ffilecopy.o filecopy.o \
			  nxtarg.o path.o quit.o read_line.o run.o estrdup.o \
			  skipto.o vprintf.o setproctitle.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

NETBSD_LIBS		= -lcrypt
FREEBSD_LIBS		= -lcrypt
DRAGONFLY_LIBS		= -lcrypt
LINUX_LIBS		= -lcrypt
CYGWIN_LIBS		= -lcrypt
CMUCS_LIBS		= -lsys
OSF_LIBS		= -lbsd
EXTRALIBS		= 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
SOLARIS_LIBS		= -lsocket -lnsl
SUNOS_LIBS		= 

DEFS			= -UCMUCS -UCMU  ${${SITE}_DEFINES}
#DEFS			+= -DDEFDIR=\"${PREFIX}/libdata/sup\"
#DEFS			+= -DEE_XXX -DDEFSCAN=\"/var/\" -DDEFUSER=\"nobody\"
LIBS			= ${EXTRALIBS}

all: ${PROGRAMS}

sup: ${sup_OFILES} ${LIBS}
	${CC} ${CFLAGS} -o sup ${sup_OFILES} ${LIBS} ${${SITE}_LIBS}

supfilesrv: ${supfilesrv_OFILES} ${supfilesrv_LIBS}
	${CC} ${CFLAGS} -o supfilesrv ${supfilesrv_OFILES} ${supfilesrv_LIBS} ${LIBS} ${${SITE}_LIBS}

supscan:  ${supscan_OFILES} ${LIBS}
	${CC} ${CFLAGS} -o supscan ${supscan_OFILES} ${LIBS} ${${SITE}_LIBS}

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

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

install: ${PROGRAMS}
	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}

netcrypt.c:
	@@echo "[ Using netcryptvoid.c ]"
	cp netcryptvoid.c netcrypt.c

tar:
	mkdir ${TARDIR} ${TARDIR}/sys
	cp -p *.[ch18] Makefile ${TARDIR}
	cp -p sys/*.h ${TARDIR}/sys
	tar -czf ${TARDIR}.tar.gz ${TARDIR}
	rm -fr ${TARDIR}

read_line.o: supextern.h
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.32
log
@- Don't use TOOL_SED; we are not a regular Makefile
- PREFIX defaults to /usr/pkg
- use -g
- delete errmsg.c
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2008/10/25 22:35:37 apb Exp $
@


1.32.48.1
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2009/01/15 15:57:18 christos Exp $
@


1.31
log
@Use ${TOOL_SED} instead of plain "sed" in "!=" assignments.

This may need more work to prevent warning messages during
"make cleandir" when the commands in "!=" assignments are executed
even though tools may not have been built.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2008/05/30 14:23:54 christos Exp $
d53 1
a53 1
			    | ${TOOL_SED} -e s/_.*//g
d55 1
a55 1
			    | ${TOOL_SED} -e s/_.*//g)
d77 1
a77 1
PREFIX		       ?= /usr/local/
d82 1
a82 1
CFLAGS			= ${DEFS} -O -I.
d87 1
a87 1
EXTRA			= atoo.o errmsg.o expand.o ffilecopy.o filecopy.o \
@


1.30
log
@let us be 0.3
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2008/05/30 14:19:57 christos Exp $
d52 2
a53 1
SITE1			!= uname -s | tr '[a-z]' '[A-Z]' | sed -e s/_.*//g
d55 1
a55 1
			    | sed -e s/_.*//g)
@


1.29
log
@PR/38797: FreeBSD support from ttw plus bsd at cobbled dot net.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2007/12/20 20:25:08 christos Exp $
d56 1
a56 1
TARDIR			= sup-0.2
@


1.28
log
@make sup-0.2
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2007/12/20 20:16:34 christos Exp $
d50 1
d62 2
d99 1
@


1.28.6.1
log
@Sync w/ -current. 34 merge conflicts to follow.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2007/12/20 20:25:08 christos Exp $
a49 1
#SITE			= FREEBSD
d55 1
a55 1
TARDIR			= sup-0.3
a60 2
FREEBSD_DEFINES		= -UMACH -DVAR_TMP -DHAS_DAEMON -DHAS_POSIX_DIR \
			    -DHAS_FPARSELN -DHAS_FGETLN -DHAS_VIS
a95 1
FREEBSD_LIBS		= -lcrypt
@


1.28.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2007/12/20 20:25:08 christos Exp $
a49 1
#SITE			= FREEBSD
d55 1
a55 1
TARDIR			= sup-0.3
a60 2
FREEBSD_DEFINES		= -UMACH -DVAR_TMP -DHAS_DAEMON -DHAS_POSIX_DIR \
			    -DHAS_FPARSELN -DHAS_FGETLN -DHAS_VIS
a95 1
FREEBSD_LIBS		= -lcrypt
@


1.27
log
@- add setproctitle
- add commented out DEFS for the layout I use.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2007/10/06 20:19:52 christos Exp $
d55 1
a55 1
TARDIR			= sup-0.0
@


1.26
log
@portability fixes from joerg.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2007/07/20 16:39:05 christos Exp $
d57 2
a58 1
LINUX_DEFINES		= -UMACH -DVAR_TMP -DHAS_DAEMON -DHAS_POSIX_DIR
d85 1
a85 1
			  skipto.o vprintf.o
d110 2
@


1.25
log
@cygwin support.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2006/04/02 01:39:48 christos Exp $
d95 1
@


1.25.6.1
log
@file Makefile was added on branch matt-mips64 on 2007-07-20 16:39:06 +0000
@
text
@d1 158
@


1.25.6.2
log
@cygwin support.
@
text
@a0 158
#	$NetBSD: Makefile,v 1.25 2007/07/20 16:39:05 christos Exp $
# 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 and libc.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.
#
# If building on non 4.4BSD systems, you'll need the vis(3) and the daemon(3)
# functions from libc and libutil

#SITE			= SUNOS
#SITE			= SOLARIS
#SITE			= NETBSD
#SITE			= CMUCS
SITE1			!= uname -s | tr '[a-z]' '[A-Z]' | sed -e s/_.*//g
SITE2			= $(shell uname -s | tr '[a-z]' '[A-Z]' \
			    | sed -e s/_.*//g)
SITE			= ${SITE1}${SITE2}
TARDIR			= sup-0.0

LINUX_DEFINES		= -UMACH -DVAR_TMP -DHAS_DAEMON -DHAS_POSIX_DIR
NETBSD_DEFINES		= -UMACH -DVAR_TMP -DHAS_DAEMON -DHAS_POSIX_DIR \
			    -DHAS_FPARSELN -DHAS_FGETLN -DHAS_VIS
SOLARIS_DEFINES		= -UMACH -DVAR_TMP -DHAS_POSIX_DIR -DNEED_VSNPRINTF
AFS_DEFINES		= -DAFS -I/usr/afsws/include
OSF_DEFINES		= -UMACH -DOSF -D_BSD -noshrlib -g -DNEED_VSNPRINTF \
			    -DVAR_TMP
SUNOS_DEFINES		= -UMACH -D_BSD -DNEED_VSNPRINTF -DVAR_TMP \
			    -DHAS_POSIX_DIR -DHAS_DAEMON -DNEED_DAEMON
CYGWIN_DEFINES	= -UMACH -DVAR_TMP -DHAS_POSIX_DIR
CMUCS_DEFINES		= -DMACH -DDOPRINT_VA -DNEED_VPRINTF
NON_MACH_DEFINES	= -UMACH


#INSTALLATION PARAMETERS
PREFIX		       ?= /usr/local/
NETBSD_BINDIR		= ${PREFIX}/sbin
NETBSD_MAN1		= ${PREFIX}/man/man1
NETBSD_MAN8		= ${PREFIX}/man/man8

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 read_line.o run.o estrdup.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

NETBSD_LIBS		= -lcrypt
LINUX_LIBS		= -lcrypt
CYGWIN_LIBS		= -lcrypt
CMUCS_LIBS		= -lsys
OSF_LIBS		= -lbsd
EXTRALIBS		= 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
SOLARIS_LIBS		= -lsocket -lnsl
SUNOS_LIBS		= 

DEFS			= -UCMUCS -UCMU  ${${SITE}_DEFINES}
LIBS			= ${EXTRALIBS}

all: ${PROGRAMS}

sup: ${sup_OFILES} ${LIBS}
	${CC} ${CFLAGS} -o sup ${sup_OFILES} ${LIBS} ${${SITE}_LIBS}

supfilesrv: ${supfilesrv_OFILES} ${supfilesrv_LIBS}
	${CC} ${CFLAGS} -o supfilesrv ${supfilesrv_OFILES} ${supfilesrv_LIBS} ${LIBS} ${${SITE}_LIBS}

supscan:  ${supscan_OFILES} ${LIBS}
	${CC} ${CFLAGS} -o supscan ${supscan_OFILES} ${LIBS} ${${SITE}_LIBS}

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

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

install: ${PROGRAMS}
	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}

netcrypt.c:
	@@echo "[ Using netcryptvoid.c ]"
	cp netcryptvoid.c netcrypt.c

tar:
	mkdir ${TARDIR} ${TARDIR}/sys
	cp -p *.[ch18] Makefile ${TARDIR}
	cp -p sys/*.h ${TARDIR}/sys
	tar -czf ${TARDIR}.tar.gz ${TARDIR}
	rm -fr ${TARDIR}

read_line.o: supextern.h
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.25.4.1
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2007/10/06 20:19:52 christos Exp $
a94 1
DRAGONFLY_LIBS		= -lcrypt
@


1.25.4.2
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD$
d55 1
a55 1
TARDIR			= sup-0.2
d57 1
a57 2
LINUX_DEFINES		= -UMACH -DVAR_TMP -DHAS_DAEMON -DHAS_POSIX_DIR \
			  -DNEED_SETPROCTITLE
d84 1
a84 1
			  skipto.o vprintf.o setproctitle.o
a108 2
#DEFS			+= -DDEFDIR=\"${PREFIX}/libdata/sup\"
#DEFS			+= -DEE_XXX -DDEFSCAN=\"/var/\" -DDEFUSER=\"nobody\"
@


1.24
log
@rename salloc to estrdup.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2006/03/14 22:59:43 christos Exp $
d51 3
a53 2
SITE1			!= uname -s | tr '[a-z]' '[A-Z]'
SITE2			=$(shell uname -s | tr '[a-z]' '[A-Z]')
d66 1
d96 1
@


1.23
log
@add a tar target.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2006/03/14 17:42:06 christos Exp $
d81 1
a81 1
			  nxtarg.o path.o quit.o read_line.o run.o salloc.o \
@


1.22
log
@Make building work on NetBSD again [in this directory with the standard
Makefile]
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2003/04/03 20:32:41 christos Exp $
d54 1
d70 4
a73 3
NETBSD_BINDIR		= /usr/local/sbin
NETBSD_MAN1		= /usr/local/man/man1
NETBSD_MAN8		= /usr/local/man/man8
d134 7
@


1.21
log
@This Makefile should not need bsdmake!
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2003/04/03 17:14:24 christos Exp $
d103 1
a103 1
LIBS			= ${EXTRALIBS} ${${SITE}_LIBS}
d108 1
a108 1
	${CC} ${CFLAGS} -o sup ${sup_OFILES} ${LIBS} ${LIBS}
d111 1
a111 1
	${CC} ${CFLAGS} -o supfilesrv ${supfilesrv_OFILES} ${supfilesrv_LIBS} ${LIBS}
d114 1
a114 1
	${CC} ${CFLAGS} -o supscan ${supscan_OFILES} ${LIBS}
@


1.20
log
@Port to linux
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2002/11/30 03:10:58 lukem Exp $
d51 3
a53 1
SITE			!= uname -s | tr '[a-z]' '[A-Z]'
d102 2
a103 4
.for i in ${SITE}
DEFS			= -UCMUCS -UCMU  ${${i}_DEFINES}
LIBS			= ${EXTRALIBS} ${${i}_LIBS}
.endfor
@


1.19
log
@tweaks for fparseln(3) move from libutil to libc:
- remove #include <util.h> if nothing else needed it
- remove LDFLAGS+=-lutil if nothing else needed it
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2002/07/10 18:53:56 wiz Exp $
d49 1
a49 1
SITE			= NETBSD
d51 1
d53 1
d55 1
a55 1
			    -DHAS_FPARSELN
d89 1
@


1.18
log
@Cleanup, part 1:
Remove sysent.h, unneeded.
Remove __P().
unifdef __STDC__
Remove some #if 0 parts.
Start ANSIfication.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2000/07/19 07:52:44 enami Exp $
d86 1
a86 1
NETBSD_LIBS		= -lcrypt -lutil
@


1.17
log
@You can't just define read_line as fparseln since former keeps the storage
internally but latter allocates everytime.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 1999/08/02 05:36:05 erh Exp $
d28 1
a28 1
# The header files: c.h, libc.h and sysent.h are only
@


1.16
log
@Replace the provided read_line function with calls to the fparseln function in libutil.  Maintain compatibility on machines without fparseln through the NEED_READ_LINE define.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1998/09/05 15:02:35 lukem Exp $
d52 3
a54 2
NETBSD_DEFINES		= -UMACH -DVAR_TMP -DHAS_DAEMON -DHAS_POSIX_DIR
SOLARIS_DEFINES		= -UMACH -DVAR_TMP -DHAS_POSIX_DIR -DNEED_VSNPRINTF -DNEED_READ_LINE
d56 5
a60 3
OSF_DEFINES		= -UMACH -DOSF -D_BSD -noshrlib -g -DNEED_VSNPRINTF -DVAR_TMP -DNEED_READ_LINE
SUNOS_DEFINES		= -UMACH -D_BSD -DNEED_VSNPRINTF -DVAR_TMP -DHAS_POSIX_DIR -DHAS_DAEMON -DNEED_DAEMON -DNEED_READ_LINE
CMUCS_DEFINES		= -DMACH -DDOPRINT_VA -DNEED_VPRINTF -DNEED_READ_LINE
@


1.16.8.1
log
@Pullup following revisions (requested by thorpej):
sup/Makefile.inc	1.6
sup/source/Makefile	1.17
sup/source/read_line.c	1.3
sup/source/supcdefs.h	1.10
sup/source/supextern.h	1.11
Log Message:
You can't just define read_line as fparseln since former keeps the storage
internally but latter allocates everytime.
@
text
@d1 1
a1 1
#	$NetBSD$
d52 2
a53 3
NETBSD_DEFINES		= -UMACH -DVAR_TMP -DHAS_DAEMON -DHAS_POSIX_DIR \
			    -DHAS_FPARSELN
SOLARIS_DEFINES		= -UMACH -DVAR_TMP -DHAS_POSIX_DIR -DNEED_VSNPRINTF
d55 3
a57 5
OSF_DEFINES		= -UMACH -DOSF -D_BSD -noshrlib -g -DNEED_VSNPRINTF \
			    -DVAR_TMP
SUNOS_DEFINES		= -UMACH -D_BSD -DNEED_VSNPRINTF -DVAR_TMP \
			    -DHAS_POSIX_DIR -DHAS_DAEMON -DNEED_DAEMON
CMUCS_DEFINES		= -DMACH -DDOPRINT_VA -DNEED_VPRINTF
@


1.15
log
@distclean is a synonym for cleandir
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1997/11/13 17:09:04 thorpej Exp $
d53 1
a53 1
SOLARIS_DEFINES		= -UMACH -DVAR_TMP -DHAS_POSIX_DIR -DNEED_VSNPRINTF
d55 3
a57 3
OSF_DEFINES		= -UMACH -DOSF -D_BSD -noshrlib -g -DNEED_VSNPRINTF -DVAR_TMP
SUNOS_DEFINES		= -UMACH -D_BSD -DNEED_VSNPRINTF -DVAR_TMP -DHAS_POSIX_DIR -DHAS_DAEMON -DNEED_DAEMON
CMUCS_DEFINES		= -DMACH -DDOPRINT_VA -DNEED_VPRINTF
d69 1
a69 1
			  supcmisc.o supcmeat.o read_line.o
d72 2
a73 2
			  nxtarg.o path.o quit.o run.o salloc.o skipto.o \
			  vprintf.o
@


1.14
log
@Oops!  Forgot this yesterday: Add read_line.o goo.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1997/10/07 01:27:14 thorpej Exp $
d114 1
a114 1
clean cleandir:
@


1.13
log
@Garbage-collect the USE_CRYPT stuff.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1997/06/17 18:56:02 christos Exp $
d69 1
a69 1
			  supcmisc.o supcmeat.o
d126 1
@


1.13.2.1
log
@Pull up from the trunk (by request from jason):
>Oops!  Forgot this yesterday: Add read_line.o goo.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1997/11/13 17:09:04 thorpej Exp $
d69 1
a69 1
			  supcmisc.o supcmeat.o read_line.o
a125 1
read_line.o: supextern.h
@


1.12
log
@- add $NetBSD$
- remove all $Log$ instances and the extra logs caused by our local changes.
@
text
@d1 1
a1 1
#	$NetBSD$
a82 4
.if exists(/usr/lib/libcrypt.a) && exists(${.CURDIR}/crypt/crypt.c) && !defined(EXPORTABLE_SYSTEM)
USE_CRYPT		= yes
.endif

a99 4
.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
d122 1
a122 4
netcrypt.c: crypt.diffs
.if defined(USE_CRYPT)
	ed - crypt/crypt.c < crypt.diffs
.else
a124 1
.endif
@


1.11
log
@- for portability make sure that we never use "" as a pathname, always convert
  it to "."
- include sockio.h if needed to define SIOCGIFCONF (for svr4)
- use POSIX signals and wait macros
- add -S silent flag, so that the client does not print messages unless there
  is something wrong
- use flock or lockf as appropriate
- use fstatfs or fstatvfs to find out if a filesystem is mounted over nfs,
  don't depend on the major() = 255 hack; it only works on legacy systems.
- use gzip -cf to make sure that gzip compresses the file even when the file
  would expand.
- punt on defining vsnprintf if _IOSTRG is not defined; use sprintf...

To compile sup on systems other than NetBSD, you'll need a copy of daemon.c,
vis.c, vis.h and sys/cdefs.h. Maybe we should keep those in the distribution?
@
text
@d1 1
@


1.10
log
@always include libcrypt; it's a dummy if exported...
@
text
@d43 5
d50 1
d52 1
d55 1
d58 1
a58 2
#DEFS			= -UCMUCS -UCMU  ${${SITE}_DEFINES}
DEFS			= -UCMUCS -UCMU  ${NETBSD_DEFINES}
d70 3
a72 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
d89 1
a89 1
LIBS			= libextra.a
d94 2
d97 4
d109 1
a109 1
	${CC} ${CFLAGS} -o sup ${sup_OFILES} ${LIBS} ${NETBSD_LIBS}
d112 1
a112 1
	${CC} ${CFLAGS} -o supfilesrv ${supfilesrv_OFILES} ${supfilesrv_LIBS} ${NETBSD_LIBS}
d115 1
a115 1
	${CC} ${CFLAGS} -o supscan ${supscan_OFILES} ${LIBS} ${NETBSD_LIBS}
@


1.9
log
@Add HAS_POSIX_DIR to CFLAGS.
@
text
@a77 1
.if defined(USE_CRYPT)
a78 3
.else
NETBSD_LIBS		= -lutil
.endif
@


1.8
log
@make package makefiles deal with "all", "clean", and "cleandir" if they
don't already.
@
text
@d45 1
a45 1
NETBSD_DEFINES		= -UMACH -DVAR_TMP -DHAS_DAEMON
@


1.7
log
@use daemon() to put supfilesrv into daemon mode...
@
text
@d111 1
a111 1
clean:
@


1.6
log
@make non-use of "EXPORTABLE_SYSTEM=true" do the right thing;
before, it didn't really check to see if you really did have the
real crypt.c before making a system with crypt.
@
text
@d45 1
a45 1
NETBSD_DEFINES		= -UMACH -DVAR_TMP
d79 1
a79 1
NETBSD_LIBS		= -lcrypt
d81 1
a81 1
NETBSD_LIBS		=
@


1.5
log
@Use EXPORTABLE_SYSTEM=true to build sup w/o crypt
@
text
@d74 5
a78 1
.if exists(/usr/lib/libcrypt.a) && !defined(EXPORTABLE_SYSTEM)
d93 1
a93 1
.if exists(/usr/lib/libcrypt.a) && !defined(EXPORTABLE_SYSTEM)
d120 6
a125 6
	if [ -d crypt -a "X$$EXPORTABLE_SYSTEM" = X ]; then \
		ed - crypt/crypt.c < crypt.diffs; \
	else \
        	echo "[ Using netcryptvoid.c ]"; \
		cp netcryptvoid.c netcrypt.c; \
	fi
@


1.4
log
@Use /var/tmp for NetBSD
@
text
@d36 1
a36 1
# 	"make MAKE_EXPORT="
d74 1
a74 1
.if exists(/usr/lib/libcrypt.a) && !defined(MAKE_EXPORT)
d89 1
a89 1
.if exists(/usr/lib/libcrypt.a) && !defined(MAKE_EXPORT)
d91 1
a91 1
	@@echo "	To build a crypt-clean version define MAKE_EXPORT=1 and make."
d116 1
a116 1
	if [ -d crypt -a "X$$MAKE_EXPORT" = X ]; then \
@


1.3
log
@Remove netcrypt.c. Remove unneeded files. Cleanup make.
@
text
@d45 1
a45 1
NETBSD_DEFINES		= -UMACH
d47 1
a47 1
OSF_DEFINES		= -UMACH -DOSF -D_BSD -noshrlib -g -DNEED_VSNPRINTF
@


1.2
log
@clean up a bit, and add install target
@
text
@d34 9
a42 1

d45 2
a46 1
NETBSD_DEFINES		= -UMACH -g
a59 5
# unlicensed non-crypting version
#NETCRYPT		= netcryptvoid.o
# licensed, crypting version
NETCRYPT		= netcrypt.o

d62 1
a62 1
SUPS			= scm.o scmio.o stree.o log.o supmsg.o ${NETCRYPT}
d71 4
d76 3
d89 4
d95 1
a95 1
	${CC} ${CFLAGS} -o sup ${sup_OFILES} ${LIBS} ${NETBSD_LIBS} #${${SITE}_LIBS}
d98 1
a98 1
	${CC} ${CFLAGS} -o supfilesrv ${supfilesrv_OFILES} ${supfilesrv_LIBS} ${NETBSD_LIBS} #${${SITE}_LIBS}
d101 1
a101 1
	${CC} ${CFLAGS} -o supscan ${supscan_OFILES} ${LIBS} ${NETBSD_LIBS} #${${SITE}_LIBS}
d108 1
a108 1
	rm -f ${PROGRAMS} libextra.a *.o core a.out
d114 8
@


1.1
log
@Initial revision
@
text
@d44 5
d64 2
d95 4
@


1.1.1.1
log
@initial import of CMU's SUP to NetBSD
@
text
@@
