first pass for new make
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 12 May 1990 06:21:41 +0000 (22:21 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 12 May 1990 06:21:41 +0000 (22:21 -0800)
SCCS-vsn: usr.bin/du/Makefile 5.3
SCCS-vsn: usr.bin/rwho/Makefile 5.3
SCCS-vsn: usr.bin/ruptime/Makefile 5.3
SCCS-vsn: usr.bin/ptx/Makefile 5.3
SCCS-vsn: usr.bin/tset/Makefile 5.12
SCCS-vsn: usr.bin/locate/bigram/Makefile 5.1
SCCS-vsn: usr.bin/locate/code/Makefile 5.1
SCCS-vsn: usr.bin/locate/locate/Makefile 5.2
SCCS-vsn: usr.bin/locate/Makefile 5.1
SCCS-vsn: usr.bin/whatis/Makefile 5.2
SCCS-vsn: usr.bin/script/Makefile 5.3
SCCS-vsn: usr.bin/apropos/Makefile 5.2
SCCS-vsn: usr.bin/soelim/Makefile 5.3
SCCS-vsn: usr.bin/dirname/Makefile 5.2
SCCS-vsn: usr.bin/mkfifo/Makefile 5.2
SCCS-vsn: usr.bin/env/Makefile 5.1
SCCS-vsn: usr.bin/finger/Makefile 5.3
SCCS-vsn: usr.bin/diction/Makefile 4.10
SCCS-vsn: usr.bin/diction/diction/Makefile 5.1
SCCS-vsn: usr.bin/diction/explain/Makefile 5.1
SCCS-vsn: usr.bin/diction/style/Makefile 5.1
SCCS-vsn: usr.bin/diction/style1/Makefile 5.1
SCCS-vsn: usr.bin/diction/style2/Makefile 5.1
SCCS-vsn: usr.bin/diction/style3/Makefile 5.1
SCCS-vsn: old/cpio/Makefile 5.7
SCCS-vsn: usr.bin/biff/Makefile 5.3
SCCS-vsn: usr.bin/apply/Makefile 5.3
SCCS-vsn: usr.bin/paste/Makefile 5.1
SCCS-vsn: usr.bin/deroff/Makefile 5.2
SCCS-vsn: usr.bin/showmount/Makefile 6.2
SCCS-vsn: usr.bin/Makefile 5.2
SCCS-vsn: usr.bin/dc/Makefile 5.8
SCCS-vsn: usr.bin/colrm/Makefile 5.3
SCCS-vsn: usr.bin/colcrt/Makefile 5.3
SCCS-vsn: usr.bin/col/Makefile 5.2
SCCS-vsn: usr.bin/chpass/Makefile 5.3
SCCS-vsn: usr.bin/checknr/Makefile 5.3
SCCS-vsn: usr.bin/fstat/Makefile 5.4
SCCS-vsn: usr.bin/vacation/Makefile 5.3
SCCS-vsn: usr.bin/yes/Makefile 5.3
SCCS-vsn: usr.bin/hexdump/Makefile 5.3
SCCS-vsn: usr.bin/nfsstat/Makefile 5.2
SCCS-vsn: usr.bin/window/Makefile 5.7
SCCS-vsn: usr.bin/whois/Makefile 5.3
SCCS-vsn: old/which/Makefile 5.3
SCCS-vsn: old/whereis/Makefile 5.3
SCCS-vsn: usr.bin/cmp/Makefile 5.3
SCCS-vsn: usr.bin/tcopy/Makefile 5.3
SCCS-vsn: usr.bin/telnet/Makefile 5.1
SCCS-vsn: usr.bin/tftp/Makefile 5.9
SCCS-vsn: usr.bin/tip/Makefile 5.9
SCCS-vsn: usr.bin/rlogin/Makefile 5.5
SCCS-vsn: usr.bin/banner/Makefile 5.3
SCCS-vsn: usr.bin/renice/Makefile 5.3
SCCS-vsn: usr.bin/rdist/Makefile 5.9
SCCS-vsn: usr.bin/quota/Makefile 5.3

56 files changed:
usr/src/old/cpio/Makefile
usr/src/old/whereis/Makefile
usr/src/old/which/Makefile
usr/src/usr.bin/Makefile
usr/src/usr.bin/apply/Makefile
usr/src/usr.bin/apropos/Makefile
usr/src/usr.bin/banner/Makefile
usr/src/usr.bin/biff/Makefile
usr/src/usr.bin/checknr/Makefile
usr/src/usr.bin/chpass/Makefile
usr/src/usr.bin/cmp/Makefile
usr/src/usr.bin/col/Makefile
usr/src/usr.bin/colcrt/Makefile
usr/src/usr.bin/colrm/Makefile
usr/src/usr.bin/dc/Makefile
usr/src/usr.bin/deroff/Makefile
usr/src/usr.bin/diction/Makefile
usr/src/usr.bin/diction/diction/Makefile [new file with mode: 0644]
usr/src/usr.bin/diction/explain/Makefile [new file with mode: 0644]
usr/src/usr.bin/diction/style/Makefile [new file with mode: 0644]
usr/src/usr.bin/diction/style1/Makefile [new file with mode: 0644]
usr/src/usr.bin/diction/style2/Makefile [new file with mode: 0644]
usr/src/usr.bin/diction/style3/Makefile [new file with mode: 0644]
usr/src/usr.bin/dirname/Makefile
usr/src/usr.bin/du/Makefile
usr/src/usr.bin/env/Makefile [new file with mode: 0644]
usr/src/usr.bin/finger/Makefile
usr/src/usr.bin/fstat/Makefile
usr/src/usr.bin/hexdump/Makefile
usr/src/usr.bin/locate/Makefile [new file with mode: 0644]
usr/src/usr.bin/locate/bigram/Makefile [new file with mode: 0644]
usr/src/usr.bin/locate/code/Makefile [new file with mode: 0644]
usr/src/usr.bin/locate/locate/Makefile
usr/src/usr.bin/mkfifo/Makefile
usr/src/usr.bin/nfsstat/Makefile
usr/src/usr.bin/paste/Makefile [new file with mode: 0644]
usr/src/usr.bin/ptx/Makefile
usr/src/usr.bin/quota/Makefile
usr/src/usr.bin/rdist/Makefile
usr/src/usr.bin/renice/Makefile
usr/src/usr.bin/rlogin/Makefile
usr/src/usr.bin/ruptime/Makefile
usr/src/usr.bin/rwho/Makefile
usr/src/usr.bin/script/Makefile
usr/src/usr.bin/showmount/Makefile
usr/src/usr.bin/soelim/Makefile
usr/src/usr.bin/tcopy/Makefile
usr/src/usr.bin/telnet/Makefile
usr/src/usr.bin/tftp/Makefile
usr/src/usr.bin/tip/Makefile
usr/src/usr.bin/tset/Makefile
usr/src/usr.bin/vacation/Makefile
usr/src/usr.bin/whatis/Makefile
usr/src/usr.bin/whois/Makefile
usr/src/usr.bin/window/Makefile
usr/src/usr.bin/yes/Makefile

index 3cfca50..598e672 100644 (file)
@@ -1,48 +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
-# 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.6 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  cpio.c
-OBJS=
-MAN=   cpio.0 cpio_format.0
+#      @(#)Makefile    5.7 (Berkeley) %G%
 
 
-all: cpio
+PROG=  cpio
+MAN1=  cpio.0
+MAN5=  cpio_format.0
+DPADD= ${LIBCOMPAT}
+LDADD= -lcompat
 
 
-cpio: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} cpio.c -lcompat
-
-clean:
-       rm -f ${OBJS} core cpio
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 cpio ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 cpio.0 ${DESTDIR}/usr/man/cat1
-       install -c -o bin -g bin -m 444 cpio_format.0 ${DESTDIR}/usr/man/cat5
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index cef4d88..82e726d 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  whereis.c
-OBJS=
-MAN=   whereis.0
+PROG=  whereis
 
 
-all: whereis
-
-whereis: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core whereis
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 whereis ${DESTDIR}/usr/bin
-       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 5d6f2b1..caba9e1 100644 (file)
@@ -1,25 +1,13 @@
-#
-# 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%
-#
-MAN=   which.0
+#      @(#)Makefile    5.3 (Berkeley) %G%
 
 
-all which clean cleandir depend lint tags:
+MAN1=  which.0
 
 
-install: ${MAN}
-       install -c -o bin -g bin -m 755 which.csh ${DESTDIR}/usr/bin/which
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+all: ${MAN1}
+
+which clean cleandir depend lint tags:
+
+install: maninstall
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${.CURDIR}/which.csh ${DESTDIR}${BINDIR}/which
+
+.include <bsd.prog.mk>
index 493d714..bfff914 100644 (file)
@@ -1,47 +1,23 @@
-#
-# 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.1 (Berkeley) %G%
-#
+#      @(#)Makefile    5.2 (Berkeley) %G%
 
 # not currently working
 
 # not currently working
-# pstat, tn3270, w
+# ktrace, pstat, tn3270, uucp, find, login
+# need conversion
+# ex, tip, tn3270, learn
 
 
-SUBDIR=        apply awk banner basename bc biff cal calendar checknr \
-       chpass cmp col colcrt colrm comm compress cpio cut \
-       dc deroff des diction diff diff3 du eqn ex \
-       expand false file find finger fold from fstat ftp \
-       graph grep groups head hexdump join last lastcomm learn \
-       leave ln locate lock \
-       logger look machine mail make man mesg more msgs mt netstat \
-       nfsstat nice nohup pagesize passwd paste plot pr printenv \
-       printf ptx quota rdist refer renice rlogin roff rsh \
-       ruptime rwho sccs script sed sendbug soelim sort spell spline \
-       split su sum sysline systat tail talk tbl tc tcopy tee telnet \
-       tftp time tip touch tput tr true tset tty ul uniq \
-       units users uucp uuencode vacation vmstat wall wc what whereis \
-       which \
-       who whoami whois window write xsend yes
+SUBDIR=        apply apropos at awk banner basename bc biff cal calendar checknr \
+       chpass cmp col colcrt colrm column comm compress cpio cut \
+       dc deroff des diction diff dirname du env eqn \
+       ex expand false file finger fmt fold from fstat ftp \
+       graph grep groups head hexdump join last lastcomm learn leave \
+       ln locate lock logger login look machine mail make man mesg \
+       mkfifo more msgs mt netstat nfsstat nice nohup pagesize passwd \
+       paste plot pr printenv printf ptx quota rdist refer renice \
+       rlogin roff rsh ruptime rwho sccs script sed showmount \
+       soelim sort spell spline split su sum sysline systat tail talk \
+       tbl tcopy tee telnet tftp time tip touch tput tr true \
+       tset tty ul unexpand uniq units users uudecode uuencode \
+       vacation vis vmstat w wall wc what whatis whereis which who \
+       whoami whois window write xargs xsend yes
 
 
-all clean cleandir depend install lint tags: FRC
-       @-for i in ${SUBDIR}; do \
-               (echo "==> $$i"; cd $$i; \
-                   make ${MFLAGS} DESTDIR=${DESTDIR} $@); done
-
-${SUBDIR}: FRC
-       cd $@; make ${MFLAGS} DESTDIR=${DESTDIR}
-
-FRC:
+.include <bsd.subdir.mk>
index 1e3de77..d258b2e 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  apply.c
-OBJS=
-MAN=   apply.0
+PROG=  apply
 
 
-all: apply
-
-apply: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core apply
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 apply ${DESTDIR}/usr/bin
-       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 d82e3ab..e66aa1b 100644 (file)
@@ -1,48 +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.1 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-VPATH= ../man
-SRCS=  apropos.c config.c
-OBJS=  apropos.o config.o
-MAN=   apropos.0
-
-all: apropos
-
-apropos: ${LIBC} ${OBJS}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-clean:
-       rm -f core apropos ${OBJS}
+#      @(#)Makefile    5.2 (Berkeley) %G%
 
 
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend:
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 apropos ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint:
-       lint ${CFLAGS} ${SRCS}
+PROG=  apropos
+SRCS=  apropos.c config.c
+.PATH: ${.CURDIR}/../man
 
 
-tags:
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 1bdaede..18d5498 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  banner.c
-OBJS=
-MAN=   banner.0
+PROG=  banner
 
 
-all: banner
-
-banner: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core banner
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 banner ${DESTDIR}/usr/bin
-       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 3f13920..77eb964 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  biff.c
-OBJS=
-MAN=   biff.0
+PROG=  biff
 
 
-all: biff
-
-biff: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core biff
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 biff ${DESTDIR}/usr/bin
-       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 864aec3..31bd206 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  checknr.c
-OBJS=
-MAN=   checknr.0
+PROG=  checknr
 
 
-all: checknr
-
-checknr: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core checknr
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 checknr ${DESTDIR}/usr/bin
-       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 9d010f9..e976f88 100644 (file)
@@ -1,55 +1,10 @@
-#
-# 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=  chpass.c field.c util.c
-OBJS=  chpass.o field.o util.o
-MAN=   chpass.0
-
-all: chpass
-
-chpass: ${LIBC} ${OBJS}
-       ${CC} ${CFLAGS} -o $@ ${OBJS}
-
-clean:
-       rm -f ${OBJS} core chpass
+#      @(#)Makefile    5.3 (Berkeley) %G%
 
 
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o root -g bin -m 4755 chpass ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       rm -f ${DESTDIR}/usr/bin/chfn; ln ${DESTDIR}/usr/bin/chpass \
-           ${DESTDIR}/usr/bin/chfn
-       rm -f ${DESTDIR}/usr/bin/chsh; ln ${DESTDIR}/usr/bin/chpass \
-           ${DESTDIR}/usr/bin/chsh
-       rm -f ${DESTDIR}/usr/man/cat1/chfn.0
-       rm -f ${DESTDIR}/usr/man/cat1/chsh.0
-       ln ${DESTDIR}/usr/man/cat1/chpass.0 ${DESTDIR}/usr/man/cat1/chfn.0
-       ln ${DESTDIR}/usr/man/cat1/chpass.0 ${DESTDIR}/usr/man/cat1/chsh.0
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+PROG=  chpass
+SRCS=  chpass.c field.c util.c
+BINOWN=        root
+BINMODE=4555
+LINKS= ${BINDIR}/chpass ${BINDIR}/chfn ${BINDIR}/chpass ${BINDIR}/chsh
+MLINKS=        chpass.1 chfn.1 chpass.1 chsh.1
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 5bf288a..f38e7fe 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  cmp.c
-OBJS=
-MAN=   cmp.0
+PROG=  cmp
 
 
-all: cmp
-
-cmp: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core cmp
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 cmp ${DESTDIR}/usr/bin
-       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 12e2018..8cb9171 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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.1 (Berkeley) %G%
-#
+#      @(#)Makefile    5.2 (Berkeley) %G%
 
 
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  col.c
-OBJS=
-MAN=   col.0
+PROG=  col
 
 
-all: col
-
-col: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core col
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 col ${DESTDIR}/usr/bin
-       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 86d528e..f41a2a5 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  colcrt.c
-OBJS=
-MAN=   colcrt.0
+PROG=  colcrt
 
 
-all: colcrt
-
-colcrt: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core colcrt
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 colcrt ${DESTDIR}/usr/bin
-       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 d1b5649..d14f0f0 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  colrm.c
-OBJS=
-MAN=   colrm.0
+PROG=  colrm
 
 
-all: colrm
-
-colrm: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core colrm
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 colrm ${DESTDIR}/usr/bin
-       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 cabfe0f..3fd973e 100644 (file)
@@ -1,47 +1,5 @@
-#
-# 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.7 (Berkeley) %G%
-#
-CFLAGS=        -O -I.
-LIBC=  /lib/libc.a
-SRCS=  dc.c
-OBJS=
-MAN=   dc.0
+#      @(#)Makefile    5.8 (Berkeley) %G%
 
 
-all: dc
+PROG=  dc
 
 
-dc: ${LIBC}
-       ${CC} ${CFLAGS} -o $@ $@.c
-
-clean:
-       rm -f ${OBJS} core dc
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 dc ${DESTDIR}/usr/bin
-       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 f0dc264..92b6035 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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.1 (Berkeley) %G%
-#
+#      @(#)Makefile    5.2 (Berkeley) %G%
 
 
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  deroff.c
-OBJS=
-MAN=   deroff.0
+PROG=  deroff
 
 
-all: deroff
-
-deroff: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core deroff
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 deroff ${DESTDIR}/usr/bin
-       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 ebc8d8a..7b8d8d4 100644 (file)
@@ -1,69 +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    4.9 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  diction.c nwords.c end.c part.c pscan.c outp.c
-OBJS=  nwords.o end.o part.o pscan.o outp.o
-MAN=   diction.0 style.0
+#      @(#)Makefile    4.10 (Berkeley) %G%
 
 
-all: dprog style1 style2 style3
+SUBDIR=        diction explain style style1 style2 style3
 
 
-dprog: diction.c ${LIBC}
-       ${CC} ${CFLAGS} diction.c -o $@
-
-style1: nwords.o ${LIBC}
-       ${CC} nwords.o -o $@ -ll
-
-style2: end.o ${LIBC}
-       ${CC} end.o -o $@ -ll
-
-style3: part.o pscan.o outp.o ${LIBC}
-       ${CC} part.o pscan.o outp.o -o $@ -ll
-
-clean:
-       rm -f ${OBJS} part.c nwords.c end.c style1 style2 style3 dprog
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 dprog style1 style2 style3 \
-           ${DESTDIR}/usr/libexec
-       install -c -o bin -g bin -m 755 dict.d explain.d \
-           ${DESTDIR}/usr/share/dict
-       install -c -o bin -g bin -m 755 style.sh ${DESTDIR}/usr/bin/style
-       install -c -o bin -g bin -m 755 diction.sh ${DESTDIR}/usr/bin/diction
-       install -c -o bin -g bin -m 755 explain.sh ${DESTDIR}/usr/bin/explain
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       rm -f ${DESTDIR}/usr/man/cat1/explain.0
-       ln ${DESTDIR}/usr/man/cat1/diction.0 ${DESTDIR}/usr/man/cat1/explain.0
-
-lint: ${SRCS}
-       lint ${CFLAGS} nwords.c
-       lint ${CFLAGS} end.c
-       lint ${CFLAGS} part.c pscan.c outp.c
-
-tags: ${SRCS}
-       ctags nwords.c
-       ctags -a end.c
-       ctags -a part.c pscan.c outp.c
-       sort -o tags tags
+.include <bsd.subdir.mk>
diff --git a/usr/src/usr.bin/diction/diction/Makefile b/usr/src/usr.bin/diction/diction/Makefile
new file mode 100644 (file)
index 0000000..509a465
--- /dev/null
@@ -0,0 +1,14 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  diction
+BINDIR=        /usr/libexec
+MLINKS=        diction.1 explain.1
+
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
+           ${.CURDIR}/dict.d ${DESTDIR}/usr/share/dict
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${.CURDIR}/diction.sh ${DESTDIR}/usr/bin/diction
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.bin/diction/explain/Makefile b/usr/src/usr.bin/diction/explain/Makefile
new file mode 100644 (file)
index 0000000..4de4d76
--- /dev/null
@@ -0,0 +1,12 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+all explain clean cleandir depend lint tags:
+
+install:
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
+           ${.CURDIR}/explain.d ${DESTDIR}/usr/share/dict
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${.CURDIR}/explain.sh ${DESTDIR}${BINDIR}/explain
+
+.include "../../Makefile.inc"
+.include <bsd.own.mk>
diff --git a/usr/src/usr.bin/diction/style/Makefile b/usr/src/usr.bin/diction/style/Makefile
new file mode 100644 (file)
index 0000000..93ba884
--- /dev/null
@@ -0,0 +1,18 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+MAN1=  style.0
+
+all style: ${MAN1}
+
+clean depend lint tags:
+
+cleandir:
+       rm -f ${MAN1}
+
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+            ${.CURDIR}/style.sh ${DESTDIR}${BINDIR}/style
+
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.bin/diction/style1/Makefile b/usr/src/usr.bin/diction/style1/Makefile
new file mode 100644 (file)
index 0000000..5801832
--- /dev/null
@@ -0,0 +1,11 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  style1
+CFLAGS+=-I${.CURDIR}
+SRCS=  style1.c
+DPADD= ${LIBL}
+LDADD= -ll
+NOMAN= noman
+BINDIR=        /usr/libexec
+
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.bin/diction/style2/Makefile b/usr/src/usr.bin/diction/style2/Makefile
new file mode 100644 (file)
index 0000000..b85c373
--- /dev/null
@@ -0,0 +1,11 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  style2
+CFLAGS+=-I${.CURDIR} -I${.CURDIR}/../style1
+SRCS=  style2.c
+DPADD= ${LIBL}
+LDADD= -ll
+NOMAN= noman
+BINDIR=        /usr/libexec
+
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.bin/diction/style3/Makefile b/usr/src/usr.bin/diction/style3/Makefile
new file mode 100644 (file)
index 0000000..4cd77c3
--- /dev/null
@@ -0,0 +1,9 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  style3
+CFLAGS+=-I${.CURDIR} -I${.CURDIR}/../style1
+SRCS=  part.c pscan.c outp.c
+NOMAN= noman
+BINDIR=        /usr/libexec
+
+.include <bsd.prog.mk>
index bc3f000..33930e9 100644 (file)
@@ -1,3 +1,5 @@
+#      @(#)Makefile    5.2 (Berkeley) %G%
+
 PROG=  dirname
 NOMAN= noman
 
 PROG=  dirname
 NOMAN= noman
 
index c9b345e..26ba0da 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  du.c
-OBJS=
-MAN=   du.0
+PROG=  du
 
 
-all: du
-
-du: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core du
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 du ${DESTDIR}/usr/bin
-       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>
diff --git a/usr/src/usr.bin/env/Makefile b/usr/src/usr.bin/env/Makefile
new file mode 100644 (file)
index 0000000..b1cfa7f
--- /dev/null
@@ -0,0 +1,6 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  env
+NOMAN= noman
+
+.include <bsd.prog.mk>
index 0312626..ccaac70 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
+PROG=  finger
 SRCS=  finger.c lprint.c net.c sprint.c util.c
 SRCS=  finger.c lprint.c net.c sprint.c util.c
-OBJS=  finger.o lprint.o net.o sprint.o util.o
-MAN=   finger.0
 
 
-all: finger
-
-finger: ${LIBC} ${OBJS}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-clean:
-       rm -f ${OBJS} core finger
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 finger ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 finger.0 ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index aad6346..a686cc1 100644 (file)
@@ -1,49 +1,11 @@
-#
-# 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
-VPATH= ../../bin/ps
-LIBC=  /lib/libc.a
+PROG=  fstat
 SRCS=  fstat.c devname.c
 SRCS=  fstat.c devname.c
-OBJS=  fstat.o devname.o
-MAN=   fstat.0
+.PATH: ${.CURDIR}/../../bin/ps
+DPADD= ${LIBUTIL}
+LDADD= -lutil
+BINGRP=        kmem
+BINMODE=2555
 
 
-all: fstat
-
-fstat: ${LIBC} ${OBJS}
-       ${CC} -o $@ ${CFLAGS} $@.c -lutil
-
-clean:
-       rm -f ${OBJS} core fstat
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g kmem -m 2755 fstat ${DESTDIR}/usr/bin
-       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 8e936e2..8317bd0 100644 (file)
@@ -1,54 +1,8 @@
-#
-# 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=  conv.c display.c hexdump.c parse.c
-OBJS=  conv.o display.o hexdump.o parse.o
-MAN=   hexdump.0
+#      @(#)Makefile    5.3 (Berkeley) %G%
 
 
-all: hexdump
+PROG=  hexdump
+SRCS=  conv.c display.c hexdump.c hexsyntax.c odsyntax.c parse.c
+MAN1=  hexdump.0 od.0
+LINKS= ${BINDIR}/hexdump ${BINDIR}/od
 
 
-hexdump: ${LIBC} ${OBJS}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-hexdump.0: hexdump.1
-       tbl hexdump.1 | nroff -man > hexdump.0
-
-clean:
-       rm -f ${OBJS} core hexdump
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 hexdump ${DESTDIR}/usr/bin
-       rm -f ${DESTDIR}/usr/bin/od
-       ln ${DESTDIR}/usr/bin/hexdump ${DESTDIR}/usr/bin/od
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       rm -f ${DESTDIR}/usr/man/cat1/od.0
-       ln ${DESTDIR}/usr/man/cat1/hexdump.0 ${DESTDIR}/usr/man/cat1/od.0
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.bin/locate/Makefile b/usr/src/usr.bin/locate/Makefile
new file mode 100644 (file)
index 0000000..afd160b
--- /dev/null
@@ -0,0 +1,5 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+SUBDIR=        bigram code locate
+
+.include <bsd.subdir.mk>
diff --git a/usr/src/usr.bin/locate/bigram/Makefile b/usr/src/usr.bin/locate/bigram/Makefile
new file mode 100644 (file)
index 0000000..dc47d14
--- /dev/null
@@ -0,0 +1,7 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  locate.bigram
+NOMAN= noman
+BINDIR=        /usr/libexec
+
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.bin/locate/code/Makefile b/usr/src/usr.bin/locate/code/Makefile
new file mode 100644 (file)
index 0000000..ff401f9
--- /dev/null
@@ -0,0 +1,8 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  locate.code
+CFLAGS+=-I${.CURDIR}/../locate
+NOMAN= noman
+BINDIR=        /usr/libexec
+
+.include <bsd.prog.mk>
index 772dba0..6a5a749 100644 (file)
@@ -1,58 +1,10 @@
-#
-# 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.1 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /usr/lib/libc.a
-SRCS=  locate.c bigram.c code.c
-OBJS=  locate.o bigram.o code.o
-MAN=   locate.0
+#      @(#)Makefile    5.2 (Berkeley) %G%
 
 
-all: locate bigram code
+PROG=  locate
 
 
-bigram code locate:${LIBC}
-       ${CC} ${CFLAGS} -o $@ $@.c
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${.CURDIR}/updatedb.csh ${DESTDIR}/usr/libexec/locate.updatedb
 
 
-clean:
-       rm -f ${OBJS} core locate bigram code
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 locate ${DESTDIR}/usr/bin
-       install -s -o bin -g bin -m 755 code \
-           ${DESTDIR}/usr/libexec/locate.code
-       install -s -o bin -g bin -m 755 bigram \
-           ${DESTDIR}/usr/libexec/locate.bigram
-       install -c -o bin -g bin -m 755 updatedb.csh \
-           ${DESTDIR}/usr/libexec/locate.updatedb
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} locate.c
-       lint ${CFLAGS} bigram.c
-       lint ${CFLAGS} code.c
-
-tags: ${SRCS}
-       ctags locate.c
-       ctags -a bigram.c
-       ctags -a code.c
-       sort -o tags tags
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
index aa19b2a..5ed3c1c 100644 (file)
@@ -1,3 +1,5 @@
+#      @(#)Makefile    5.2 (Berkeley) %G%
+
 PROG=  mkfifo
 
 .include <bsd.prog.mk>
 PROG=  mkfifo
 
 .include <bsd.prog.mk>
index 4555bfb..97a95e8 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.1 (Berkeley) %G%
-#
+#      @(#)Makefile    5.2 (Berkeley) %G%
 
 
-CFLAGS=        -O -DNFS
-LIBC=  /lib/libc.a
-SRCS=  nfsstat.c
-OBJS=
-MAN=   nfsstat.0
+PROG=  nfsstat
+CFLAGS+=-DNFS
+BINGRP=        kmem
+BINMODE=2555
 
 
-all: nfsstat
-
-nfsstat: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core nfsstat
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g kmem -m 2755 nfsstat ${DESTDIR}/usr/bin
-       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>
diff --git a/usr/src/usr.bin/paste/Makefile b/usr/src/usr.bin/paste/Makefile
new file mode 100644 (file)
index 0000000..e122d94
--- /dev/null
@@ -0,0 +1,5 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  paste
+
+.include <bsd.prog.mk>
index 400b8a3..fbd0939 100644 (file)
@@ -1,49 +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=  ptx.c
-OBJS=
-MAN=   ptx.0
+PROG=  ptx
 
 
-all: ptx
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/eign \
+           ${DESTDIR}/usr/share/dict
 
 
-ptx: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core ptx
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 ptx ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       install -c -o bin -g bin -m 444 eign ${DESTDIR}/usr/share/dict
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 10a8668..5132be1 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=  quota.c
-OBJS=
-MAN=   quota.0
+PROG=  quota
+BINOWN=        root
+BINMODE=4555
 
 
-all: quota
-
-quota: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core quota
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o root -g bin -m 4755 quota ${DESTDIR}/usr/bin
-       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 41be56d..65c8af7 100644 (file)
@@ -1,48 +1,10 @@
-#
-# 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%
-#
-LIBC=  /lib/libc.a
-RDIST= /usr/bin/rdist
-CFLAGS=        -g
-SRCS=  docmd.c expand.c gram.y lookup.c main.c server.c
-OBJS=  docmd.o expand.o gram.o lookup.o main.o server.o
-MAN=   rdist.0
+#      @(#)Makefile    5.9 (Berkeley) %G%
 
 
-all: rdist
+PROG=  rdist
+CFLAGS+=-I${.CURDIR}
+SRCS=  docmd.c expand.c lookup.c main.c server.c
+OBJS+= gram.o
+BINOWN=        root
+BINMODE=4555
 
 
-rdist: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-clean:
-       rm -f ${OBJS} core rdist
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o root -g bin -m 4751 rdist ${DESTDIR}${RDIST}
-       install -c -o bin -g bin -m 444 rdist.0 ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index ea524a4..c911390 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  renice.c
-OBJS=
-MAN=   renice.0
+PROG=  renice
 
 
-all: renice
-
-renice: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core renice
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 renice ${DESTDIR}/usr/bin
-       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 3325e3e..8912aa1 100644 (file)
@@ -1,49 +1,11 @@
-#
-# 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) 5/11/89
-#
+#      @(#)Makefile    5.5 (Berkeley) %G%
 
 
-CFLAGS=        -O -DKERBEROS -I/usr/include/kerberosIV
-LIBC=  /lib/libc.a
-SRCS=  rlogin.c kcmd/krcmd.c kcmd/kcmd.c des/des_rw.c
-OBJS=  krcmd.o kcmd.o des_rw.o
-MAN=   rlogin.0
-VPATH= des:kcmd
+PROG=  rlogin
+SRCS=  rlogin.c krcmd.c kcmd.c des_rw.c
+DPADD= ${LIBKRB} ${LIBDES}
+CFLAGS+=-DKERBEROS
+LDADD= -lkrb -ldes
+BINOWN=        root
+BINMODE=4555
 
 
-all: rlogin
-
-rlogin: ${LIBC} ${OBJS}
-       ${CC} -o $@ ${CFLAGS} $@.c ${OBJS} -lkrb -ldes
-
-clean:
-       rm -f ${OBJS} core rlogin ${OBJS}
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o root -g bin -m 4755 rlogin ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 rlogin.0 ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index bdcf436..74ee1af 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  ruptime.c
-OBJS=
-MAN=   ruptime.0
+PROG=  ruptime
 
 
-all: ruptime
-
-ruptime: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core ruptime
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 ruptime ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ruptime.0 ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 3b650e4..c018dab 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  rwho.c
-OBJS=
-MAN=   rwho.0
+PROG=  rwho
 
 
-all: rwho
-
-rwho: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core rwho
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 rwho ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 rwho.0 ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index f1a089a..4073a35 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  script.c
-OBJS=
-MAN=   script.0
+PROG=  script
 
 
-all: script
-
-script: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core script
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 script ${DESTDIR}/usr/bin
-       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 c7d3cae..c57db86 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 6.1 (Berkeley) %G%
-#
+#      @(#)Makefile    6.2 (Berkeley) %G%
 
 
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  showmount.c
-OBJS=
-MAN=   showmount.0
+PROG=  showmount
+DPADD= ${LIBRPC}
+LDADD= -lrpc
 
 
-all: showmount
-
-showmount: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c -lrpc
-
-clean:
-       rm -f ${OBJS} core showmount
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 showmount ${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 f963926..4c970e4 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  soelim.c
-OBJS=
-MAN=   soelim.0
+PROG=  soelim
 
 
-all: soelim
-
-soelim: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core soelim
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 soelim ${DESTDIR}/usr/bin
-       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 91d3355..5dfcae4 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  tcopy.c
-OBJS=
-MAN=   tcopy.0
+PROG=  tcopy
 
 
-all: tcopy
-
-tcopy: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core tcopy
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 tcopy ${DESTDIR}/usr/bin
-       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 9c42507..8df3ead 100644 (file)
@@ -1,29 +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    1.18 (Berkeley) %G%
-#
-
-# The following is the telnet makefile.  The sources are down one level
-# in directory "Source" because the sources are shared between telnet
-# and tn3270.
-
-VPATH  =       Source
-INCLUDES=      -ISource
-
+#      @(#)Makefile    5.1 (Berkeley) %G%
 #
 # TERMCAP      Define this if your system is termcap based,
 #              otherwise a terminfo based system is assumed.
 #
 # TERMCAP      Define this if your system is termcap based,
 #              otherwise a terminfo based system is assumed.
@@ -46,78 +21,12 @@ INCLUDES=   -ISource
 # strrchr=rindex Define this if you do not have strrchr() in your
 #              C libaray (but you do have rindex...)
 #
 # strrchr=rindex Define this if you do not have strrchr() in your
 #              C libaray (but you do have rindex...)
 #
+PROG=  telnet
+CFLAGS+=-DTERMCAP -DSRCRT -DKLUDGELINEMODE -DUSE_TERMIO
+LDADD= -ltermcap
+DPADD= ${LIBTERMCAP}
 
 
-DEFINES= -DTERMCAP -DSRCRT -DKLUDGELINEMODE -DUSE_TERMIO
-
-#
-# LIBS should be set to any libraries that need to be included,
-# like the termcap or terminfo library.  LIBPATH is the paths
-# to these libraries, for dependencies.
-#      For CRAY: LIBS= -lcurses -lnet
-#
-LIBS=  -ltermcap
-LIBPATH= /lib/libc.a /usr/lib/libtermcap.a
-
-SRCS=  commands.c main.c network.c ring.c \
-       sys_bsd.c telnet.c terminal.c \
+SRCS=  commands.c main.c network.c ring.c sys_bsd.c telnet.c terminal.c \
        tn3270.c utilities.c
 
        tn3270.c utilities.c
 
-CFLAGS=        -O ${INCLUDES} ${DEFINES}
-
-ALLHC= ${SRCS} \
-       Source/defines.h Source/externs.h Source/fdset.h Source/general.h \
-       Source/ring.h Source/types.h
-
-OBJS=  commands.o main.o network.o ring.o sys_bsd.o \
-       telnet.o terminal.o tn3270.o utilities.o
-MAN=   telnet.0
-
-#
-# 4.4BSD
-#              DEST=${DESTDIR}/usr/bin
-#
-# 4.3BSD
-#              DEST=${DESTDIR}/usr/ucb
-#
-DEST=${DESTDIR}/usr/bin
-
-#
-# These next three lines are not needed in 4.4BSD
-#
-# .SUFFIXES: .0 .1
-# .1.0:
-#      nroff -man -h $< > $@
-
-all: telnet
-
-telnet:        ${OBJS} ${LIBPATH}
-       ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS}
-
-clean: FRC
-       rm -f ${OBJS} core errs l.errs telnet
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-clist: FRC ${SRCS}
-       @for i in ${SRCS} ; \
-               do (echo ${DIRPATH}$$i); done
-
-hclist:        FRC ${ALLHC}
-       @for i in ${ALLHC} ; \
-               do (echo ${DIRPATH}$$i); done
-
-depend: FRC ${SRCS}
-       mkdep ${CFLAGS} `make clist`
-
-install: ${MAN} FRC
-       install -s -o bin -g bin -m 755 telnet ${DEST}
-       install -c -o bin -g bin -m 444 telnet.0 ${DESTDIR}/usr/man/cat1
-
-lint: FRC ${SRCS}
-       lint ${CFLAGS} `make clist`
-
-tags: FRC ${SRCS}
-       ctags `make hclist`
-
-FRC:
+.include <bsd.prog.mk>
index b8c9b21..9aa70a5 100644 (file)
@@ -1,47 +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.8 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  main.c tftp.c tftpsubs.c
-OBJS=  main.o tftp.o tftpsubs.o
-MAN=   tftp.0
-
-all: tftp
-
-tftp: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-clean:
-       rm -f ${OBJS} core tftp
+#      @(#)Makefile    5.9 (Berkeley) %G%
 
 
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 tftp ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 tftp.0 ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+PROG=  tftp
+SRCS=  main.c tftp.c tftpsubs.c
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index ccab9ae..9a183b7 100644 (file)
@@ -1,29 +1,11 @@
-#
-# 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.8 (Berkeley) %G%
-#
-# make file for intermachine communications package
+#      @(#)Makefile    5.9 (Berkeley) %G%
 #
 # Files are:
 #      /etc/remote             remote host description file
 #      /etc/phones             phone number file, owned by ${OWNER} and
 #
 # Files are:
 #      /etc/remote             remote host description file
 #      /etc/phones             phone number file, owned by ${OWNER} and
-#                                mode 6??
-#      ${ADM}/aculog           ACU accounting file, owned by ${OWNER} and
-#                                mode 6?? {if ACULOG defined}
+#                              mode 6??
+#      /var/log/aculog         ACU accounting file, owned by ${OWNER} and
+#                              mode 6?? {if ACULOG defined}
 # Presently supports:
 #      BIZCOMP
 #      DEC DF02-AC, DF03-AC
 # Presently supports:
 #      BIZCOMP
 #      DEC DF02-AC, DF03-AC
@@ -33,7 +15,6 @@
 #      VENTEL 212+
 #      VADIC 831 RS232 adaptor
 #      VADIC 3451
 #      VENTEL 212+
 #      VADIC 831 RS232 adaptor
 #      VADIC 3451
-# (drivers are located in aculib.a)
 #
 # Configuration defines:
 #      DF02, DF03, DN11        ACU's supported
 #
 # Configuration defines:
 #      DF02, DF03, DN11        ACU's supported
 #                              writes on local side
 #      BUFSIZ                  buffer sizing from stdio, must be fed
 #                              explicitly to remcap.c if not 1024
 #                              writes on local side
 #      BUFSIZ                  buffer sizing from stdio, must be fed
 #                              explicitly to remcap.c if not 1024
-ADM=   usr/adm
-CONFIG=        -DV831 -DVENTEL -DHAYES -DCOURIER
-CFLAGS=        -O -DDEFBR=1200 -DDEFFS=BUFSIZ -DACULOG -DPRISTINE
-LIBC=  /lib/libc.a
-SRCS=  acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c partab.c remcap.c \
-       remote.c tip.c tipout.c uucplock.c value.c vars.c
-OBJS=  acu.o acutab.o cmds.o cmdtab.o cu.o hunt.o log.o partab.o remcap.o \
-       remote.o tip.o tipout.o uucplock.o value.o vars.o
-MAN=   tip.0
-
-all: aculib/aculib.a tip
-
-tip: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${OBJS} aculib/aculib.a
-
-# acutab is configuration dependent, and so depends on the makefile
-acutab.o: Makefile
-acutab.o: acutab.c
-       ${CC} -c ${CFLAGS} ${CONFIG} acutab.c
 
 
-# remote.o depends on the makefile because of DEFBR and DEFFS
-# log.o depends on the makefile because of ACULOG
-log.o remote.o: Makefile
-
-aculib/aculib.a: FRC
-       cd aculib; make ${MFLAGS}
-
-clean:
-       rm -f ${OBJS} core tip
-       cd aculib; make ${MFLAGS} clean
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-       cd aculib; make ${MFLAGS} cleandir
-
-depend:
-       mkdep ${CFLAGS} ${SRCS}
-       cd aculib; make ${MFLAGS} depend
-
-install: ${MAN}
-       cd aculib; make ${MFLAGS} install
-       install -s -o uucp -g dialer -m 4710 tip ${DESTDIR}/usr/bin
-       rm -f ${DESTDIR}/usr/bin/cu
-       ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu
-       install -c -o bin -g bin -m 444 tip.0 ${DESTDIR}/usr/man/cat1
-       rm -f ${DESTDIR}/usr/man/cat1/cu.0
-       ln ${DESTDIR}/usr/man/cat1/tip.0 ${DESTDIR}/usr/man/cat1/cu.0
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+PROG=  tip
+CFLAGS+=-I${.CURDIR} -DV831 -DVENTEL -DHAYES -DCOURIER -DDEFBR=1200 \
+       -DDEFFS=BUFSIZ -DACULOG -DPRISTINE
+.PATH: ${.CURDIR}/aculib
+BINOWN=        uucp
+BINGRP=        dialer
+BINMODE=4510
+LINKS= ${BINDIR}/tip ${BINDIR}/cu
+MLINKS=        tip.1 cu.1
+SRCS=  acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c partab.c remcap.c \
+       remote.c tip.c tipout.c uucplock.c value.c vars.c biz22.c courier.c \
+       df.c dn11.c hayes.c v3451.c v831.c ventel.c
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
-       cd aculib; make ${MFLAGS} tags
+# -- acutab is configuration dependent, and so depends on the Makefile
+# -- remote.o depends on the Makefile because of DEFBR and DEFFS
+# -- log.o depends on the Makefile because of ACULOG
+acutab.o log.o remote.o: Makefile
 
 
-FRC:
+.include <bsd.prog.mk>
index 258b4b1..0af28e3 100644 (file)
@@ -1,48 +1,9 @@
-#
-# 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.11 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  tset.c
-MAN=   tset.0
+#      @(#)Makefile    5.12 (Berkeley) %G%
 
 
-all: tset
+PROG=  tset
+DPADD= ${LIBTERMCAP} ${LIBCOMPAT}
+LDADD= -ltermcap -lcompat
+LINKS= ${BINDIR}/tset ${BINDIR}/reset
+MLINKS=        tset.1 reset.1
 
 
-tset: ${SRCS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${SRCS} -ltermlib -lcompat
-
-clean:
-       rm -f ${OBJS} core tset
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 tset ${DESTDIR}/usr/bin
-       rm -f ${DESTDIR}/usr/bin/reset
-       ln ${DESTDIR}/usr/bin/tset ${DESTDIR}/usr/bin/reset
-       install -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 8f0edb4..e40b25d 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=  vacation.c
-OBJS=
-MAN=   vacation.0
+PROG=  vacation
+DPADD= ${LIBDBM}
+LDADD= -ldbm
 
 
-all: vacation
-
-vacation: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c -ldbm
-
-clean:
-       rm -f ${OBJS} core vacation
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 vacation ${DESTDIR}/usr/bin
-       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 6bbda05..378bc02 100644 (file)
@@ -1,48 +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.1 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-VPATH= ../man
-SRCS=  whatis.c config.c
-OBJS=  whatis.o config.o
-MAN=   whatis.0
-
-all: whatis
-
-whatis: ${LIBC} ${OBJS}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-clean:
-       rm -f core whatis ${OBJS}
+#      @(#)Makefile    5.2 (Berkeley) %G%
 
 
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend:
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 whatis ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint:
-       lint ${CFLAGS} ${SRCS}
+PROG=  whatis
+SRCS=  whatis.c config.c
+.PATH: ${.CURDIR}/../man
 
 
-tags:
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index a6264da..af59ee6 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  whois.c
-OBJS=
-MAN=   whois.0
+PROG=  whois
 
 
-all: whois
-
-whois: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core whois
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 whois ${DESTDIR}/usr/bin
-       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 f221148..3c6e4ac 100644 (file)
@@ -1,71 +1,21 @@
-#
-# 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.6 (Berkeley) %G%
-#
-CFLAGS=        -O -R
-LIBC=  /lib/libc.a
+#      @(#)Makefile    5.7 (Berkeley) %G%
+
+PROG=  window
+CFLAGS+=-R
 SRCS=  char.c cmd.c cmd1.c cmd2.c cmd3.c cmd4.c cmd5.c cmd6.c cmd7.c \
        context.c error.c lcmd.c lcmd1.c lcmd2.c main.c mloop.c parser1.c \
        parser2.c parser3.c parser4.c parser5.c scanner.c startup.c string.c \
        ttf100.c ttgeneric.c tth19.c tth29.c ttinit.c ttoutput.c tttermcap.c \
 SRCS=  char.c cmd.c cmd1.c cmd2.c cmd3.c cmd4.c cmd5.c cmd6.c cmd7.c \
        context.c error.c lcmd.c lcmd1.c lcmd2.c main.c mloop.c parser1.c \
        parser2.c parser3.c parser4.c parser5.c scanner.c startup.c string.c \
        ttf100.c ttgeneric.c tth19.c tth29.c ttinit.c ttoutput.c tttermcap.c \
-       tttvi925.c ttwyse60.c ttwyse75.c ttzapple.c ttzentec.c \
-       var.c win.c wwadd.c wwalloc.c wwbox.c wwchild.c \
-       wwclose.c wwclreol.c wwclreos.c wwcursor.c wwdata.c wwdelchar.c \
-       wwdelete.c wwdelline.c wwdump.c wwend.c wwenviron.c wwerror.c \
-       wwflush.c wwframe.c wwgets.c wwinit.c wwinschar.c wwinsline.c \
-       wwiomux.c wwlabel.c wwmisc.c wwmove.c wwopen.c wwprintf.c wwpty.c \
-       wwputc.c wwputs.c wwredraw.c wwredrawwin.c wwrint.c wwscroll.c \
-       wwsize.c wwspawn.c wwsuspend.c wwtty.c wwunframe.c wwupdate.c \
-       wwwrite.c xx.c xxflush.c compress.c
-OBJS=  char.o cmd.o cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o cmd7.o \
-       context.o error.o lcmd.o lcmd1.o lcmd2.o main.o mloop.o parser1.o \
-       parser2.o parser3.o parser4.o parser5.o scanner.o startup.o string.o \
-       ttf100.o ttgeneric.o tth19.o tth29.o ttinit.o ttoutput.o tttermcap.o \
-       tttvi925.o ttwyse60.o ttwyse75.o ttzapple.o ttzentec.o \
-       var.o win.o wwadd.o wwalloc.o wwbox.o wwchild.o \
-       wwclose.o wwclreol.o wwclreos.o wwcursor.o wwdata.o wwdelchar.o \
-       wwdelete.o wwdelline.o wwdump.o wwend.o wwenviron.o wwerror.o \
-       wwflush.o wwframe.o wwgets.o wwinit.o wwinschar.o wwinsline.o \
-       wwiomux.o wwlabel.o wwmisc.o wwmove.o wwopen.o wwprintf.o wwpty.o \
-       wwputc.o wwputs.o wwredraw.o wwredrawwin.o wwrint.o wwscroll.o \
-       wwsize.o wwspawn.o wwsuspend.o wwtty.o wwunframe.o wwupdate.o \
-       wwwrite.o xx.o xxflush.o compress.o
+       tttvi925.c ttwyse60.c ttwyse75.c ttzapple.c ttzentec.c var.c win.c \
+       wwadd.c wwalloc.c wwbox.c wwchild.c wwclose.c wwclreol.c wwclreos.c \
+       wwcursor.c wwdata.c wwdelchar.c wwdelete.c wwdelline.c wwdump.c \
+       wwend.c wwenviron.c wwerror.c wwflush.c wwframe.c wwgets.c wwinit.c \
+       wwinschar.c wwinsline.c wwiomux.c wwlabel.c wwmisc.c wwmove.c \
+       wwopen.c wwprintf.c wwpty.c wwputc.c wwputs.c wwredraw.c \
+       wwredrawwin.c wwrint.c wwscroll.c wwsize.c wwspawn.c wwsuspend.c \
+       wwtty.c wwunframe.c wwupdate.c wwwrite.c xx.c xxflush.c compress.c
 MAN=   window.0
 MAN=   window.0
+DPADD= ${LIBTERMCAP}
+LDADD= -ltermcap
 
 
-all: window
-
-window: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS} -ltermcap
-
-clean:
-       rm -f ${OBJS} core window
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 window ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} -z ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 2e4e1ef..8d2931a 100644 (file)
@@ -1,48 +1,5 @@
-#
-# 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=  yes.c
-OBJS=
-MAN=   yes.0
+PROG=  yes
 
 
-all: yes
-
-yes: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core yes
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 yes ${DESTDIR}/usr/bin
-       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>