first pass for new make
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 12 May 1990 04:05:59 +0000 (20:05 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 12 May 1990 04:05:59 +0000 (20:05 -0800)
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

33 files changed:
usr/src/old/init/Makefile
usr/src/sbin/Makefile
usr/src/sbin/badsect/Makefile
usr/src/sbin/clri/Makefile
usr/src/sbin/disklabel/Makefile
usr/src/sbin/dmesg/Makefile
usr/src/sbin/dump/Makefile
usr/src/sbin/dumpfs/Makefile
usr/src/sbin/fastboot/Makefile
usr/src/sbin/fsck/Makefile
usr/src/sbin/fsdb/Makefile
usr/src/sbin/icheck/Makefile
usr/src/sbin/ifconfig/Makefile
usr/src/sbin/init/Makefile
usr/src/sbin/mknod/Makefile
usr/src/sbin/mount/Makefile
usr/src/sbin/ncheck/Makefile
usr/src/sbin/newfs/Makefile
usr/src/sbin/nfsiod/Makefile
usr/src/sbin/ping/Makefile
usr/src/sbin/quotacheck/Makefile
usr/src/sbin/reboot/Makefile
usr/src/sbin/restore/Makefile
usr/src/sbin/route/Makefile
usr/src/sbin/routed/query/Makefile
usr/src/sbin/routed/trace/Makefile [new file with mode: 0644]
usr/src/sbin/savecore/Makefile
usr/src/sbin/shutdown/Makefile
usr/src/sbin/slattach/Makefile
usr/src/sbin/swapon/Makefile
usr/src/sbin/tunefs/Makefile
usr/src/sbin/umount/Makefile
usr/src/usr.sbin/vipw/Makefile

index acf2a97..9c383a6 100644 (file)
@@ -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 <bsd.prog.mk>
index 2528a54..d91b731 100644 (file)
@@ -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 <bsd.subdir.mk>
index 6e69f7d..b53e16f 100644 (file)
@@ -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 <bsd.prog.mk>
index 63f6ec7..e8dc457 100644 (file)
@@ -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 <bsd.prog.mk>
index d5dc859..021e42e 100644 (file)
@@ -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 <bsd.prog.mk>
index 7ff37cd..a954564 100644 (file)
@@ -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 <bsd.prog.mk>
index fe9555a..214ddc4 100644 (file)
@@ -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
 #      dump.h                  header file
 #      dumpitime.c             reads /etc/dumpdates
 #      dumpmain.c              driver
 #      DEBUG                   use local directory to find ddate and dumpdates
 #      TDEBUG                  trace out the process forking
 
 #      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
 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}
 
 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 <bsd.prog.mk>
index 40e4ed9..957c829 100644 (file)
@@ -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 <bsd.prog.mk>
index deaa861..6edc260 100644 (file)
@@ -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 <bsd.prog.mk>
index aaa6aa5..7f595b3 100644 (file)
@@ -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 <bsd.prog.mk>
index ed9ce0d..02e93b8 100644 (file)
@@ -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 <bsd.prog.mk>
index a8be7bd..9d83c9f 100644 (file)
@@ -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 <bsd.prog.mk>
index 0bb10e8..7bbe227 100644 (file)
@@ -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 <bsd.prog.mk>
index acf2a97..9c383a6 100644 (file)
@@ -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 <bsd.prog.mk>
index f704c9e..b6189f4 100644 (file)
@@ -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 <bsd.prog.mk>
index f8b8633..fe8a242 100644 (file)
@@ -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 <bsd.prog.mk>
index cfe5d55..ca67537 100644 (file)
@@ -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 <bsd.prog.mk>
index e14c279..dc1a233 100644 (file)
@@ -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 <bsd.prog.mk>
index b9deded..3ece8a9 100644 (file)
@@ -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 <bsd.prog.mk>
index be191a0..e3bd4c4 100644 (file)
@@ -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 <bsd.prog.mk>
index 3d6b4f5..2e830d7 100644 (file)
@@ -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 <bsd.prog.mk>
index fb02be5..6444ed5 100644 (file)
@@ -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 <bsd.own.mk>
+.include <bsd.prog.mk>
index 34d83ee..a87d89e 100644 (file)
@@ -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}
 
 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 <bsd.prog.mk>
index 2b9cd3d..756f3e6 100644 (file)
@@ -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 <bsd.prog.mk>
index 80ce8e6..151f546 100644 (file)
@@ -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 <bsd.prog.mk>
diff --git a/usr/src/sbin/routed/trace/Makefile b/usr/src/sbin/routed/trace/Makefile
new file mode 100644 (file)
index 0000000..cba5400
--- /dev/null
@@ -0,0 +1,7 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  trace
+NOMAN= noman
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
index 4499955..93a2ab6 100644 (file)
@@ -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 <bsd.prog.mk>
index ce765da..4398416 100644 (file)
@@ -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 <bsd.prog.mk>
index 3501ce5..80d2fb0 100644 (file)
@@ -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 <bsd.prog.mk>
index d5e8f21..94d96d5 100644 (file)
@@ -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 <bsd.prog.mk>
index d6df813..5acd13f 100644 (file)
@@ -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 <bsd.prog.mk>
index 781436a..73b5b44 100644 (file)
@@ -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 <bsd.prog.mk>
index a6d3559..e18c679 100644 (file)
@@ -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 <bsd.prog.mk>