From f15273bc7400b85b0e9975a5faa1f130989b0ff2 Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Fri, 11 May 1990 20:05:59 -0800 Subject: [PATCH] first pass for new make SCCS-vsn: sbin/routed/trace/Makefile 5.1 SCCS-vsn: sbin/routed/query/Makefile 5.6 SCCS-vsn: sbin/dmesg/Makefile 5.4 SCCS-vsn: sbin/Makefile 5.2 SCCS-vsn: sbin/nfsiod/Makefile 5.2 SCCS-vsn: usr.sbin/vipw/Makefile 5.3 SCCS-vsn: sbin/umount/Makefile 5.4 SCCS-vsn: sbin/tunefs/Makefile 5.3 SCCS-vsn: sbin/swapon/Makefile 5.3 SCCS-vsn: sbin/slattach/Makefile 5.4 SCCS-vsn: sbin/shutdown/Makefile 5.3 SCCS-vsn: sbin/savecore/Makefile 5.3 SCCS-vsn: sbin/route/Makefile 5.3 SCCS-vsn: sbin/restore/Makefile 5.10 SCCS-vsn: sbin/reboot/Makefile 5.3 SCCS-vsn: sbin/quotacheck/Makefile 5.3 SCCS-vsn: sbin/newfs/Makefile 7.11 SCCS-vsn: sbin/ncheck/Makefile 5.3 SCCS-vsn: sbin/mount/Makefile 5.5 SCCS-vsn: sbin/mknod/Makefile 5.3 SCCS-vsn: old/init/Makefile 5.3 SCCS-vsn: sbin/init/Makefile 5.3 SCCS-vsn: sbin/ifconfig/Makefile 5.3 SCCS-vsn: sbin/icheck/Makefile 5.3 SCCS-vsn: sbin/fsdb/Makefile 5.3 SCCS-vsn: sbin/fsck/Makefile 5.13 SCCS-vsn: sbin/fastboot/Makefile 5.4 SCCS-vsn: sbin/dumpfs/Makefile 5.3 SCCS-vsn: sbin/dump/Makefile 5.10 SCCS-vsn: sbin/disklabel/Makefile 5.4 SCCS-vsn: sbin/ping/Makefile 5.3 SCCS-vsn: sbin/clri/Makefile 5.3 SCCS-vsn: sbin/badsect/Makefile 5.3 --- usr/src/old/init/Makefile | 53 +++------------------- usr/src/sbin/Makefile | 44 ++++-------------- usr/src/sbin/badsect/Makefile | 50 ++------------------- usr/src/sbin/clri/Makefile | 50 ++------------------- usr/src/sbin/disklabel/Makefile | 55 +++++------------------ usr/src/sbin/dmesg/Makefile | 51 +++------------------ usr/src/sbin/dump/Makefile | 72 +++++++----------------------- usr/src/sbin/dumpfs/Makefile | 50 ++------------------- usr/src/sbin/fastboot/Makefile | 38 +++++----------- usr/src/sbin/fsck/Makefile | 60 +++---------------------- usr/src/sbin/fsdb/Makefile | 50 ++------------------- usr/src/sbin/icheck/Makefile | 50 ++------------------- usr/src/sbin/ifconfig/Makefile | 50 ++------------------- usr/src/sbin/init/Makefile | 53 +++------------------- usr/src/sbin/mknod/Makefile | 50 ++------------------- usr/src/sbin/mount/Makefile | 57 ++++------------------- usr/src/sbin/ncheck/Makefile | 50 ++------------------- usr/src/sbin/newfs/Makefile | 57 ++++------------------- usr/src/sbin/nfsiod/Makefile | 51 +++------------------ usr/src/sbin/ping/Makefile | 52 +++------------------ usr/src/sbin/quotacheck/Makefile | 52 +++------------------ usr/src/sbin/reboot/Makefile | 58 ++++++------------------ usr/src/sbin/restore/Makefile | 67 +++++++-------------------- usr/src/sbin/route/Makefile | 68 +++++++++------------------- usr/src/sbin/routed/query/Makefile | 48 +++----------------- usr/src/sbin/routed/trace/Makefile | 7 +++ usr/src/sbin/savecore/Makefile | 50 ++------------------- usr/src/sbin/shutdown/Makefile | 52 +++------------------ usr/src/sbin/slattach/Makefile | 53 +++------------------- usr/src/sbin/swapon/Makefile | 50 ++------------------- usr/src/sbin/tunefs/Makefile | 50 ++------------------- usr/src/sbin/umount/Makefile | 52 +++------------------ usr/src/usr.sbin/vipw/Makefile | 50 ++------------------- 33 files changed, 235 insertions(+), 1465 deletions(-) create mode 100644 usr/src/sbin/routed/trace/Makefile diff --git a/usr/src/old/init/Makefile b/usr/src/old/init/Makefile index acf2a97918..9c383a67de 100644 --- a/usr/src/old/init/Makefile +++ b/usr/src/old/init/Makefile @@ -1,48 +1,9 @@ -# -# Copyright (c) 1988 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= init.c -OBJS= -MAN= init.0 -MAN8= /usr/man/cat8/ +# @(#)Makefile 5.3 (Berkeley) %G% -all: init +PROG= init +MAN8= init.0 +DPADD= ${LIBUTIL} +LDADD= -lutil +BINMODE=500 -init: ${SRCS} ${LIBC} - ${CC} -o $@ ${CFLAGS} ${SRCS} -lutil - -cleandir: clean - rm -f tags .depend - -clean: - rm -f ${OBJS} core init ${MAN} - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 700 init ${DESTDIR}/sbin/init - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}${MAN8}${MAN} - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/Makefile b/usr/src/sbin/Makefile index 2528a54958..d91b731e7c 100644 --- a/usr/src/sbin/Makefile +++ b/usr/src/sbin/Makefile @@ -1,38 +1,12 @@ -# -# Copyright (c) 1988 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not 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. -# -# @(#)Makefile 5.1 (Berkeley) %G% -# -SUBDIR= badsect chown clri disklabel dmesg dump dumpfs enpload \ - fastboot fsck \ - fsdb halt icheck ifconfig init mknod mount ncheck newfs \ - ping quotacheck reboot restore route savecore shutdown \ - slattach swapon tunefs umount vipw +# @(#)Makefile 5.2 (Berkeley) %G% -all depend install lint tags: FRC - @-for i in ${SUBDIR}; do \ - (echo "==> $$i"; \ - cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} $@); done +SUBDIR= XNSrouted badsect clri disklabel dmesg dump dumpfs fastboot fsck \ + fsdb halt icheck ifconfig init mknod mount mountd ncheck newfs \ + nfsd nfsiod ping quotacheck reboot restore route routed savecore \ + shutdown slattach swapon tunefs umount vipw -clean cleandir: FRC - @-for i in ${SUBDIR}; do \ - (echo "==> $$i"; \ - cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} $@); done +.if ${MACHINE} == "tahoe" || make(clean) || make(cleandir) +SUBDIR+=enpload +.endif -${SUBDIR}: FRC - cd $@; make ${MFLAGS} DESTDIR=${DESTDIR} - -FRC: +.include diff --git a/usr/src/sbin/badsect/Makefile b/usr/src/sbin/badsect/Makefile index 6e69f7d3d0..b53e16fe28 100644 --- a/usr/src/sbin/badsect/Makefile +++ b/usr/src/sbin/badsect/Makefile @@ -1,48 +1,6 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= badsect.c -OBJS= -MAN= badsect.0 +PROG= badsect +MAN8= badsect.0 -all: badsect - -badsect: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core badsect - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 badsect ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/clri/Makefile b/usr/src/sbin/clri/Makefile index 63f6ec7924..e8dc457a08 100644 --- a/usr/src/sbin/clri/Makefile +++ b/usr/src/sbin/clri/Makefile @@ -1,48 +1,6 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= clri.c -OBJS= -MAN= clri.0 +PROG= clri +MAN8= clri.0 -all: clri - -clri: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core clri - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 clri ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/disklabel/Makefile b/usr/src/sbin/disklabel/Makefile index d5dc859145..021e42ea5e 100644 --- a/usr/src/sbin/disklabel/Makefile +++ b/usr/src/sbin/disklabel/Makefile @@ -1,49 +1,14 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.3 (Berkeley) %G% -# +# @(#)Makefile 5.4 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= disklabel.c -OBJS= -MAN= disklabel.0 disklabel.5.0 +PROG= disklabel +MAN8= disklabel.0 +BINGRP=operator +BINMODE=2550 -all: disklabel +all: disklabel.5.0 -disklabel: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c +beforeinstall: + install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} disklabel.5.0 \ + ${DESTDIR}${MANDIR}5/disklabel.0 -clean: - rm -f ${OBJS} core disklabel - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g operator -m 2750 disklabel ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 disklabel.0 ${DESTDIR}/usr/man/cat8 - install -c -o bin -g bin -m 444 disklabel.5.0 ${DESTDIR}/usr/man/cat5/disklabel.0 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/dmesg/Makefile b/usr/src/sbin/dmesg/Makefile index 7ff37cdd66..a954564f58 100644 --- a/usr/src/sbin/dmesg/Makefile +++ b/usr/src/sbin/dmesg/Makefile @@ -1,48 +1,7 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.3 (Berkeley) %G% -# +# @(#)Makefile 5.4 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= dmesg.c -OBJS= -MAN= dmesg.0 +PROG= dmesg +BINGRP= kmem +BINMODE=2555 -all: dmesg - -dmesg: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core dmesg - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g kmem -m 2755 dmesg ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/dump/Makefile b/usr/src/sbin/dump/Makefile index fe9555a271..214ddc4d17 100644 --- a/usr/src/sbin/dump/Makefile +++ b/usr/src/sbin/dump/Makefile @@ -1,21 +1,5 @@ -# -# Copyright (c) 1987 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.9 (Berkeley) %G% -# +# @(#)Makefile 5.10 (Berkeley) %G% + # dump.h header file # dumpitime.c reads /etc/dumpdates # dumpmain.c driver @@ -27,49 +11,27 @@ # DEBUG use local directory to find ddate and dumpdates # TDEBUG trace out the process forking -DFLAGS= -CFLAGS= -O ${DFLAGS} -LIBC= /lib/libc.a -PSRCS= /usr/include/protocols/dumprestore.h dump.h dumpmain.c \ - dumptraverse.c dumptape.c dumpoptr.c dumpitime.c unctime.c -SRCS= dump.h dumpitime.c dumpmain.c dumpoptr.c dumprmt.c dumptape.c \ - dumptraverse.c unctime.c -OBJS= dumpitime.o dumpmain.o dumpoptr.o dumptape.o dumptraverse.o \ - unctime.o +PROG= dump +SRCS= dumpitime.c dumpmain.c dumpoptr.c dumptape.c dumptraverse.c \ + unctime.c ROBJS= dumpitime.o dumprmain.o dumpoptr.o dumprmt.o dumprtape.o \ dumptraverse.o unctime.o -MAN= dump.0 rdump.0 +BINGRP= tty +MAN8= dump.0 rdump.0 -all: dump rdump - -dump: ${OBJS} ${LIBC} - ${CC} -o $@ ${CFLAGS} ${OBJS} +all: rdump rdump: ${ROBJS} ${LIBC} - ${CC} -o $@ ${CFLAGS} ${ROBJS} - -dumprmain.o: dumpmain.c - ${CC} -c -DRDUMP ${CFLAGS} dumpmain.c -o dumprmain.o - -dumprtape.o: dumptape.c - ${CC} -c -DRDUMP ${CFLAGS} dumptape.c -o dumprtape.o - -clean: - rm -f ${ROBJS} ${OBJS} rdump dump core - -cleandir: clean - rm -f ${MAN} tags .depend + ${CC} -o ${.TARGET} ${CFLAGS} ${ROBJS} -depend: ${SRCS} - mkdep ${CFLAGS} ${SRCS} +dumprmain.o: + ${CC} -c -DRDUMP ${CFLAGS} ${.CURDIR}/dumpmain.c -o ${.TARGET} -install: ${MAN} - install -s -o root -g tty -m 6755 rdump ${DESTDIR}/sbin/rdump - install -s -o bin -g tty -m 2755 dump ${DESTDIR}/sbin/dump - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 +dumprtape.o: + ${CC} -c -DRDUMP ${CFLAGS} ${.CURDIR}/dumptape.c -o ${.TARGET} -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} +afterinstall: + install ${STRIP} -o root -g ${BINGRP} -m 6555 rdump \ + ${DESTDIR}${BINDIR} -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/dumpfs/Makefile b/usr/src/sbin/dumpfs/Makefile index 40e4ed95c9..957c829f76 100644 --- a/usr/src/sbin/dumpfs/Makefile +++ b/usr/src/sbin/dumpfs/Makefile @@ -1,48 +1,6 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= dumpfs.c -OBJS= -MAN= dumpfs.0 +PROG= dumpfs +MAN8= dumpfs.0 -all: dumpfs - -dumpfs: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core dumpfs - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 dumpfs ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/fastboot/Makefile b/usr/src/sbin/fastboot/Makefile index deaa861b79..6edc260ab2 100644 --- a/usr/src/sbin/fastboot/Makefile +++ b/usr/src/sbin/fastboot/Makefile @@ -1,29 +1,15 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.3 (Berkeley) %G% -# +# @(#)Makefile 5.4 (Berkeley) %G% -MAN= fastboot.0 +MAN8= fastboot.0 -all fastboot clean cleandir depend lint tags: +all fastboot: ${MAN8} -install: ${MAN} - install -c -o bin -g bin -m 755 fastboot.sh \ - ${DESTDIR}/sbin/fastboot - install -c -o bin -g bin -m 755 fasthalt.sh \ - ${DESTDIR}/sbin/fasthalt - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 +clean cleandir depend lint tags: + +install: maninstall + install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${.CURDIR}/fastboot.sh ${DESTDIR}${BINDIR}/fastboot + install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${.CURDIR}/fasthalt.sh ${DESTDIR}${BINDIR}/fasthalt + +.include diff --git a/usr/src/sbin/fsck/Makefile b/usr/src/sbin/fsck/Makefile index aaa6aa5224..7f595b33bc 100644 --- a/usr/src/sbin/fsck/Makefile +++ b/usr/src/sbin/fsck/Makefile @@ -1,55 +1,9 @@ -# -# Copyright (c) 1987 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.12 (Berkeley) %G% -# -CFLAGS= -O -LIBC= /lib/libc.a -VPATH= ../../sys/ufs -SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \ - pass5.c setup.c utilities.c ufs_subr.c ufs_tables.c -LOCOBJS=dir.o inode.o main.o pass1.o pass1b.o pass2.o pass3.o pass4.o \ - pass5.o setup.o utilities.o -SYSOBJS=ufs_subr.o ufs_tables.o -OBJS= ${LOCOBJS} ${SYSOBJS} -MAN= fsck.0 - -all: fsck - -fsck: ${OBJS} ${LIBC} - ${CC} -o $@ ${CFLAGS} ${OBJS} - -${LOCOBJS}: - ${CC} ${CFLAGS} -c $*.c - -clean: - rm -f ${OBJS} fsck core +# @(#)Makefile 5.13 (Berkeley) %G% -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 fsck ${DESTDIR}/sbin/fsck - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} +PROG= fsck +SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \ + pass5.c preen.c setup.c utilities.c ufs_subr.c ufs_tables.c \ + ufs_subr.c ufs_tables.c +.PATH: ${.CURDIR}/../../sys/ufs -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/fsdb/Makefile b/usr/src/sbin/fsdb/Makefile index ed9ce0d9b2..02e93b81aa 100644 --- a/usr/src/sbin/fsdb/Makefile +++ b/usr/src/sbin/fsdb/Makefile @@ -1,48 +1,6 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= fsdb.c -OBJS= -MAN= fsdb.0 +PROG= fsdb +MAN8= fsdb.0 -all: fsdb - -fsdb: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core fsdb - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 fsdb ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/icheck/Makefile b/usr/src/sbin/icheck/Makefile index a8be7bd31d..9d83c9f35b 100644 --- a/usr/src/sbin/icheck/Makefile +++ b/usr/src/sbin/icheck/Makefile @@ -1,48 +1,6 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= icheck.c -OBJS= -MAN= icheck.0 +PROG= icheck +MAN8= icheck.0 -all: icheck - -icheck: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core icheck - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 icheck ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/ifconfig/Makefile b/usr/src/sbin/ifconfig/Makefile index 0bb10e8f8a..7bbe227599 100644 --- a/usr/src/sbin/ifconfig/Makefile +++ b/usr/src/sbin/ifconfig/Makefile @@ -1,48 +1,6 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= ifconfig.c -OBJS= -MAN= ifconfig.0 +PROG= ifconfig +MAN8= ifconfig.0 -all: ifconfig - -ifconfig: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core ifconfig - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 ifconfig ${DESTDIR}/sbin/ifconfig - install -c -o bin -g bin -m 444 ifconfig.0 ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/init/Makefile b/usr/src/sbin/init/Makefile index acf2a97918..9c383a67de 100644 --- a/usr/src/sbin/init/Makefile +++ b/usr/src/sbin/init/Makefile @@ -1,48 +1,9 @@ -# -# Copyright (c) 1988 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= init.c -OBJS= -MAN= init.0 -MAN8= /usr/man/cat8/ +# @(#)Makefile 5.3 (Berkeley) %G% -all: init +PROG= init +MAN8= init.0 +DPADD= ${LIBUTIL} +LDADD= -lutil +BINMODE=500 -init: ${SRCS} ${LIBC} - ${CC} -o $@ ${CFLAGS} ${SRCS} -lutil - -cleandir: clean - rm -f tags .depend - -clean: - rm -f ${OBJS} core init ${MAN} - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 700 init ${DESTDIR}/sbin/init - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}${MAN8}${MAN} - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/mknod/Makefile b/usr/src/sbin/mknod/Makefile index f704c9e04c..b6189f487e 100644 --- a/usr/src/sbin/mknod/Makefile +++ b/usr/src/sbin/mknod/Makefile @@ -1,48 +1,6 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= mknod.c -OBJS= -MAN= mknod.0 +PROG= mknod +MAN8= mknod.0 -all: mknod - -mknod: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core mknod - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 mknod ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/mount/Makefile b/usr/src/sbin/mount/Makefile index f8b86331d3..fe8a2428ed 100644 --- a/usr/src/sbin/mount/Makefile +++ b/usr/src/sbin/mount/Makefile @@ -1,51 +1,10 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.5 (Berkeley) %G% -# +# @(#)Makefile 5.5 (Berkeley) %G% -CFLAGS= -O -DNFS -LIBC= /lib/libc.a -SRCS= mount.c -OBJS= -MAN= mount.0 +PROG= mount +CFLAGS+=-DNFS +MAN8= mount.0 +DPADD= ${LIBRPC} +LDADD= -lrpc +MLINKS= mount.8 umount.8 -all: mount - -mount: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c -lrpc - -clean: - rm -f ${OBJS} core mount - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 mount ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - rm -f ${DESTDIR}/usr/man/cat8/umount.0 - ln ${DESTDIR}/usr/man/cat8/mount.0 ${DESTDIR}/usr/man/cat8/umount.0 - - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/ncheck/Makefile b/usr/src/sbin/ncheck/Makefile index cfe5d55f1a..ca67537e94 100644 --- a/usr/src/sbin/ncheck/Makefile +++ b/usr/src/sbin/ncheck/Makefile @@ -1,48 +1,6 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= ncheck.c -OBJS= -MAN= ncheck.0 +PROG= ncheck +MAN8= ncheck.0 -all: ncheck - -ncheck: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core ncheck - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 ncheck ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/newfs/Makefile b/usr/src/sbin/newfs/Makefile index e14c2797fe..dc1a23351c 100644 --- a/usr/src/sbin/newfs/Makefile +++ b/usr/src/sbin/newfs/Makefile @@ -1,51 +1,10 @@ -# -# Copyright (c) 1987 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 7.10 (Berkeley) %G% -# -CFLAGS= -O -DMFS -LIBC= /lib/libc.a -SRCS= newfs.c mkfs.c -OBJS= newfs.o mkfs.o -MAN= newfs.0 - -all: newfs - -newfs: ${OBJS} ${LIBC} - ${CC} ${CFLAGS} -o $@ ${OBJS} - -clean: - rm -f ${OBJS} core newfs +# @(#)Makefile 7.11 (Berkeley) %G% -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 newfs ${DESTDIR}/sbin/newfs - rm -f ${DESTDIR}/sbin/mount_mfs - ln ${DESTDIR}/sbin/newfs ${DESTDIR}/sbin/mount_mfs - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - rm -f ${DESTDIR}/usr/man/cat8/mfs.0 - ln ${DESTDIR}/usr/man/cat8/${MAN} ${DESTDIR}/usr/man/cat8/mfs.0 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} +PROG= newfs +CFLAGS+=-DMFS +SRCS= newfs.c mkfs.c +MAN8= newfs.0 +LINKS= ${BINDIR}/newfs ${BINDIR}/mount_mfs +MLINKS= mfs.8 newfs.8 -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/nfsiod/Makefile b/usr/src/sbin/nfsiod/Makefile index b9deded399..3ece8a946e 100644 --- a/usr/src/sbin/nfsiod/Makefile +++ b/usr/src/sbin/nfsiod/Makefile @@ -1,48 +1,7 @@ -# -# Copyright (c) 1989 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.1 (Berkeley) %G% -# +# @(#)Makefile 5.2 (Berkeley) %G% -CFLAGS= -O -DNFS -LIBC= /lib/libc.a -SRCS= nfsiod.c -OBJS= -MAN= nfsiod.0 +PROG= nfsiod +CFLAGS+=-DNFS +MAN8= nfsiod.0 -all: nfsiod - -nfsiod: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core nfsiod - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 nfsiod ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/ping/Makefile b/usr/src/sbin/ping/Makefile index be191a097d..e3bd4c48bb 100644 --- a/usr/src/sbin/ping/Makefile +++ b/usr/src/sbin/ping/Makefile @@ -1,48 +1,8 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= ping.c -OBJS= -MAN= ping.0 +PROG= ping +MAN8= ping.0 +BINOWN= root +BINMODE=4555 -all: ping - -ping: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core ping - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o root -g bin -m 4755 -s ping ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ping.0 ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/quotacheck/Makefile b/usr/src/sbin/quotacheck/Makefile index 3d6b4f5b67..2e830d7862 100644 --- a/usr/src/sbin/quotacheck/Makefile +++ b/usr/src/sbin/quotacheck/Makefile @@ -1,48 +1,8 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= quotacheck.c -OBJS= -MAN= quotacheck.0 +PROG= quotacheck +SRCS= quotacheck.c preen.c +MAN8= quotacheck.0 +.PATH: ${.CURDIR}/../fsck -all: quotacheck - -quotacheck: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core quotacheck - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 quotacheck ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/reboot/Makefile b/usr/src/sbin/reboot/Makefile index fb02be5e00..6444ed5ad0 100644 --- a/usr/src/sbin/reboot/Makefile +++ b/usr/src/sbin/reboot/Makefile @@ -1,49 +1,17 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= reboot.c -OBJS= -MAN= vax.reboot.0 tahoe.reboot.0 +PROG= reboot +NOMAN= noman +DPADD= ${LIBUTIL} +LDADD= -lutil -all: reboot +all: vax.reboot.0 tahoe.reboot.0 -reboot: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c -lutil +beforeinstall: + install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} vax.reboot.0 \ + ${DESTDIR}${MANDIR}8/vax + install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} tahoe.reboot.0 \ + ${DESTDIR}${MANDIR}8/tahoe -clean: - rm -f ${OBJS} core reboot - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 reboot ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 vax.reboot.0 ${DESTDIR}/usr/man/cat8/vax - install -c -o bin -g bin -m 444 tahoe.reboot.0 ${DESTDIR}/usr/man/cat8/tahoe - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include +.include diff --git a/usr/src/sbin/restore/Makefile b/usr/src/sbin/restore/Makefile index 34d83ee9c3..a87d89e039 100644 --- a/usr/src/sbin/restore/Makefile +++ b/usr/src/sbin/restore/Makefile @@ -1,58 +1,23 @@ -# -# Copyright (c) 1988 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.9 (Berkeley) %G% -# -VPATH= ../dump: -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= main.c interactive.c restore.c dirs.c symtab.c tape.c utilities.c \ - dumprmt.c -OBJS= main.o interactive.o restore.o dirs.o symtab.o utilities.o tape.o -ROBJS= main.o interactive.o restore.o dirs.o symtab.o utilities.o rtape.o \ - dumprmt.o -MAN= restore.0 rrestore.0 +# @(#)Makefile 5.10 (Berkeley) %G% -all: restore rrestore +PROG= restore +SRCS= main.c interactive.c restore.c dirs.c symtab.c tape.c utilities.c +ROBJS= main.o interactive.o restore.o dirs.o symtab.o rtape.o utilities.o \ + dumprmt.o +MAN8= restore.0 rrestore.0 +.PATH: ${.CURDIR}/../dump +CLEANFILES+=dumprmt.o rtape.o rrestore -restore: ${OBJS} ${LIBC} - ${CC} ${CFLAGS} -o $@ ${OBJS} +all: rrestore rrestore: ${ROBJS} ${LIBC} - ${CC} ${CFLAGS} -o $@ ${ROBJS} - -rtape.o: ${LIBC} tape.c - ${CC} ${CFLAGS} -c -DRRESTORE tape.c -o rtape.o - -clean: - rm -f ${ROBJS} ${OBJS} core restore rrestore - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep ${CFLAGS} ${SRCS} + ${CC} ${CFLAGS} -o ${.TARGET} ${ROBJS} -install: ${MAN} - install -s -o bin -g bin -m 755 restore ${DESTDIR}/sbin - install -s -o root -g bin -m 4755 rrestore ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 +rtape.o: tape.c ${LIBC} + ${CC} ${CFLAGS} -c -DRRESTORE ${.CURDIR}/tape.c -o ${.TARGET} -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} +afterinstall: + install ${STRIP} -o root -g ${BINGRP} -m 4755 rrestore \ + ${DESTDIR}${BINDIR} -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/route/Makefile b/usr/src/sbin/route/Makefile index 2b9cd3df54..756f3e65c3 100644 --- a/usr/src/sbin/route/Makefile +++ b/usr/src/sbin/route/Makefile @@ -1,48 +1,20 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# - -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= route.c -OBJS= -MAN= route.0 - -all: route - -route: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core route - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 route ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 route.0 ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +# @(#)Makefile 5.3 (Berkeley) %G% + +PROG= route +MAN8= route.0 +CFLAGS+=-I. +CLEANFILES+=keywords.h + +all route depend lint tags: keywords.h + +keywords.h: keywords + sed -e '/^#/d' -e '/^$$/d' ${.CURDIR}/keywords > _keywords.tmp + tr a-z A-Z < _keywords.tmp | paste _keywords.tmp /dev/stdin | \ + awk '{ \ + if (NF > 1) \ + printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \ + $$2, NR, $$1, $$2 }' \ + > ${.TARGET} + rm -f _keywords.tmp + +.include diff --git a/usr/src/sbin/routed/query/Makefile b/usr/src/sbin/routed/query/Makefile index 80ce8e60b6..151f54651e 100644 --- a/usr/src/sbin/routed/query/Makefile +++ b/usr/src/sbin/routed/query/Makefile @@ -1,45 +1,7 @@ -# -# Copyright (c) 1987 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.5 (Berkeley) %G% -# -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= query.c trace.c -MAN= +# @(#)Makefile 5.6 (Berkeley) %G% -all: query trace +PROG= query +NOMAN= noman -# test programs and utilities -query: ${LIBC} - ${CC} ${CFLAGS} -o $@ $@.c - -trace: ${LIBC} - ${CC} ${CFLAGS} -o $@ $@.c - -install: - -clean: - rm -f core query trace - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include "../../Makefile.inc" +.include diff --git a/usr/src/sbin/routed/trace/Makefile b/usr/src/sbin/routed/trace/Makefile new file mode 100644 index 0000000000..cba5400b90 --- /dev/null +++ b/usr/src/sbin/routed/trace/Makefile @@ -0,0 +1,7 @@ +# @(#)Makefile 5.1 (Berkeley) %G% + +PROG= trace +NOMAN= noman + +.include "../../Makefile.inc" +.include diff --git a/usr/src/sbin/savecore/Makefile b/usr/src/sbin/savecore/Makefile index 4499955cea..93a2ab6bf2 100644 --- a/usr/src/sbin/savecore/Makefile +++ b/usr/src/sbin/savecore/Makefile @@ -1,48 +1,6 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= savecore.c -OBJS= -MAN= savecore.0 +PROG= savecore +MAN8= savecore.0 -all: savecore - -savecore: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core savecore - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 savecore ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/shutdown/Makefile b/usr/src/sbin/shutdown/Makefile index ce765da209..4398416586 100644 --- a/usr/src/sbin/shutdown/Makefile +++ b/usr/src/sbin/shutdown/Makefile @@ -1,47 +1,9 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= shutdown.c -MAN= shutdown.0 +PROG= shutdown +MAN8= shutdown.0 +BINOWN= root +BINGRP= operator +BINMODE=4550 -all: shutdown - -shutdown: ${SRCS} ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core shutdown - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o root -g operator -m 4750 shutdown ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 shutdown.0 ${DESTDIR}/usr/man/cat8/shutdown.0 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/slattach/Makefile b/usr/src/sbin/slattach/Makefile index 3501ce53bf..80d2fb03f6 100644 --- a/usr/src/sbin/slattach/Makefile +++ b/usr/src/sbin/slattach/Makefile @@ -1,50 +1,7 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.3 (Berkeley) %G% -# +# @(#)Makefile 5.4 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= slattach.c -OBJS= -MAN= slattach.0 +PROG= slattach +MAN8= slattach.0 +MLINKS= slattach.8 slip.8 -all: slattach - -slattach: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core slattach - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 slattach ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 slattach.0 ${DESTDIR}/usr/man/cat8 - rm -f ${DESTDIR}/usr/man/cat8/slip.0 - ln ${DESTDIR}/usr/man/cat8/slattach.0 ${DESTDIR}/usr/man/cat8/slip.0 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/swapon/Makefile b/usr/src/sbin/swapon/Makefile index d5e8f21ca6..94d96d5bc2 100644 --- a/usr/src/sbin/swapon/Makefile +++ b/usr/src/sbin/swapon/Makefile @@ -1,48 +1,6 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= swapon.c -OBJS= -MAN= swapon.0 +PROG= swapon +MAN8= swapon.0 -all: swapon - -swapon: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core swapon - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 swapon ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/tunefs/Makefile b/usr/src/sbin/tunefs/Makefile index d6df813514..5acd13f083 100644 --- a/usr/src/sbin/tunefs/Makefile +++ b/usr/src/sbin/tunefs/Makefile @@ -1,48 +1,6 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= tunefs.c -OBJS= -MAN= tunefs.0 +PROG= tunefs +MAN8= tunefs.0 -all: tunefs - -tunefs: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core tunefs - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 tunefs ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/sbin/umount/Makefile b/usr/src/sbin/umount/Makefile index 781436adf5..73b5b442e1 100644 --- a/usr/src/sbin/umount/Makefile +++ b/usr/src/sbin/umount/Makefile @@ -1,47 +1,9 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.3 (Berkeley) %G% -# +# @(#)Makefile 5.4 (Berkeley) %G% -CFLAGS= -O -DNFS -LIBC= /lib/libc.a -SRCS= umount.c -OBJS= -MAN= +PROG= umount +CFLAGS+=-DNFS +NOMAN= noman +DPADD= ${LIBRPC} +LDADD= -lrpc -all: umount - -umount: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c -lrpc - -clean: - rm -f ${OBJS} core umount - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 umount ${DESTDIR}/sbin - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.sbin/vipw/Makefile b/usr/src/usr.sbin/vipw/Makefile index a6d3559e8c..e18c679003 100644 --- a/usr/src/usr.sbin/vipw/Makefile +++ b/usr/src/usr.sbin/vipw/Makefile @@ -1,48 +1,6 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not 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 MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= vipw.c -OBJS= -MAN= vipw.0 +PROG= vipw +MAN8= vipw.0 -all: vipw - -vipw: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core vipw - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 vipw ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include -- 2.20.1