first pass for new make
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 12 May 1990 08:12:13 +0000 (00:12 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 12 May 1990 08:12:13 +0000 (00:12 -0800)
SCCS-vsn: usr.sbin/mkproto/Makefile 5.3
SCCS-vsn: usr.sbin/sliplogin/Makefile 5.1
SCCS-vsn: usr.sbin/kgmon/Makefile 5.3
SCCS-vsn: usr.sbin/iostat/Makefile 5.3
SCCS-vsn: usr.sbin/inetd/Makefile 5.4
SCCS-vsn: old/implog/Makefile 5.9
SCCS-vsn: old/htable/Makefile 5.9
SCCS-vsn: old/gettable/Makefile 5.3
SCCS-vsn: usr.sbin/mtree/Makefile 5.3
SCCS-vsn: usr.sbin/update/Makefile 5.4
SCCS-vsn: usr.sbin/diskpart/Makefile 5.3
SCCS-vsn: usr.sbin/config/Makefile 5.11
SCCS-vsn: usr.sbin/cron/Makefile 5.4
SCCS-vsn: usr.sbin/chroot/Makefile 5.3
SCCS-vsn: usr.sbin/arp/Makefile 5.3
SCCS-vsn: usr.sbin/accton/Makefile 5.3
SCCS-vsn: usr.sbin/ac/Makefile 5.4
SCCS-vsn: old/implogd/Makefile 5.1
SCCS-vsn: usr.sbin/lpr/Makefile 5.13
SCCS-vsn: usr.sbin/lpr/pac/Makefile 5.1
SCCS-vsn: usr.sbin/lpr/lptest/Makefile 5.1
SCCS-vsn: usr.sbin/lpr/lpc/Makefile 5.1
SCCS-vsn: usr.sbin/lpr/lprm/Makefile 5.1
SCCS-vsn: usr.sbin/lpr/lpq/Makefile 5.1
SCCS-vsn: usr.sbin/lpr/lpr/Makefile 5.1
SCCS-vsn: usr.sbin/lpr/lpd/Makefile 5.1
SCCS-vsn: usr.sbin/lpr/filters/Makefile 5.8
SCCS-vsn: old/vfilters/Makefile 6.9

28 files changed:
usr/src/old/gettable/Makefile
usr/src/old/htable/Makefile
usr/src/old/implog/Makefile
usr/src/old/implogd/Makefile [new file with mode: 0644]
usr/src/old/vfilters/Makefile
usr/src/usr.sbin/ac/Makefile
usr/src/usr.sbin/accton/Makefile
usr/src/usr.sbin/arp/Makefile
usr/src/usr.sbin/chroot/Makefile
usr/src/usr.sbin/config/Makefile
usr/src/usr.sbin/cron/Makefile
usr/src/usr.sbin/diskpart/Makefile
usr/src/usr.sbin/inetd/Makefile
usr/src/usr.sbin/iostat/Makefile
usr/src/usr.sbin/kgmon/Makefile
usr/src/usr.sbin/lpr/Makefile
usr/src/usr.sbin/lpr/filters/Makefile
usr/src/usr.sbin/lpr/lpc/Makefile [new file with mode: 0644]
usr/src/usr.sbin/lpr/lpd/Makefile [new file with mode: 0644]
usr/src/usr.sbin/lpr/lpq/Makefile [new file with mode: 0644]
usr/src/usr.sbin/lpr/lpr/Makefile [new file with mode: 0644]
usr/src/usr.sbin/lpr/lprm/Makefile [new file with mode: 0644]
usr/src/usr.sbin/lpr/lptest/Makefile [new file with mode: 0644]
usr/src/usr.sbin/lpr/pac/Makefile [new file with mode: 0644]
usr/src/usr.sbin/mkproto/Makefile
usr/src/usr.sbin/mtree/Makefile
usr/src/usr.sbin/sliplogin/Makefile [new file with mode: 0644]
usr/src/usr.sbin/update/Makefile

index 76e4097..8866dab 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=  gettable.c
-OBJS=
-MAN=   gettable.0
+PROG=  gettable
+MAN8=  gettable.0
 
 
-all: gettable
-
-gettable: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core gettable
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 gettable ${DESTDIR}/usr/sbin
-       install -c -o bin -g bin -m 444 gettable.0 ${DESTDIR}/usr/man/cat8
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index fc1cd3c..bd0bff1 100644 (file)
@@ -1,51 +1,8 @@
-#
-# 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.8 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  htable.c parse.c scan.c
-OBJS=  htable.o parse.o scan.o
-MAN=   htable.0
-
-all: htable
-
-htable: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-y.tab.h:
-       yacc -d parse.y
-       rm -f y.tab.c
-
-clean:
-       rm -f ${OBJS} core htable parse.c scan.c y.tab.h
+#      @(#)Makefile    5.9 (Berkeley) %G%
 
 
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS} y.tab.h
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 htable ${DESTDIR}/usr/sbin
-       install -c -o bin -g bin -m 444 htable.0 ${DESTDIR}/usr/man/cat8
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+PROG=  htable
+SRCS=  htable.c parse.c scan.c
+MAN8=  htable.0
+CFLAGS+=-I${.CURDIR}
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index c9eda7f..d94df8b 100644 (file)
@@ -1,51 +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.8 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  implog.c implogd.c
-OBJS=
-MAN=   implog.0 implogd.0
+#      @(#)Makefile    5.9 (Berkeley) %G%
 
 
-all: implog implogd
+PROG=  implog
+MAN8=  implog.0
 
 
-implog: ${LIBC}
-       ${CC} -o $@ $@.c
+.include <bsd.prog.mk>
 
 
-implogd: ${LIBC}
-       ${CC} -o $@ $@.c
-
-clean:
-       rm -f ${OBJS} core implog implogd
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 implog ${DESTDIR}/usr/sbin
-       install -s -o bin -g bin -m 755 implogd ${DESTDIR}/usr/sbin
-       install -c -o bin -g bin -m 444 implog.0 implogd.0 ${DESTDIR}/usr/man/cat8
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
diff --git a/usr/src/old/implogd/Makefile b/usr/src/old/implogd/Makefile
new file mode 100644 (file)
index 0000000..a6bfce4
--- /dev/null
@@ -0,0 +1,6 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  implogd
+MAN8=  implogd.0
+
+.include <bsd.prog.mk>
index a007ac4..b625c97 100644 (file)
@@ -1,54 +1,4 @@
-#
-# 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    6.8 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  chrtab.c necf.c railmag.c rvcat.c rvsort.c sidebyside.c vcat.c \
-       vdmp.c vpf.c vplotf.c vpltdmp.c vpsf.c vsort.c
-OBJS=  chrtab.o necf.o railmag.o rvcat.o rvsort.o sidebyside.o vcat.o \
-       vdmp.o vpf.o vplotf.o vpltdmp.o vpsf.o vsort.o
-ALL=   necf railmag rvcat rvsort sidebyside vcat vdmp vpf vpltdmp vpsf vsort
+SUBDIR=        necf railmag rvcat rvsort sidebyside vcat vdmp vpf vplotf vpltdmp \
+       vpsf vsort
 
 
-all: ${ALL} vplotf
-
-${ALL}: ${LIBC}
-       ${CC} -O -o $@ $@.c
-
-vplotf: ${LIBC} chrtab.c
-       ${CC} -O -o $@ vplotf.c chrtab.c
-
-clean:
-       rm -f ${OBJS} core ${ALL} vplotf
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 ${ALL} vplotf \
-           ${DESTDIR}/usr/libexec/lpr
-       rm -f ${DESTDIR}/usr/libexec/lpr/vpfW
-       ln ${DESTDIR}/usr/libexec/lpr/vpf ${DESTDIR}/usr/libexec/lpr/vpfW
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.subdir.mk>
index 88b0d3f..9f1b9aa 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.3 (Berkeley) %G%
-#
+#      @(#)Makefile    5.4 (Berkeley) %G%
 
 
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  ac.c
-OBJS=
-MAN=   ac.0
+PROG=  ac
+MAN8=  ac.0
+DPADD= ${LIBCOMPAT}
+LDADD= -lcompat
 
 
-all: ac
-
-ac: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c -lcompat
-
-clean:
-       rm -f ${OBJS} core ac
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 ac ${DESTDIR}/usr/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 1038f5b..030a54b 100644 (file)
@@ -1,47 +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=  accton.c
-OBJS=
-MAN=
+PROG=  accton
+NOMAN= noman
 
 
-all: accton
-
-accton: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core accton
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 accton ${DESTDIR}/usr/sbin
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 4622f2d..4e19c5c 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=  arp.c
-OBJS=
-MAN=   arp.0
+PROG=  arp
+BINGRP=        kmem
+BINMODE=2555
+MAN8=  arp.0
 
 
-all: arp
-
-arp: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core arp
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g kmem -m 2755 arp ${DESTDIR}/usr/sbin
-       install -c -o bin -g bin -m 444 arp.0 ${DESTDIR}/usr/man/cat8
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 9d6eefa..11863a8 100644 (file)
@@ -1,48 +1,6 @@
-#
-# Copyright (c) 1989 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.2 (Berkeley) %G%
-#
+#      @(#)Makefile    5.3 (Berkeley) %G%
 
 
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  chroot.c
-OBJS=
-MAN=   chroot.0
+PROG=  chroot
+MAN8=  chroot.0
 
 
-all: chroot
-
-chroot: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core chroot
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 chroot ${DESTDIR}/usr/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 a64e1c2..8ce2a7f 100644 (file)
@@ -1,59 +1,12 @@
-#
-# 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
-# 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.10 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-LIBS=  -ll
-SRCS=  y.tab.c main.c lex.yy.c mkioconf.c mkmakefile.c \
-       mkglue.c mkheaders.c mkswapconf.c
-OBJS=  y.tab.o main.o lex.yy.o mkioconf.o mkmakefile.o \
-       mkglue.o mkheaders.o mkswapconf.o
-MAN=   config.0
-
-all: config
-
-config: ${OBJS} ${LIBC} y.tab.h
-       ${CC} -o $@ ${OBJS} ${LIBS}
-
-lex.yy.c: config.l
-       lex config.l
-
-y.tab.h: 
-       yacc -d config.y
-
-y.tab.c: config.y
-       yacc config.y
-
-clean:
-       rm -f ${OBJS} lex.yy.c y.tab.c y.tab.h config core
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: y.tab.h ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 config ${DESTDIR}/usr/sbin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+#      @(#)Makefile    5.11 (Berkeley) %G%
+
+PROG=  config
+CFLAGS+=-I. -I${.CURDIR}
+SRCS=  config.c main.c lang.c mkioconf.c mkmakefile.c mkglue.c mkheaders.c \
+       mkswapconf.c
+MAN8=  config.0
+DPADD= ${LIBL}
+LDADD= -ll
+CLEANFILES+=y.tab.h lang.c config.c
+
+.include <bsd.prog.mk>
index 1faa8f5..5ca592e 100644 (file)
@@ -1,50 +1,7 @@
-#
-# Copyright (c) 1989 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.3 (Berkeley) %G%
-#
+#      @(#)Makefile    5.4 (Berkeley) %G%
 
 
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  cron.c
-OBJS=
-MAN=   cron.0
+PROG=  cron
+MAN8=  cron.0
+MLINKS=        cron.8 crontab.5
 
 
-all: cron
-
-cron: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core cron
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 cron ${DESTDIR}/usr/sbin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-       rm -f ${DESTDIR}/usr/man/cat5/crontab.0
-       ln ${DESTDIR}/usr/man/cat8/cron.0 ${DESTDIR}/usr/man/cat5/crontab.0
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 72f3445..49842d1 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=  diskpart.c
-OBJS=
-MAN=   diskpart.0
+PROG=  diskpart
+MAN8=  diskpart.0
 
 
-all: diskpart
-
-diskpart: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core diskpart
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 diskpart ${DESTDIR}/usr/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 74145d9..bb5518f 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=  inetd.c
-OBJS=
-MAN=   inetd.0
+PROG=  inetd
+MAN8=  inetd.0
+MLINKS=        inetd.8 inetd.5
 
 
-all: inetd
-
-inetd: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core inetd
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 inetd ${DESTDIR}/usr/sbin
-       install -c -o bin -g bin -m 444 inetd.0 ${DESTDIR}/usr/man/cat8
-       rm -f ${DESTDIR}/usr/man/cat5/inetd.conf.0
-       ln ${DESTDIR}/usr/man/cat8/inetd.0 ${DESTDIR}/usr/man/cat5/inetd.conf.0
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index b09d991..2db622e 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.2 (Berkeley) %G%
-#
+#      @(#)Makefile    5.3 (Berkeley) %G%
 
 
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  iostat.c
-OBJS=
-MAN=   iostat.0
+PROG=  iostat
+BINGRP=        kmem
+BINMODE=2555
 
 
-all: iostat
-
-iostat: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core iostat
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g kmem -m 2755 iostat ${DESTDIR}/usr/sbin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 5310502..56e6325 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=  kgmon.c
-OBJS=
-MAN=   kgmon.0
+PROG=  kgmon
+MAN8=  kgmon.0
 
 
-all: kgmon
-
-kgmon: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core kgmon
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 kgmon ${DESTDIR}/usr/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 6bd29ae..995bf12 100644 (file)
@@ -1,129 +1,6 @@
-#
-# 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.12 (Berkeley) %G%
-#
-# Ownerships {see note at the top of lpd.c}
-# ROOT         a user that can access any and all files
-# DAEMON       someone special
-# SPGRP                the group id of the spooling programs
-#
-CFLAGS=        -O
-SPLDIR=        /var/spool/output/lpd
-DAEMON=        daemon
-SPGRP= daemon
-LIBC=  /lib/libc.a
-L1SRCS=        lpd.c printjob.c recvjob.c displayq.c rmjob.c startdaemon.c \
-       lpdchar.c common.c printcap.c
-L1OBJS=        lpd.o printjob.o recvjob.o displayq.o rmjob.o startdaemon.o \
-       lpdchar.o common.o printcap.o
-L2SRCS=        lpr.c startdaemon.c printcap.c
-L2OBJS=        lpr.o startdaemon.o printcap.o
-L3SRCS=        lpq.c displayq.c common.c printcap.c
-L3OBJS=        lpq.o displayq.o common.o printcap.o
-L4SRCS=        lprm.c rmjob.c startdaemon.c common.c printcap.c
-L4OBJS=        lprm.o rmjob.o startdaemon.o common.o printcap.o
-L5SRCS=        lpc.c cmds.c cmdtab.c startdaemon.c common.c printcap.c
-L5OBJS=        lpc.o cmds.o cmdtab.o startdaemon.o common.o printcap.o
-L6SRCS=        lptest.c
-L6OBJS=        lptest.o
-L7SRCS=        pac.c printcap.c
-L7OBJS=        pac.o printcap.o
-SRCS=  lpd.c lpr.c lpq.c lprm.c pac.c lpd.c cmds.c cmdtab.c printjob.c \
-       recvjob.c displayq.c rmjob.c startdaemon.c common.c printcap.c \
-       lpdchar.c
-OBJS=  ${L1OBJS} ${L2OBJS} ${L3OBJS} ${L4OBJS} ${L5OBJS} ${L6OBJS} ${L7OBJS}
-MAN1=  lpq.0 lpr.0 lprm.0 lptest.0
-MAN8=  lpc.0 lpd.0 pac.0
-MAN=   ${MAN1} ${MAN8}
-ALL=   lpd lpr lpq lprm lpc lptest pac
+#      @(#)Makefile    5.13 (Berkeley) %G%
 
 
-all: ${ALL} FILTERS VFILTERS
+SUBDIR=        lpc lpd lpq lpr lprm lptest pac filters vfilters
 
 
-lpd: ${L1OBJS} ${LIBC}
-       ${CC} -o $@ ${L1OBJS}
+.include <bsd.subdir.mk>
 
 
-lpr: ${L2OBJS} ${LIBC}
-       ${CC} -o $@ ${L2OBJS}
-
-lpq: ${L3OBJS} ${LIBC}
-       ${CC} -o $@ ${L3OBJS}
-
-lprm: ${L4OBJS} ${LIBC}
-       ${CC} -o $@ ${L4OBJS}
-
-lpc: ${L5OBJS} ${LIBC}
-       ${CC} -o $@ ${L5OBJS}
-
-lptest: ${L6OBJS} ${LIBC}
-       ${CC} ${CFLAGS} -o $@ ${L6OBJS}
-
-pac: ${L7OBJS} ${LIBC}
-       ${CC} -o $@ ${L7OBJS}
-
-FILTERS:
-       cd filters; make ${MFLAGS}
-
-VFILTERS:
-       cd vfilters; make ${MFLAGS}
-
-clean:
-       rm -f ${OBJS} core ${ALL}
-       cd filters; make ${MFLAGS} clean
-       cd vfilters; make ${MFLAGS} clean
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-       cd filters; make ${MFLAGS} clean
-       cd vfilters; make ${MFLAGS} clean
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-       cd filters; make ${MFLAGS} depend
-       cd vfilters; make ${MFLAGS} depend
-
-install: ${MAN}
-       install -s -o root -g ${SPGRP} -m 6711 lpd ${DESTDIR}/usr/sbin
-       install -s -o root -g ${SPGRP} -m 6711 lpr lpq lprm \
-         ${DESTDIR}/usr/bin
-       install -s -o bin -g ${SPGRP} -m 2711 lpc ${DESTDIR}/usr/sbin
-       install -s -o bin -g bin -m 755 lptest pac ${DESTDIR}/usr/sbin
-       chown ${DAEMON} ${DESTDIR}/${SPLDIR}
-       chgrp ${SPGRP} ${DESTDIR}/${SPLDIR}
-       chmod 775 ${DESTDIR}/${SPLDIR}
-       install -c -o bin -g bin -m 444 ${MAN1} ${DESTDIR}/usr/man/cat1
-       install -c -o bin -g bin -m 444 ${MAN8} ${DESTDIR}/usr/man/cat8
-       cd filters; make ${MFLAGS} DESTDIR=${DESTDIR} install
-       cd vfilters; make ${MFLAGS} DESTDIR=${DESTDIR} install
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${L1SRCS}
-       lint ${CFLAGS} ${L2SRCS}
-       lint ${CFLAGS} ${L3SRCS}
-       lint ${CFLAGS} ${L4SRCS}
-       lint ${CFLAGS} ${L5SRCS}
-       lint ${CFLAGS} ${L6SRCS}
-       lint ${CFLAGS} ${L7SRCS}
-
-tags: ${SRCS}
-       ctags ${L1SRCS}
-       ctags -a ${L2SRCS}
-       ctags -a ${L3SRCS}
-       ctags -a ${L4SRCS}
-       ctags -a ${L5SRCS}
-       ctags -a ${L6SRCS}
-       ctags -a ${L7SRCS}
-       sort -o tags tags
index f726fcf..3df9424 100644 (file)
@@ -1,46 +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.7 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  lpf.c
-OBJS=
+#      @(#)Makefile    5.8 (Berkeley) %G%
 
 
-all: lpf
-
-lpf: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core lpf
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 lpf ${DESTDIR}/usr/libexec/lpr
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+PROG=  lpf
+NOMAN= noman
+BINDIR=        /usr/libexec
 
 
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.sbin/lpr/lpc/Makefile b/usr/src/usr.sbin/lpr/lpc/Makefile
new file mode 100644 (file)
index 0000000..110e0a3
--- /dev/null
@@ -0,0 +1,10 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  lpc
+CFLAGS+=-I${.CURDIR}/../common_source
+MAN8=  lpc.0
+SRCS=  lpc.c cmds.c cmdtab.c startdaemon.c common.c printcap.c
+.PATH: ${.CURDIR}/../common_source
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.sbin/lpr/lpd/Makefile b/usr/src/usr.sbin/lpr/lpd/Makefile
new file mode 100644 (file)
index 0000000..ba020de
--- /dev/null
@@ -0,0 +1,11 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  lpd
+CFLAGS+=-I${.CURDIR}/../common_source
+MAN8=  lpd.0
+SRCS=  lpd.c printjob.c recvjob.c displayq.c rmjob.c startdaemon.c \
+       lpdchar.c common.c printcap.c
+.PATH: ${.CURDIR}/../common_source
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.sbin/lpr/lpq/Makefile b/usr/src/usr.sbin/lpr/lpq/Makefile
new file mode 100644 (file)
index 0000000..9ced988
--- /dev/null
@@ -0,0 +1,9 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  lpq
+CFLAGS+=-I${.CURDIR}/../common_source
+SRCS=  lpq.c displayq.c common.c printcap.c
+.PATH: ${.CURDIR}/../common_source
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.sbin/lpr/lpr/Makefile b/usr/src/usr.sbin/lpr/lpr/Makefile
new file mode 100644 (file)
index 0000000..4efd8f5
--- /dev/null
@@ -0,0 +1,9 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  lpr
+CFLAGS+=-I${.CURDIR}/../common_source
+SRCS=  lpr.c startdaemon.c printcap.c
+.PATH: ${.CURDIR}/../common_source
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.sbin/lpr/lprm/Makefile b/usr/src/usr.sbin/lpr/lprm/Makefile
new file mode 100644 (file)
index 0000000..c0624b6
--- /dev/null
@@ -0,0 +1,9 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  lprm
+CFLAGS+=-I${.CURDIR}/../common_source
+SRCS=  lprm.c rmjob.c startdaemon.c common.c printcap.c
+.PATH: ${.CURDIR}/../common_source
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.sbin/lpr/lptest/Makefile b/usr/src/usr.sbin/lpr/lptest/Makefile
new file mode 100644 (file)
index 0000000..7597185
--- /dev/null
@@ -0,0 +1,6 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  lptest
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.sbin/lpr/pac/Makefile b/usr/src/usr.sbin/lpr/pac/Makefile
new file mode 100644 (file)
index 0000000..ea6d000
--- /dev/null
@@ -0,0 +1,10 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  pac
+CFLAGS+=-I${.CURDIR}/../common_source
+MAN8=  pac.0
+SRCS=  pac.c printcap.c
+.PATH: ${.CURDIR}/../common_source
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
index 684cda5..0820056 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.2 (Berkeley) %G%
-#
+#      @(#)Makefile    5.3 (Berkeley) %G%
 
 
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  mkproto.c
-OBJS=
-MAN=   mkproto.0
+PROG=  mkproto
+MAN8=  mkproto.0
 
 
-all: mkproto
+.include <bsd.prog.mk>
 
 
-mkproto: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core mkproto
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 mkproto ${DESTDIR}/usr/sbin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
index 638446b..ee05ce7 100644 (file)
@@ -1,50 +1,10 @@
-#
-# Copyright (c) 1989 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.2 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  compare.c cwalk.c mtree.c spec.c util.c
-OBJS=  compare.o cwalk.o mtree.o spec.o util.o
-MAN=   mtree.0
-
-all: mtree
-
-mtree: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-clean:
-       rm -f ${MAN} ${OBJS} core mtree
+#      @(#)Makefile    5.3 (Berkeley) %G%
 
 
-cleandir:
-       rm -f ${OBJS} core mtree tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 mtree ${DESTDIR}/usr/sbin
-       install -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-mtree.0:
-       tbl mtree.1 | nroff -h -man > $@
+PROG=  mtree
+SRCS=  compare.c cwalk.c mtree.c spec.c util.c
+.PATH: ${.CURDIR}
 
 
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+mtree.0: mtree.1
+       tbl ${.CURDIR}/mtree.1 | nroff -h -man > $@
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.sbin/sliplogin/Makefile b/usr/src/usr.sbin/sliplogin/Makefile
new file mode 100644 (file)
index 0000000..1aaf5eb
--- /dev/null
@@ -0,0 +1,8 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  sliplogin
+MAN8=  sliplogin.0
+BINOWN=        root
+BINMODE=4555
+
+.include <bsd.prog.mk>
index f9d75a8..e5e94c0 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.3 (Berkeley) %G%
-#
+#      @(#)Makefile    5.4 (Berkeley) %G%
 
 
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  update.c
-OBJS=
-MAN=   update.0
+PROG=  update
+MAN8=  update.0
 
 
-all: update
-
-update: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core update
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 update ${DESTDIR}/usr/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>