first pass for new make
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 12 May 1990 05:32:37 +0000 (21:32 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 12 May 1990 05:32:37 +0000 (21:32 -0800)
SCCS-vsn: old/as.tahoe/Makefile 5.1
SCCS-vsn: old/symorder/Makefile 5.3
SCCS-vsn: usr.bin/mkdep/Makefile 5.2
SCCS-vsn: old/cpp/Makefile 5.1
SCCS-vsn: old/as.vax/Makefile 5.9
SCCS-vsn: usr.bin/tsort/Makefile 5.2
SCCS-vsn: usr.bin/unifdef/Makefile 5.3
SCCS-vsn: usr.bin/vgrind/Makefile 5.7
SCCS-vsn: usr.bin/xinstall/Makefile 5.4
SCCS-vsn: usr.bin/xstr/Makefile 5.3
SCCS-vsn: usr.bin/yacc/Makefile 5.2
SCCS-vsn: usr.bin/struct/struct/Makefile 4.8
SCCS-vsn: usr.bin/strip/Makefile 5.4
SCCS-vsn: usr.bin/strings/Makefile 5.3
SCCS-vsn: usr.bin/size/Makefile 5.3
SCCS-vsn: usr.bin/ranlib/Makefile 5.2
SCCS-vsn: usr.bin/nm/Makefile 5.3
SCCS-vsn: usr.bin/mkstr/Makefile 5.3
SCCS-vsn: usr.bin/m4/Makefile 5.7
SCCS-vsn: usr.bin/lorder/Makefile 5.2
SCCS-vsn: old/lex/Makefile 4.6
SCCS-vsn: old/ld/Makefile 5.3
SCCS-vsn: usr.bin/indent/Makefile 5.11
SCCS-vsn: usr.bin/gprof/Makefile 5.17
SCCS-vsn: usr.bin/gcore/Makefile 5.3
SCCS-vsn: usr.bin/fsplit/Makefile 5.5
SCCS-vsn: usr.bin/fpr/Makefile 5.4
SCCS-vsn: usr.bin/error/Makefile 5.8
SCCS-vsn: usr.bin/ctags/Makefile 5.6
SCCS-vsn: old/pcc/cc/Makefile 5.3
SCCS-vsn: usr.bin/ar/Makefile 5.4
SCCS-vsn: share/tmac/Makefile 6.5
SCCS-vsn: share/tabset/Makefile 5.1
SCCS-vsn: share/zoneinfo/Makefile 5.5
SCCS-vsn: share/skel/Makefile 5.2
SCCS-vsn: share/termcap/Makefile 5.9
SCCS-vsn: share/Makefile 5.3
SCCS-vsn: share/man/Makefile 5.6
SCCS-vsn: share/man/man3f/Makefile 5.5
SCCS-vsn: share/man/man8/Makefile 5.6
SCCS-vsn: share/man/man8/man8.vax/Makefile 5.4
SCCS-vsn: share/man/man7/Makefile 5.5
SCCS-vsn: share/man/man5/Makefile 5.5
SCCS-vsn: share/man/man4/Makefile 5.5
SCCS-vsn: share/man/man4/man4.vax/Makefile 5.4
SCCS-vsn: share/man/man4/man4.tahoe/Makefile 5.4
SCCS-vsn: share/man/man3/Makefile 5.14
SCCS-vsn: old/ms/Makefile 5.3
SCCS-vsn: share/me/Makefile 6.9
SCCS-vsn: usr.bin/write/Makefile 5.3
SCCS-vsn: usr.bin/who/Makefile 5.3
SCCS-vsn: usr.bin/what/Makefile 5.3
SCCS-vsn: usr.bin/wc/Makefile 5.3
SCCS-vsn: usr.bin/wall/Makefile 5.4
SCCS-vsn: usr.bin/uniq/Makefile 5.2
SCCS-vsn: usr.bin/tty/Makefile 5.2
SCCS-vsn: usr.bin/true/Makefile 5.3
SCCS-vsn: usr.bin/tr/Makefile 5.2
SCCS-vsn: usr.bin/touch/Makefile 5.2
SCCS-vsn: usr.bin/time/Makefile 5.3
SCCS-vsn: usr.bin/tee/Makefile 5.3
SCCS-vsn: usr.bin/talk/Makefile 5.12
SCCS-vsn: usr.bin/tail/Makefile 5.3
SCCS-vsn: old/sum/Makefile 5.2
SCCS-vsn: usr.bin/su/Makefile 5.5
SCCS-vsn: usr.bin/split/Makefile 5.2
SCCS-vsn: usr.bin/spell/Makefile 4.12
SCCS-vsn: usr.bin/sort/Makefile 5.2
SCCS-vsn: old/sed/Makefile 4.6
SCCS-vsn: usr.bin/sed/Makefile 4.6
SCCS-vsn: usr.bin/sccs/Makefile 5.3
SCCS-vsn: usr.bin/printf/Makefile 5.3
SCCS-vsn: usr.bin/printenv/Makefile 5.3
SCCS-vsn: old/pr/Makefile 5.3
SCCS-vsn: usr.bin/passwd/Makefile 5.6
SCCS-vsn: usr.bin/more/Makefile 5.5
SCCS-vsn: bin/ln/Makefile 5.3
SCCS-vsn: usr.bin/join/Makefile 5.2
SCCS-vsn: usr.bin/head/Makefile 5.3
SCCS-vsn: usr.bin/tput/Makefile 5.5
SCCS-vsn: old/groups/Makefile 5.3
SCCS-vsn: usr.bin/xsend/Makefile 5.1
SCCS-vsn: usr.bin/xsend/enroll/Makefile 5.1
SCCS-vsn: usr.bin/xsend/xsend/Makefile 4.8
SCCS-vsn: usr.bin/xsend/xget/Makefile 5.1
SCCS-vsn: old/whoami/Makefile 5.3
SCCS-vsn: usr.bin/grep/Makefile 5.6
SCCS-vsn: usr.bin/w/Makefile 5.4
SCCS-vsn: usr.bin/vmstat/Makefile 5.3
SCCS-vsn: usr.bin/users/Makefile 5.3
SCCS-vsn: usr.bin/units/Makefile 5.3
SCCS-vsn: usr.bin/ul/Makefile 5.3
SCCS-vsn: usr.bin/find/Makefile 5.1
SCCS-vsn: old/tbl/Makefile 4.6
SCCS-vsn: usr.bin/systat/Makefile 5.7
SCCS-vsn: old/sysline/Makefile 5.8
SCCS-vsn: usr.bin/compress/Makefile 5.12
SCCS-vsn: usr.bin/false/Makefile 5.3
SCCS-vsn: usr.bin/spline/Makefile 5.2
SCCS-vsn: usr.bin/rsh/Makefile 5.5
SCCS-vsn: usr.bin/make/Makefile 5.1
SCCS-vsn: old/roff/Makefile 5.3
SCCS-vsn: old/roff/nroff_term/Makefile 4.10
SCCS-vsn: old/roff/nroff/Makefile 4.7
SCCS-vsn: old/roff/troff/Makefile 5.5
SCCS-vsn: old/refer/deliv/Makefile 5.1
SCCS-vsn: old/refer/addbib/Makefile 5.1
SCCS-vsn: old/refer/lookbib/Makefile 5.1
SCCS-vsn: old/refer/sortbib/Makefile 5.1
SCCS-vsn: old/refer/NOTUSED/whatabout/Makefile 5.1
SCCS-vsn: old/refer/hunt/Makefile 5.1
SCCS-vsn: old/refer/refer/Makefile 5.1
SCCS-vsn: old/refer/mkey/Makefile 5.1
SCCS-vsn: old/refer/OTHERS/Makefile 5.1
SCCS-vsn: old/refer/inv/Makefile 5.1
SCCS-vsn: old/refer/Makefile 4.15
SCCS-vsn: usr.bin/xargs/Makefile 5.1
SCCS-vsn: usr.bin/unexpand/Makefile 5.1
SCCS-vsn: usr.bin/plot/Makefile 4.14
SCCS-vsn: usr.bin/pagesize/Makefile 5.3
SCCS-vsn: usr.bin/at/Makefile 5.1
SCCS-vsn: usr.bin/at/at/Makefile 5.10
SCCS-vsn: usr.bin/at/atq/Makefile 5.1
SCCS-vsn: usr.bin/at/atrun/Makefile 5.1
SCCS-vsn: usr.bin/at/atrm/Makefile 5.1
SCCS-vsn: usr.bin/nice/Makefile 5.5
SCCS-vsn: usr.bin/mt/Makefile 5.3
SCCS-vsn: usr.bin/msgs/Makefile 5.8
SCCS-vsn: usr.bin/mesg/Makefile 5.2
SCCS-vsn: usr.bin/man/Makefile 5.9
SCCS-vsn: usr.bin/diff/Makefile 5.1
SCCS-vsn: usr.bin/diff/diff/Makefile 4.6
SCCS-vsn: usr.bin/diff/diff3/Makefile 4.7
SCCS-vsn: usr.bin/diff/diffh/Makefile 5.1
SCCS-vsn: old/machine/Makefile 5.3
SCCS-vsn: usr.bin/uudecode/Makefile 5.1
SCCS-vsn: usr.bin/look/Makefile 5.2
SCCS-vsn: usr.bin/basename/Makefile 5.2

138 files changed:
usr/src/bin/ln/Makefile
usr/src/old/as.tahoe/Makefile
usr/src/old/as.vax/Makefile
usr/src/old/cpp/Makefile
usr/src/old/groups/Makefile
usr/src/old/ld/Makefile
usr/src/old/lex/Makefile
usr/src/old/machine/Makefile
usr/src/old/ms/Makefile
usr/src/old/pcc/cc/Makefile
usr/src/old/pr/Makefile
usr/src/old/refer/Makefile
usr/src/old/refer/NOTUSED/whatabout/Makefile [new file with mode: 0644]
usr/src/old/refer/OTHERS/Makefile [new file with mode: 0644]
usr/src/old/refer/addbib/Makefile [new file with mode: 0644]
usr/src/old/refer/deliv/Makefile [new file with mode: 0644]
usr/src/old/refer/hunt/Makefile [new file with mode: 0644]
usr/src/old/refer/inv/Makefile [new file with mode: 0644]
usr/src/old/refer/lookbib/Makefile [new file with mode: 0644]
usr/src/old/refer/mkey/Makefile [new file with mode: 0644]
usr/src/old/refer/refer/Makefile [new file with mode: 0644]
usr/src/old/refer/sortbib/Makefile [new file with mode: 0644]
usr/src/old/roff/Makefile
usr/src/old/roff/nroff/Makefile
usr/src/old/roff/nroff_term/Makefile
usr/src/old/roff/troff/Makefile
usr/src/old/sed/Makefile
usr/src/old/sum/Makefile
usr/src/old/symorder/Makefile
usr/src/old/sysline/Makefile
usr/src/old/tbl/Makefile
usr/src/old/whoami/Makefile
usr/src/share/Makefile
usr/src/share/man/Makefile
usr/src/share/man/man3/Makefile
usr/src/share/man/man3f/Makefile
usr/src/share/man/man4/Makefile
usr/src/share/man/man4/man4.tahoe/Makefile
usr/src/share/man/man4/man4.vax/Makefile
usr/src/share/man/man5/Makefile
usr/src/share/man/man7/Makefile
usr/src/share/man/man8/Makefile
usr/src/share/man/man8/man8.vax/Makefile
usr/src/share/me/Makefile
usr/src/share/skel/Makefile
usr/src/share/tabset/Makefile [new file with mode: 0644]
usr/src/share/termcap/Makefile
usr/src/share/tmac/Makefile
usr/src/share/zoneinfo/Makefile
usr/src/usr.bin/ar/Makefile
usr/src/usr.bin/at/Makefile [new file with mode: 0644]
usr/src/usr.bin/at/at/Makefile
usr/src/usr.bin/at/atq/Makefile [new file with mode: 0644]
usr/src/usr.bin/at/atrm/Makefile [new file with mode: 0644]
usr/src/usr.bin/at/atrun/Makefile [new file with mode: 0644]
usr/src/usr.bin/basename/Makefile
usr/src/usr.bin/compress/Makefile
usr/src/usr.bin/ctags/Makefile
usr/src/usr.bin/diff/Makefile [new file with mode: 0644]
usr/src/usr.bin/diff/diff/Makefile
usr/src/usr.bin/diff/diff3/Makefile
usr/src/usr.bin/diff/diffh/Makefile [new file with mode: 0644]
usr/src/usr.bin/error/Makefile
usr/src/usr.bin/false/Makefile
usr/src/usr.bin/find/Makefile
usr/src/usr.bin/fpr/Makefile
usr/src/usr.bin/fsplit/Makefile
usr/src/usr.bin/gcore/Makefile
usr/src/usr.bin/gprof/Makefile
usr/src/usr.bin/grep/Makefile
usr/src/usr.bin/head/Makefile
usr/src/usr.bin/indent/Makefile
usr/src/usr.bin/join/Makefile
usr/src/usr.bin/look/Makefile
usr/src/usr.bin/lorder/Makefile
usr/src/usr.bin/m4/Makefile
usr/src/usr.bin/make/Makefile [new file with mode: 0644]
usr/src/usr.bin/man/Makefile
usr/src/usr.bin/mesg/Makefile
usr/src/usr.bin/mkdep/Makefile
usr/src/usr.bin/mkstr/Makefile
usr/src/usr.bin/more/Makefile
usr/src/usr.bin/msgs/Makefile
usr/src/usr.bin/mt/Makefile
usr/src/usr.bin/nice/Makefile
usr/src/usr.bin/nm/Makefile
usr/src/usr.bin/pagesize/Makefile
usr/src/usr.bin/passwd/Makefile
usr/src/usr.bin/plot/Makefile
usr/src/usr.bin/printenv/Makefile
usr/src/usr.bin/printf/Makefile
usr/src/usr.bin/ranlib/Makefile
usr/src/usr.bin/rsh/Makefile
usr/src/usr.bin/sccs/Makefile
usr/src/usr.bin/sed/Makefile
usr/src/usr.bin/size/Makefile
usr/src/usr.bin/sort/Makefile
usr/src/usr.bin/spell/Makefile
usr/src/usr.bin/spline/Makefile
usr/src/usr.bin/split/Makefile
usr/src/usr.bin/strings/Makefile
usr/src/usr.bin/strip/Makefile
usr/src/usr.bin/struct/struct/Makefile
usr/src/usr.bin/su/Makefile
usr/src/usr.bin/systat/Makefile
usr/src/usr.bin/tail/Makefile
usr/src/usr.bin/talk/Makefile
usr/src/usr.bin/tee/Makefile
usr/src/usr.bin/time/Makefile
usr/src/usr.bin/touch/Makefile
usr/src/usr.bin/tput/Makefile
usr/src/usr.bin/tr/Makefile
usr/src/usr.bin/true/Makefile
usr/src/usr.bin/tsort/Makefile
usr/src/usr.bin/tty/Makefile
usr/src/usr.bin/ul/Makefile
usr/src/usr.bin/unexpand/Makefile [new file with mode: 0644]
usr/src/usr.bin/unifdef/Makefile
usr/src/usr.bin/uniq/Makefile
usr/src/usr.bin/units/Makefile
usr/src/usr.bin/users/Makefile
usr/src/usr.bin/uudecode/Makefile [new file with mode: 0644]
usr/src/usr.bin/vgrind/Makefile
usr/src/usr.bin/vmstat/Makefile
usr/src/usr.bin/w/Makefile
usr/src/usr.bin/wall/Makefile
usr/src/usr.bin/wc/Makefile
usr/src/usr.bin/what/Makefile
usr/src/usr.bin/who/Makefile
usr/src/usr.bin/write/Makefile
usr/src/usr.bin/xargs/Makefile [new file with mode: 0644]
usr/src/usr.bin/xinstall/Makefile
usr/src/usr.bin/xsend/Makefile [new file with mode: 0644]
usr/src/usr.bin/xsend/enroll/Makefile [new file with mode: 0644]
usr/src/usr.bin/xsend/xget/Makefile [new file with mode: 0644]
usr/src/usr.bin/xsend/xsend/Makefile
usr/src/usr.bin/xstr/Makefile
usr/src/usr.bin/yacc/Makefile

index 9fc34e8..2856cf5 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=  ln.c
-OBJS=
-MAN=   ln.0
+PROG=  ln
 
 
-all: ln
-
-ln: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core ln
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 ln ${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 b3a8f38..597eb5b 100644 (file)
@@ -1,9 +1,4 @@
-#
-# Copyright (c) 1987 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    1.3     (Berkeley)      %G%
+#      @(#)Makefile    5.1 (Berkeley) %G%
 #
 #      as.h            Definitions for data structures
 #      asnumber.h      Definitions for all numbers: byte .. G format float
 #
 #      as.h            Definitions for data structures
 #      asnumber.h      Definitions for all numbers: byte .. G format float
 #      instrs          included in pseudo.c; instructions and semantic info
 #                              for each instructions
 #
 #      instrs          included in pseudo.c; instructions and semantic info
 #                              for each instructions
 #
-HDRS=  astoks.H astokfix.awk as.h asscan.h assyms.h asexpr.h 
-SRCS=  asscan1.c asscan2.c asscan3.c asscan4.c bignum.c asmain.c asparse.c \
-       asexpr.c assyms.c asjxxx.c ascode.c aspseudo.c assizetab.c asio.c
-OBJS=  asscan1.o asscan2.o asscan3.o asscan4.o bignum.o asparse.o asexpr.o \
-       asmain.o assyms.o asjxxx.o ascode.o aspseudo.o assizetab.o asio.o
-GRIND = astoks.h as.h asscan.h assyms.h asexpr.h instrs.h asnumber.h \
-       asscanl.h asscan1.c asscan2.c asscan3.c asscan4.c bignum.c \
-       asmain.c asscan.c asparse.c asexpr.c assyms.c asjxxx.c ascode.c \
-       asio.c assizetab.c aspseudo.c
-#
 #      available flags:
 #
 #      AS              This is the assembler; always set
 #      available flags:
 #
 #      AS              This is the assembler; always set
@@ -73,37 +58,24 @@ GRIND = astoks.h as.h asscan.h assyms.h asexpr.h instrs.h asnumber.h \
 #                      strings, null terminated, and can be no more
 #                      than BUFSIZ long.
 #                      
 #                      strings, null terminated, and can be no more
 #                      than BUFSIZ long.
 #                      
-DFLAGS=        -DAS
-CFLAGS=        -O $(DFLAGS)
-
-all: as
+PROG=  as
+CFLAGS+=-DAS -I.
+SRCS=  asscan1.c asscan2.c asscan3.c asscan4.c bignum.c asmain.c asparse.c \
+       asexpr.c assyms.c asjxxx.c ascode.c aspseudo.c assizetab.c asio.c
+CLEANFILES+=astoks.h instrs.as
 
 
-as: ${OBJS} ${LIBC}
-       ${CC} ${CFLAGS} ${OBJS} -o $@
+.PATH: ${.CURDIR}/../as.vax
 
 astoks.h: astoks.H astokfix.awk
 
 astoks.h: astoks.H astokfix.awk
-       awk -f astokfix.awk < astoks.H > astoks.h
+       awk -f ${.CURDIR}/astokfix.awk < ${.CURDIR}/astoks.H > astoks.h
 
 aspseudo.o: as.h astoks.h aspseudo.c instrs.h instrs.as
 
 aspseudo.o: as.h astoks.h aspseudo.c instrs.h instrs.as
-       ${CC} -c -R ${DFLAGS} aspseudo.c
-
-instrs.as: instrs
-       (echo FLAVOR AS ; cat instrs) | awk -f instrs > instrs.as
-
-clean:
-       rm -f ${OBJS} core as
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
+       ${CC} ${CFLAGS} -R -c ${.IMPSRC}
 
 
-install: ${MAN}
-       install -s -o bin -g bin as ${DESTDIR}/usr/bin
+instrs.as: ${.CURDIR}/instrs
+       (echo FLAVOR AS ; cat ${.CURDIR}/instrs) | \
+           awk -f ${.CURDIR}/instrs > instrs.as
 
 
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+.include <bsd.prog.mk>
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+all depend lint tags: astoks.h instrs.as
index e7e9879..5dba424 100644 (file)
@@ -1,9 +1,4 @@
-#
-# Copyright (c) 1980 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    5.8 (Berkeley) %G%
+#      @(#)Makefile    5.9 (Berkeley) %G%
 #
 #      as.h            Definitions for data structures
 #      asnumber.h      Definitions for all numbers: byte .. G format float
 #
 #      as.h            Definitions for data structures
 #      asnumber.h      Definitions for all numbers: byte .. G format float
 #      instrs          included in pseudo.c; instructions and semantic info
 #                              for each instructions
 #
 #      instrs          included in pseudo.c; instructions and semantic info
 #                              for each instructions
 #
-HDRS=  astoks.H astokfix.awk as.h asexpr.h asnumber.h asscan.h asscanl.h \
-       assyms.h instrs.h
-SRCS=  asscan1.c asscan2.c asscan3.c asscan4.c bignum1.c bignum2.c natof.c \
-       floattab.c asmain.c asparse.c asexpr.c assyms.c asjxxx.c ascode.c \
-       aspseudo.c assizetab.c asio.c
-OBJS=  asscan1.o asscan2.o asscan3.o asscan4.o bignum1.o bignum2.o natof.o \
-       floattab.o asparse.o asexpr.o asmain.o assyms.o asjxxx.o ascode.o \
-       aspseudo.o assizetab.o asio.o
-GRIND = astoks.h as.h asscan.h assyms.h asexpr.h instrs.h asnumber.h \
-       asscanl.h asscan1.c asscan2.c asscan3.c asscan4.c bignum1.c \
-       bignum2.c natof.c floattab.c asmain.c asscan.c asparse.c asexpr.c \
-       assyms.c asjxxx.c ascode.c asio.c assizetab.c aspseudo.c
-
 #      available flags:
 #
 #      AS              This is the assembler; always set
 #      available flags:
 #
 #      AS              This is the assembler; always set
@@ -78,38 +60,22 @@ GRIND = astoks.h as.h asscan.h assyms.h asexpr.h instrs.h asnumber.h \
 #                      strings, null terminated, and can be no more
 #                      than BUFSIZ long.
 #                      
 #                      strings, null terminated, and can be no more
 #                      than BUFSIZ long.
 #                      
-DFLAGS=        -DAS
-CFLAGS=        -O ${DFLAGS}
-
-all as: ${OBJS} ${LIBC}
-       ${CC} -o as ${CFLAGS} ${OBJS}
+PROG=  as
+CFLAGS+=-DAS -I.
+SRCS=  asscan1.c asscan2.c asscan3.c asscan4.c bignum1.c bignum2.c natof.c \
+       floattab.c asmain.c asparse.c asexpr.c assyms.c asjxxx.c ascode.c \
+       aspseudo.c assizetab.c asio.c
 
 
-.c.o:  astoks.h ${HDRS}
-       ${CC} ${CFLAGS} -c $*.c
+all: astoks.h
 
 astoks.h: astoks.H astokfix.awk
 
 astoks.h: astoks.H astokfix.awk
-       awk -f astokfix.awk < astoks.H > astoks.h
+       awk -f ${.CURDIR}/astokfix.awk < ${.CURDIR}/astoks.H > astoks.h
 
 aspseudo.o: as.h astoks.h aspseudo.c instrs.h instrs.as
 
 aspseudo.o: as.h astoks.h aspseudo.c instrs.h instrs.as
-       ${CC} -c -R ${DFLAGS} aspseudo.c
-
-instrs.as: instrs
-       (echo FLAVOR AS ; cat instrs) | awk -f instrs > instrs.as
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-clean:
-       rm -f ${OBJS} instrs.as as core a.out errs
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS} instrs.as
-       mkdep ${CFLAGS} ${SRCS}
+       ${CC} ${CFLAGS} -R -c ${.IMPSRC}
 
 
-install: ${MAN}
-       install -s -o bin -g bin -m 755 as ${DESTDIR}/usr/bin
+instrs.as: ${.CURDIR}/instrs
+       (echo FLAVOR AS ; cat ${.CURDIR}/instrs) | \
+           awk -f ${.CURDIR}/instrs > instrs.as
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index d749000..c8e4896 100644 (file)
@@ -1,46 +1,19 @@
-#
-# Copyright (c) 1987 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    1.8     (Berkeley)      %G%
-#
-CFLAGS=        -O -Dunix=1 -DFLEXNAMES
-LIBC=  /lib/libc.a
-YYFIX= ../../libexec/pcc/pcc.${MACHINE}/:yyfix
-SRCS=  cpp.c cpy.c rodata.c
-OBJS=  cpp.o cpy.o rodata.o
+#      @(#)Makefile    5.1 (Berkeley) %G%
 
 
-all: cpp
+PROG=  cpp
+CFLAGS+=-Dunix=1 -DFLEXNAMES -I${.CURDIR}
+YYFIX= ${.CURDIR}/../../libexec/pcc/pcc.${MACHINE}/:yyfix
+SRCS=  cpp.c cpy.c rodata.o
+CLEANFILES+=   cpy.c rodata.c
+NOMAN= noman
 
 
-cpp:   ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
+rodata.o: cpy.c
+       ${CC} ${CFLAGS} -R -c ${.PREFIX}.c
 
 cpy.c: cpy.y
 
 cpy.c: cpy.y
-       yacc cpy.y
-       ${YYFIX}  yylhs yylen yydefred yydgoto yysindex yyrindex \
+       ${YACC} ${.ALLSRC}
+       ${YYFIX} yylhs yylen yydefred yydgoto yysindex yyrindex \
            yygindex yytable yycheck
        mv y.tab.c cpy.c
 
            yygindex yytable yycheck
        mv y.tab.c cpy.c
 
-cpy.o: cpy.c yylex.c
-
-rodata.o: cpy.c
-       ${CC} ${CFLAGS} -R -c rodata.c
-
-clean:
-       rm -f ${OBJS} cpp core cpy.c rodata.c
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 cpp ${DESTDIR}/usr/bin
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index e770f3d..cd243fe 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=  groups.c
-OBJS=
-MAN=   groups.0
+PROG=  groups
 
 
-all: groups
-
-groups: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core groups
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 groups ${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 5fbdbe9..6afba56 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=  ld.c
-OBJS=
-MAN=   ld.0
+PROG=  ld
 
 
-all: ld
-
-ld: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core ld
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 ld ${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 de93162..657e733 100644 (file)
@@ -1,51 +1,11 @@
-#
-# 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.5 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  lmain.c parser.c sub1.c sub2.c header.c
-OBJS=  lmain.o parser.o sub1.o sub2.o header.o
-MAN=   lex.0
-
-all: lex
-
-lex: ${OBJS} ${LIBC}
-       ${CC} ${CFLAGS} ${OBJS} -o $@
-
-smallex: ${SRCS} ${LIBC} FRC
-       ${CC} -DSMALL ${CFLAGS} ${SRCS} -o $@
+#      @(#)Makefile    4.6 (Berkeley) %G%
 
 
-clean:
-       rm -f ${OBJS} core lex smallex parser.c
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 lex ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 nrform ncform ${DESTDIR}/usr/share/misc
-       install -c -o bin -g bin -m 755 ${MAN} ${DESTDIR}/usr/man/cat1
+PROG=  lex
+SRCS=  lmain.c parser.c sub1.c sub2.c header.c
+CFLAGS+=-I${.CURDIR}
 
 
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${MANMODE} ${.CURDIR}/nrform \
+           ${.CURDIR}/ncform ${DESTDIR}/usr/share/misc
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 7d741ab..591def3 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=  machine.c
-OBJS=
-MAN=   machine.0
+PROG=  machine
 
 
-all: machine
-
-machine: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core machine
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 machine ${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 7bf6fae..6846036 100644 (file)
@@ -1,31 +1,14 @@
-#
-# 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%
-#
-MSLIB= /usr/share/ms
-TMLIB= /usr/share/tmac
+#      @(#)Makefile    5.3 (Berkeley) %G%
+
 MSSRCS=        acc.ms cov.ms eqn.ms ref.ms tbl.ms ths.ms toc.ms
 TMSRCS=        tmac.os tmac.s
 
 all clean cleandir depend lint tags:
 
 install:
 MSSRCS=        acc.ms cov.ms eqn.ms ref.ms tbl.ms ths.ms toc.ms
 TMSRCS=        tmac.os tmac.s
 
 all clean cleandir depend lint tags:
 
 install:
-       -[ -d ${DESTDIR}${MSLIB} ] || mkdir ${DESTDIR}${MSLIB}
-       chown bin.bin ${DESTDIR}${MSLIB}
-       chmod 755 ${DESTDIR}${MSLIB}
-       install -c -o bin -g bin -m 444 ${MSSRCS} ${DESTDIR}${MSLIB}
-       install -c -o bin -g bin -m 444 ${TMSRCS} ${DESTDIR}${TMLIB}
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MSSRCS} \
+           ${DESTDIR}${BINDIR}/ms
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${TMSRCS} \
+           ${DESTDIR}${BINDIR}/tmac
+
+.include <bsd.own.mk>
index 5e9af0d..cdafd7e 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=  cc.c
-OBJS=
-MAN=   cc.0
+PROG=  cc
 
 
-all: cc
-
-cc: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core cc
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 cc ${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 b696b3f..96291d7 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=  pr.c
-OBJS=
-MAN=   pr.0
+PROG=  pr
 
 
-all: pr
-
-pr: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core pr
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 pr ${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 a109611..d371ce9 100644 (file)
@@ -1,116 +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.14 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-DLSRCS=        deliv1.c deliv2.c
-DLOBJS=        deliv1.o deliv2.o
-HTSRCS=        deliv2.c glue4.c glue5.c hunt1.c hunt2.c hunt3.c hunt5.c hunt6.c \
-       hunt7.c hunt8.c hunt9.c refer3.c shell.c tick.c
-HTOBJS=        deliv2.o glue4.o glue5.o hunt1.o hunt2.o hunt3.o hunt5.o hunt6.o \
-       hunt7.o hunt8.o hunt9.o refer3.o shell.o tick.o
-INSRCS=        inv1.c inv2.c inv3.c inv5.c inv6.c deliv2.c
-INOBJS=        inv1.o inv2.o inv3.o inv5.o inv6.o deliv2.o
-MKSRCS=        mkey1.c mkey2.c mkey3.c deliv2.c
-MKOBJS=        mkey1.o mkey2.o mkey3.o deliv2.o
-RFSRCS=        deliv2.c glue1.c glue2.c glue3.c glue4.c glue5.c hunt2.c hunt3.c \
-       hunt5.c hunt6.c hunt7.c hunt8.c hunt9.c mkey3.c refer0.c refer1.c \
-       refer2.c refer4.c refer5.c refer6.c refer7.c refer8.c shell.c
-RFOBJS=        deliv2.o glue1.o glue2.o glue3.o glue4.o glue5.o hunt2.o hunt3.o \
-       hunt5.o hunt6.o hunt7.o hunt8.o hunt9.o mkey3.o refer0.o refer1.o \
-       refer2.o refer4.o refer5.o refer6.o refer7.o refer8.o shell.o
-WHSRCS=        what1.c what2.c what3.c what4.c shell.c mkey3.c
-WHOBJS=        what1.o what2.o what3.o what4.o shell.o mkey3.o
-SRCS=  ${DLSRCS} ${HTSRCS} ${INSRCS} ${MKSRCS} ${RFSRCS} ${WHSRCS}
-OBJS=  ${DLOBJS} ${HTOBJS} ${INOBJS} ${MKOBJS} ${RFOBJS} ${WHOBJS} \
-       addbib.o lookbib.o sortbib.o
-MAN=   addbib.0 lookbib.0 refer.0 roffbib.0 sortbib.0
+#      @(#)Makefile    4.15 (Berkeley) %G%
 
 
-all: addbib deliv hunt inv lookbib mkey refer sortbib whatabout
+SUBDIR=        OTHERS addbib deliv hunt inv lookbib mkey refer sortbib what
 
 
-addbib lookbib sortbib: ${LIBC}
-       ${CC} ${CFLAGS} -o $@ $@.c
-
-deliv: ${DLOBJS} ${LIBC}
-       ${CC} ${CFLAGS} ${DLOBJS} -o $@
-
-hunt: ${HTOBJS} ${LIBC}
-       ${CC} ${CFLAGS} ${HTOBJS} -o $@ -lcompat
-
-inv: ${INOBJS} ${LIBC}
-       ${CC} ${CFLAGS} ${INOBJS} -o $@
-
-mkey: ${MKOBJS} ${LIBC}
-       ${CC} ${CFLAGS} ${MKOBJS} -o $@
-
-refer: ${RFOBJS} ${LIBC}
-       ${CC} ${CFLAGS} ${RFOBJS} -o $@
-
-# refpart doesn't compile
-#
-#RPSRCS=       deliv2.c glue4.c glue5.c mkey3.c refer0.c refer1.c refer2.c \
-#      refer3.c refer4.c refer5.c refer6.c refer7.c refer8.c
-#RPOBJS=       deliv2.o glue4.o glue5.o mkey3.o refer0.o refer1.o refer2.o \
-#      refer3.o refer4.o refer5.o refer6.o refer7.o refer8.o
-#refpart: ${RPOBJS} ${LIBC}
-#      ${CC} ${CFLAGS} ${RPOBJS} -o $@
-
-whatabout: ${WHOBJS} ${LIBC}
-       ${CC} ${CFLAGS} ${WHOBJS} -o $@ -lcompat
-
-clean:
-       rm -f ${OBJS} core addbib deliv hunt inv lookbib mkey refer \
-               refpart sortbib whatabout
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} addbib.c sortbib.c lookbib.c
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 mkey inv hunt ${DESTDIR}/usr/libexec
-       install -s -o bin -g bin -m 755 addbib lookbib sortbib refer \
-               ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 755 roffbib.sh ${DESTDIR}/usr/bin/roffbib
-       install -c -o bin -g bin -m 755 indxbib.sh ${DESTDIR}/usr/bin/indxbib
-       install -c -o bin -g bin -m 755 tmac.bib ${DESTDIR}/usr/share/tmac
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       rm -f ${DESTDIR}/usr/man/cat1/indxbib.0
-       ln ${DESTDIR}/usr/man/cat1/lookbib.0 ${DESTDIR}/usr/man/cat1/indxbib.0
-       sh runinv ${DESTDIR}/usr/share/dict/papers
-
-lint: FRC
-       lint ${CFLAGS} ${DLSRCS}
-       lint ${CFLAGS} ${HTSRCS}
-       lint ${CFLAGS} ${INSRCS}
-       lint ${CFLAGS} ${MKSRCS}
-       lint ${CFLAGS} ${RFSRCS}
-#      lint ${CFLAGS} ${RPSRCS}
-       lint ${CFLAGS} ${WHSRCS}
-
-tags: FRC
-       ctags ${DLSRCS}
-       ctags -a ${HTSRCS}
-       ctags -a ${INSRCS}
-       ctags -a ${MKSRCS}
-       ctags -a ${RFSRCS}
-#      ctags -a ${RPSRCS}
-       ctags -a ${WHSRCS}
-       sort -o tags tags
+.include <bsd.subdir.mk>
diff --git a/usr/src/old/refer/NOTUSED/whatabout/Makefile b/usr/src/old/refer/NOTUSED/whatabout/Makefile
new file mode 100644 (file)
index 0000000..b1d0fe0
--- /dev/null
@@ -0,0 +1,13 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  what
+CFLAGS+=-I${.CURDIR}/../refer
+SRCS=  what1.c what2.c what3.c what4.c mkey3.c shell.c
+DPADD= ${LIBCOMPAT}
+LDADD= -lcompat
+NOMAN= noman
+
+.PATH: ${.CURDIR}/../hunt ${.CURDIR}/../mkey
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/old/refer/OTHERS/Makefile b/usr/src/old/refer/OTHERS/Makefile
new file mode 100644 (file)
index 0000000..7423e63
--- /dev/null
@@ -0,0 +1,19 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+MAN=   roffbib.0
+
+all OTHERS: ${MAN}
+
+clean cleandir depend lint tags:
+
+install:
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${.CURDIR}/indxbib.sh ${DESTDIR}${BINDIR}/indxbib
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${.CURDIR}/roffbib.sh ${DESTDIR}${BINDIR}/roffbib
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${.CURDIR}/tmac.bib ${DESTDIR}/usr/share/tmac
+       sh ${.CURDIR}/runinv ${DESTDIR}/usr/share/dict/papers
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/old/refer/addbib/Makefile b/usr/src/old/refer/addbib/Makefile
new file mode 100644 (file)
index 0000000..3321bd3
--- /dev/null
@@ -0,0 +1,6 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  addbib
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/old/refer/deliv/Makefile b/usr/src/old/refer/deliv/Makefile
new file mode 100644 (file)
index 0000000..5e374c5
--- /dev/null
@@ -0,0 +1,8 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  deliv
+SRCS=  deliv1.c deliv2.c
+NOMAN= noman
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/old/refer/hunt/Makefile b/usr/src/old/refer/hunt/Makefile
new file mode 100644 (file)
index 0000000..8a61ff4
--- /dev/null
@@ -0,0 +1,13 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  hunt
+SRCS=  deliv2.c glue4.c glue5.c hunt1.c hunt2.c hunt3.c hunt5.c hunt6.c \
+       hunt7.c hunt8.c hunt9.c refer3.c shell.c tick.c
+CFLAGS+=-I${.CURDIR}/../refer
+DPADD= ${LIBCOMPAT}
+LDADD= -lcompat
+NOMAN= noman
+.PATH: ${.CURDIR}/../deliv ${.CURDIR}/../refer
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/old/refer/inv/Makefile b/usr/src/old/refer/inv/Makefile
new file mode 100644 (file)
index 0000000..af34707
--- /dev/null
@@ -0,0 +1,10 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  inv
+SRCS=  deliv2.c inv1.c inv2.c inv3.c inv5.c inv6.c
+CFLAGS+=-I${.CURDIR}/../refer
+NOMAN= noman
+.PATH: ${.CURDIR}/../deliv
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/old/refer/lookbib/Makefile b/usr/src/old/refer/lookbib/Makefile
new file mode 100644 (file)
index 0000000..28b305b
--- /dev/null
@@ -0,0 +1,8 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  lookbib
+CFLAGS+=-I${.CURDIR}/../refer
+MLINKS=        lookbib.1 indxbib.1
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/old/refer/mkey/Makefile b/usr/src/old/refer/mkey/Makefile
new file mode 100644 (file)
index 0000000..aa5597b
--- /dev/null
@@ -0,0 +1,10 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  mkey
+SRCS=  deliv2.c mkey1.c mkey2.c mkey3.c
+CFLAGS+=-I${.CURDIR}/../refer
+NOMAN= noman
+.PATH: ${.CURDIR}/../deliv
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/old/refer/refer/Makefile b/usr/src/old/refer/refer/Makefile
new file mode 100644 (file)
index 0000000..1863703
--- /dev/null
@@ -0,0 +1,11 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  refer
+SRCS=  deliv2.c glue1.c glue2.c glue3.c glue4.c glue5.c hunt2.c hunt3.c \
+       hunt5.c hunt6.c hunt7.c hunt8.c hunt9.c mkey3.c refer0.c refer1.c \
+       refer2.c refer4.c refer5.c refer6.c refer7.c refer8.c shell.c
+CFLAGS+=-I${.CURDIR}
+.PATH: ${.CURDIR}/../deliv ${.CURDIR}/../hunt ${.CURDIR}/../mkey
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/old/refer/sortbib/Makefile b/usr/src/old/refer/sortbib/Makefile
new file mode 100644 (file)
index 0000000..f3a863c
--- /dev/null
@@ -0,0 +1,7 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  sortbib
+CFLAGS+=-I${.CURDIR}/../refer
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
index ae3d90f..1b206c1 100644 (file)
@@ -1,22 +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%
-#
-SUBDIR=        nroff troff nroff_term troff_font
+#      @(#)Makefile    5.3 (Berkeley) %G%
+
+SUBDIR=        nroff troff nroff_term
 FONTS= fontlist ftB ftBC ftC ftCE ftCI ftCK ftCW ftFD ftG ftGI ftGM \
        ftGR ftH ftHI ftHM ftI ftI.bak ftL ftLI ftPA ftPB ftPI ftR \
        ftS ftSB ftSI ftSM ftTB ftTI ftTR ftTS ftUD ftap ftbb ftbi ftbk \
 FONTS= fontlist ftB ftBC ftC ftCE ftCI ftCK ftCW ftFD ftG ftGI ftGM \
        ftGR ftH ftHI ftHM ftI ftI.bak ftL ftLI ftPA ftPB ftPI ftR \
        ftS ftSB ftSI ftSM ftTB ftTI ftTR ftTS ftUD ftap ftbb ftbi ftbk \
@@ -26,17 +10,10 @@ FONTS=      fontlist ftB ftBC ftC ftCE ftCI ftCK ftCW ftFD ftG ftGI ftGM \
        ftsh ftsi ftsl ftsr fttB fttI fttR fttS fttb ftti fttr ftts ftwp \
        ftxx
 
        ftsh ftsi ftsl ftsr fttB fttI fttR fttS fttb ftti fttr ftts ftwp \
        ftxx
 
-all: FRC
-       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} all); done
-
-clean cleandir depend lint tags: FRC
-       for i in ${SUBDIR}; do \
-               (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} $@); done
-
-install: FRC
-       for i in ${SUBDIR}; do \
-               (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} $@); done
-       cd fonts; install -c -o bin -g bin -m 444 ${FONTS} \
+beforeinstall:
+       cd ${.CURDIR}/fonts; \
+           install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FONTS} \
            ${DESTDIR}/usr/libdata/troff_font
 
            ${DESTDIR}/usr/libdata/troff_font
 
-FRC:
+.include <bsd.subdir.mk>
+.include <bsd.own.mk>
index 8dc9887..adec3e5 100644 (file)
@@ -1,60 +1,14 @@
-#
-# 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.6 (Berkeley) %G%
-#
-COMMON=        ../common_source
-CFLAGS=        -O -DNROFF -DVMUNIX -I${COMMON}
-VPATH= ${COMMON}
-LIBC=  /lib/libc.a
+#      @(#)Makefile    4.7 (Berkeley) %G%
+
+PROG=  nroff
+CFLAGS+=-DNROFF -DVMUNIX -I${.CURDIR}/../common_source
 SRCS=  ni.c nii.c n1.c n2.c n3.c n4.c n5.c n6.c n7.c n8.c n9.c n10.c \
        hytab.c ntab.c suftab.c
 SRCS=  ni.c nii.c n1.c n2.c n3.c n4.c n5.c n6.c n7.c n8.c n9.c n10.c \
        hytab.c ntab.c suftab.c
-OBJS=  ni.o nii.o n1.o n2.o n3.o n4.o n5.o n6.o n7.o n8.o n9.o n10.o \
-       hytab.o ntab.o suftab.o
-MAN=   nroff.0
-
-all: nroff
-
-nroff: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${OBJS} -lcompat
-
-hytab.o: ${COMMON}/hytab.c
-       ${CC} -R -c ${COMMON}/hytab.c
-
-suftab.o: ${COMMON}/suftab.c
-       ${CC} -R -c ${COMMON}/suftab.c
-
-ntab.o: ntab.c
-       ${CC} -R -c ntab.c
-
-clean:
-       rm -f ${OBJS} core nroff
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 nroff ${DESTDIR}/usr/bin/nroff
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+DPADD= ${LIBCOMPAT}
+LDADD= -lcompat
+.PATH: ${.CURDIR}/../common_source
 
 
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+hytab.o suftab.o ntab.o:
+       ${CC} ${CFLAGS} -R -c ${.IMPSRC}
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 0e60d0c..790cac6 100644 (file)
@@ -1,90 +1,48 @@
-#
-# Copyright (c) 1987 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    4.9     (Berkeley)      %G%
-#
-# Possible options:
-#      make            compile source for all terminal tables below
-#      make <term>     compile table for a specific <term>
-#      make install    move tables to ${DEST}
-#      make clean      remove tab*.o files lying around
-CFLAGS=        -I../common_source
-LIBC=  /lib/libc.a
-DEST=  ${DESTDIR}/usr/libdata/term
-SRCS=  tab300-12.c tab300.c tab302-12.c tab302.c tab37.c tab382-12.c \
-       tab382.c tab450-12.c tab450.c tab833-12.c tab833.c tabepson.c \
-       tabitoh.c tabitoh12.c tablpr.c tabnec-t.c tabnec.c tabnec12.c \
-       tabnec25-t.c tabqume.c tabqume12.c tabx-ecs.c tabx-ecs12.c \
-       tabxerox.c tabxerox12.c
-OBJS=  tab300-12.o tab300.o tab302-12.o tab302.o tab37.o tab382-12.o \
-       tab382.o tab450-12.o tab450.o tab833-12.o tab833.o tabepson.o \
-       tabitoh.o tabitoh12.o tablpr.o tabnec-t.o tabnec.o tabnec12.o \
-       tabnec25-t.o tabqume.o tabqume12.o tabx-ecs.o tabx-ecs12.o \
-       tabxerox.o tabxerox12.o
-ALL=   tab37 tablpr tab300 tab300-12 tab302 tab302-12 tab382 tab382-12 \
-       tab450 tab450-12 tab833 tab833-12 tabepson tabitoh tabitoh12 \
-       tabnec tabnec12 tabnec-t tabnec25-t tabqume tabqume12 tabxerox \
-       tabxerox12 tabx-ecs tabx-ecs12
-
-all: ${ALL}
-
-tab37:         mktab.o tab37.o
-tablpr:                mktab.o tablpr.o
-tab300:                mktab.o tab300.o 
-tab300-12:     mktab.o tab300-12.o 
-tab302:                mktab.o tab302.o 
-tab302-12:     mktab.o tab302-12.o 
-tab382:                mktab.o tab382.o 
-tab382-12:     mktab.o tab382-12.o 
-tab450:                mktab.o tab450.o 
-tab450-12:     mktab.o tab450-12.o 
-tab833:                mktab.o tab833.o 
-tab833-12:     mktab.o tab833-12.o 
-tabepson:      mktab.o tabepson.o
-tabitoh:       mktab.o tabitoh.o 
-tabitoh12:     mktab.o tabitoh12.o 
-tabnec:                mktab.o tabnec.o 
-tabnec12:      mktab.o tabnec12.o 
-tabnec-t:      mktab.o tabnec-t.o
-tabnec25-t:    mktab.o tabnec25-t.o
-tabqume:       mktab.o tabqume.o
-tabqume12:     mktab.o tabqume12.o
-tabxerox:      mktab.o tabxerox.o 
-tabxerox12:    mktab.o tabxerox12.o 
-tabx-ecs:      mktab.o tabx-ecs.o 
-tabx-ecs12:    mktab.o tabx-ecs12.o 
-
-${ALL}:
-       ${CC} mktab.o $@.o -o mktab
+#      @(#)Makefile    4.10 (Berkeley) %G%
+
+CFLAGS=        -I${.CURDIR}/../common_source
+LIBC=  /usr/lib/libc.a
+DEST=  /usr/libdata/term
+PROGS= tab300 tab300-12 tab302 tab302-12 tab37 tab382 tab382-12 tab450 \
+       tab450-12 tab833 tab833-12 tabepson tabitoh tabitoh12 tablpr \
+       tabnec tabnec-t tabnec12 tabnec25-t tabqume tabqume12 tabx-ecs \
+       tabx-ecs12 tabxerox tabxerox12
+OBJS=  ${PROGS:=.o}
+SRCS=  ${PROGS:=.c}
+LINKS= ${DEST}/tablpr ${DEST}/tabtn300 ${DEST}/tablpr ${DEST}/tabcrt \
+       ${DEST}/tab302 ${DEST}/tab300s ${DEST}/tab300s-12 ${DEST}/tab302-12 \
+       ${DEST}/tabdtc ${DEST}/tab302 ${DEST}/tabdtc12 ${DEST}/tab302-12 \
+       ${DEST}/tabipsi ${DEST}/tab450 ${DEST}/tabipsi12 ${DEST}/tab450-12
+
+all: ${PROGS}
+
+${PROGS}: mktab.o ${.CURDIR}/${.PREFIX.c}
+       ${CC} mktab.o ${.CURDIR}/${.PREFIX}.c -o mktab
        ./mktab > $@
 
        ./mktab > $@
 
-clean: FRC
-       rm -f ${OBJS} ${ALL} mktab.o mktab core
+clean:
+       rm -f ${OBJS} ${PROGS} mktab.o mktab a.out Errs errs mklog core
 
 cleandir: clean
 
 cleandir: clean
-       rm -f ${MAN} tags .depend
+       rm -f ${.CURDIR}/tags .depend
+
+depend: ${SRCS}
+       mkdep ${CFLAGS:M-[ID]*} ${.ALLSRC}
+
+install: maninstall
 
 
-depend: FRC
-       mkdep ${CFLAGS} ${SRCS}
+maninstall: beforeinstall
 
 
-install: FRC
-       install -c -o bin -g bin -m 755 ${ALL} ${DEST}
-       rm -f ${DEST}/tabtn300; ln ${DEST}/tablpr ${DEST}/tabtn300
-       rm -f ${DEST}/tabcrt; ln ${DEST}/tablpr ${DEST}/tabcrt
-       rm -f ${DEST}/tab300s; ln ${DEST}/tab302 ${DEST}/tab300s
-       rm -f ${DEST}/tab300s-12; ln ${DEST}/tab302-12 ${DEST}/tab300s-12
-       rm -f ${DEST}/tabdtc; ln ${DEST}/tab302 ${DEST}/tabdtc
-       rm -f ${DEST}/tabdtc12; ln ${DEST}/tab302-12 ${DEST}/tabdtc12
-       rm -f ${DEST}/tabipsi; ln ${DEST}/tab450 ${DEST}/tabipsi
-       rm -f ${DEST}/tabipsi12; ln ${DEST}/tab450-12 ${DEST}/tabipsi12
-       install -c -o bin -g bin -m 644 README ${DEST}/README
+beforeinstall:
+       install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${PROGS} \
+           ${DESTDIR}${DEST}
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/README \
+           ${DESTDIR}${DEST}
 
 
-lint: FRC
-       lint ${CFLAGS} ${SRCS}
+lint: ${SRCS}
+       ${LINT} ${LINTFLAGS} ${CFLAGS} ${.ALLSRC}
 
 
-tags: FRC
-       ctags ${SRCS}
+tags: ${SRCS}
+       ${CTAGS} -f ${.CURDIR}/tags ${.ALLSRC}
 
 
-FRC:
+.include <bsd.own.mk>
index 16189ec..25cc2ea 100644 (file)
@@ -1,59 +1,14 @@
-#
-# Copyright (c) 1987 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.4 (Berkeley) %G%
-#
-COMMON=        ../common_source
-CFLAGS=        -O -DVMUNIX -I${COMMON}
-VPATH= ${COMMON}
-LIBC=  /lib/libc.a
+#      @(#)Makefile    5.5 (Berkeley) %G%
+
+PROG=  troff
+CFLAGS+=-DVMUNIX -I${.CURDIR}/../common_source
 SRCS=  ni.c nii.c n1.c n2.c n3.c n4.c n5.c t6.c n7.c n8.c n9.c t10.c \
        hytab.c suftab.c tab3.c
 SRCS=  ni.c nii.c n1.c n2.c n3.c n4.c n5.c t6.c n7.c n8.c n9.c t10.c \
        hytab.c suftab.c tab3.c
-OBJS=  ni.o nii.o n1.o n2.o n3.o n4.o n5.o t6.o n7.o n8.o n9.o t10.o \
-       hytab.o suftab.o tab3.o
-MAN=   troff.0
-
-all: troff
-
-troff: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS} -lcompat
-
-hytab.o: ${COMMON}/hytab.c
-       ${CC} -R -c ${COMMON}/hytab.c
-
-suftab.o: ${COMMON}/suftab.c
-       ${CC} -R -c ${COMMON}/suftab.c
-
-clean:
-       rm -f ${OBJS} core troff
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 troff ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+DPADD= ${LIBCOMPAT}
+LDADD= -lcompat
+.PATH: ${.CURDIR}/../common_source
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+hytab.o suftab.o:
+       ${CC} ${CFLAGS} -R -c ${.IMPSRC}
 
 
-FRC:
+.include <bsd.prog.mk>
index 4eac7d6..c0dfcf7 100644 (file)
@@ -1,47 +1,6 @@
-#
-# 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.5 (Berkeley) %G%
-#
-CFLAGS=        -O -w
-LIBC=  /lib/libc.a
-SRCS=  sed0.c sed1.c
-OBJS=  sed0.o sed1.o
-MAN=   sed.0
-
-all: sed
-
-sed: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-clean:
-       rm -f ${OBJS} core sed
+#      @(#)Makefile    4.6 (Berkeley) %G%
 
 
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 sed ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+PROG=  sed
+SRCS=  sed0.c sed1.c
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 15f8b40..5baabfe 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=  sum.c
-OBJS=
-MAN=   sum.0
+PROG=  sum
 
 
-all: sum
-
-sum: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core sum
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 sum ${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 34451b1..f1ac315 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=  symorder.c
-OBJS=
-MAN=   symorder.0
+PROG=  symorder
 
 
-all: symorder
-
-symorder: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core symorder
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 symorder ${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 ff92a8e..77d62bc 100644 (file)
@@ -1,47 +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.7 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  sysline.c
-OBJS=
-MAN=   sysline.0
+#      @(#)Makefile    5.8 (Berkeley) %G%
 
 
-all: sysline
+PROG=  sysline
+DPADD= ${LIBTERMCAP} ${LIBCURSES} ${LIBUTIL}
+LDADD= -ltermcap -lcurses -lutil
+BINGRP=        kmem
+BINMODE=2555
 
 
-sysline: ${LIBC}
-       ${CC} ${CFLAGS} -o $@ $@.c -ltermlib -lcurses
-
-clean:
-       rm -f core sysline
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g kmem -m 2755 sysline ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 sysline.0 ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 5aa0ad5..8b4e6a5 100644 (file)
@@ -1,104 +1,7 @@
-#
-# 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.5 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
+#      @(#)Makefile    4.6 (Berkeley) %G%
+
+PROG=  tbl
 SRCS=  t0.c t1.c t2.c t3.c t4.c t5.c t6.c t7.c t8.c t9.c tb.c tc.c te.c \
        tf.c tg.c ti.c tm.c ts.c tt.c tu.c tv.c
 SRCS=  t0.c t1.c t2.c t3.c t4.c t5.c t6.c t7.c t8.c t9.c tb.c tc.c te.c \
        tf.c tg.c ti.c tm.c ts.c tt.c tu.c tv.c
-OBJS=  t0.o t1.o t2.o t3.o t4.o t5.o t6.o t7.o t8.o t9.o tb.o tc.o te.o \
-       tf.o tg.o ti.o tm.o ts.o tt.o tu.o tv.o
-MAN=   tbl.0
-
-all: tbl
-
-tbl: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-clean:
-       rm -f ${OBJS} core tbl
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 tbl ${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}
-
-test:
-       sh compr sample01
-       sh compr sample02
-       sh compr sample03
-       sh compr sample04
-       sh compr sample05
-       sh compr sample06
-       sh compr sample07
-       sh compr sample08
-       sh compeq sample09
-       sh compeq sample10
-       sh compeq sample11
-       sh compr sample12
-       sh compr sample13
-       sh compr sample14
-       sh compr sample15
-       sh compr sample16
-       sh compr sample17
-       sh compr sample18
-       sh compr sample19
-       sh compr sample20
-       sh compr sample21
-       sh compr sample22
-       sh compr sample23
-       sh compms sample24
-       sh compr sample25
-       sh compr sample26
-       sh compr sample27
-       sh compr sample28
-       sh compr sample29
-       sh compr sample30
-       sh compr sample31
-       sh compr sample32
-       sh compr sample33
-       sh compms sample34
-       sh compeq sample35
-       sh compeq sample36
-       sh compnr sample37
-       sh compr sample38
-       sh compr sample39
-       sh compr sample40
-       sh compr sample41
-       sh compr sample42
-       sh compr sample43
-       sh compr sample44
-       sh compms sample45
-       sh compms sample46
-       sh compr sample47
-       sh compnr sample48
-       sh compeq /usr/doc/mel/tables
 
 
-ichk: /usr/bin/tbl
-       /usr/bin/tbl sample1 >junk1
-       cmp -s junk1 out1
+.include <bsd.prog.mk>
index a69c610..95b85d9 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=  whoami.c
-OBJS=
-MAN=   whoami.0
+PROG=  whoami
 
 
-all: whoami
-
-whoami: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core whoami
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 whoami ${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 ebe563a..222c9ef 100644 (file)
@@ -1,30 +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%
 
 
-SUBDIR=        man me ms skel termcap zoneinfo
+# zoneinfo needs conversion
+SUBDIR=        man me misc ms skel tabset termcap tmac zoneinfo
 
 
-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 f4fa5ca..e4c89b8 100644 (file)
@@ -1,43 +1,17 @@
-#
-# Copyright (c) 1987 Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.5 (Berkeley) %G%
-#
-DIRS=  man3 man3f man4 man4/vax man4/tahoe man5 man7 man8 man8/vax
+#      @(#)Makefile    5.6 (Berkeley) %G%
 
 
-all: FRC
-       @-for i in ${DIRS}; do \
-               (echo "==> $$i"; \
-                   cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} $@); \
-       done
+SUBDIR=        man3 man3f man4 man5 man7 man8
 
 
-install: FRC
-       install -c -o bin -g bin -m 444 makewhatis.sed \
-               ${DESTDIR}/usr/share/man/makewhatis.sed
-       @-for i in ${DIRS}; do \
-               (echo "==> $$i"; \
-                   cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
+afterinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 makewhatis.sed \
+           ${DESTDIR}/usr/share/man/makewhatis.sed
+
+makedb:
        for file in `find /usr/share/man -type f -name '*.0' -print`; do \
                sed -n -f /usr/share/man/makewhatis.sed $$file; \
        done | sort -u > whatis.db
        for file in `find /usr/share/man -type f -name '*.0' -print`; do \
                sed -n -f /usr/share/man/makewhatis.sed $$file; \
        done | sort -u > whatis.db
-       install -o bin -g bin -m 444 whatis.db ${DESTDIR}/usr/share/man
-
-clean cleandir depend lint tags:
-       @-for i in ${DIRS}; do \
-               (echo "==> $$i"; \
-                   cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} $@); done
+       install -o ${BINOWN} -g ${BINGRP} -m 444 whatis.db \
+           ${DESTDIR}/usr/share/man
 
 
-FRC:
+.include <bsd.own.mk>
+.include <bsd.subdir.mk>
index c3783ed..701108e 100644 (file)
@@ -1,32 +1,16 @@
-#
-# 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 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.13 (Berkeley) %G%
-#
-MDIR=  ${DESTDIR}/usr/share/man/cat3
-OBJS=  assert.0 bitstring.0 end.0 intro.0 monitor.0 varargs.0
+#      @(#)Makefile    5.14 (Berkeley) %G%
 
 
-all clean depend lint tags:
+MAN3=  assert.0 bitstring.0 end.0 intro.0 monitor.0 varargs.0
+MLINKS=        end.3 edata.3 end.3 etext.3 monitor.3 moncontrol.3 monitor.3 \
+       monstartup.3
+
+all: ${MAN3}
+
+clean depend lint tags:
 
 cleandir:
 
 cleandir:
-       rm -f ${OBJS}
+       rm -f ${MAN3}
+
+install: maninstall
 
 
-install: ${OBJS}
-       install -c -o bin -g bin -m 444 ${OBJS} ${MDIR}
-       rm -f ${MDIR}/edata.0; ln ${MDIR}/end.0 ${MDIR}/edata.0
-       rm -f ${MDIR}/etext.0; ln ${MDIR}/end.0 ${MDIR}/etext.0
-       rm -f ${MDIR}/moncontrol.0; ln ${MDIR}/monitor.0 ${MDIR}/moncontrol.0
-       rm -f ${MDIR}/monstartup.0; ln ${MDIR}/monitor.0 ${MDIR}/monstartup.0
+.include <bsd.man.mk>
index a2181a3..5f79c50 100644 (file)
@@ -1,92 +1,50 @@
-#
-# 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 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.4 (Berkeley) %G%
-#
-MDIR=  ${DESTDIR}/usr/share/man/cat3f
-OBJS=  abort.0 access.0 alarm.0 bessel.0 bit.0 chdir.0 chmod.0 etime.0 \
+#      @(#)Makefile    5.5 (Berkeley) %G%
+
+MAN3F= abort.0 access.0 alarm.0 bessel.0 bit.0 chdir.0 chmod.0 etime.0 \
        exit.0 fdate.0 flmin.0 flush.0 fork.0 fseek.0 getarg.0 getc.0 \
        getcwd.0 getenv.0 getlog.0 getpid.0 getuid.0 getuid.0 hostnm.0 \
        idate.0 index.0 intro.0 ioinit.0 kill.0 link.0 loc.0 long.0 \
        malloc.0 perror.0 plot.0 putc.0 qsort.0 rand.0 random.0 rename.0 \
        signal.0 sleep.0 stat.0 system.0 time.0 topen.0 traper.0 trapov.0 \
        trpfpe.0 ttynam.0 unlink.0 wait.0
        exit.0 fdate.0 flmin.0 flush.0 fork.0 fseek.0 getarg.0 getc.0 \
        getcwd.0 getenv.0 getlog.0 getpid.0 getuid.0 getuid.0 hostnm.0 \
        idate.0 index.0 intro.0 ioinit.0 kill.0 link.0 loc.0 long.0 \
        malloc.0 perror.0 plot.0 putc.0 qsort.0 rand.0 random.0 rename.0 \
        signal.0 sleep.0 stat.0 system.0 time.0 topen.0 traper.0 trapov.0 \
        trpfpe.0 ttynam.0 unlink.0 wait.0
+MLINKS=        bessel.3f besj0.3f bessel.3f besj1.3f bessel.3f besjn.3f bessel.3f \
+       besy0.3f bessel.3f besy1.3f bessel.3f besyn.3f bessel.3f dbesj0.3f \
+       bessel.3f dbesj1.3f bessel.3f dbesjn.3f bessel.3f dbesy0.3f bessel.3f \
+       dbesy1.3f bessel.3f dbesyn.3f
+MLINKS+=etime.3f dtime.3f
+MLINKS+=flmin.3f dffrac.3f flmin.3f dflmax.3f flmin.3f dflmin.3f flmin.3f \
+       ffrac.3f flmin.3f flmax.3f flmin.3f inmax.3f
+MLINKS+=fseek.3f ftell.3f
+MLINKS+=getarg.3f iargc.3f
+MLINKS+=getc.3f fgetc.3f
+MLINKS+=getuid.3f getgid.3f
+MLINKS+=idate.3f itime.3f
+MLINKS+=index.3f len.3f index.3f lnblnk.3f index.3f rindex.3f
+MLINKS+=intro.3f fortran.3f
+MLINKS+=link.3f symlnk.3f
+MLINKS+=long.3f short.3f
+MLINKS+=malloc.3f falloc.3f
+MLINKS+=perror.3f gerror.3f perror.3f ierrno.3f
+MLINKS+=plot.3f box.3f
+MLINKS+=putc.3f fputc.3f
+MLINKS+=rand.3f drand.3f rand.3f irand.3f
+MLINKS+=random.3f drandm.3f random.3f irandm.3f
+MLINKS+=stat.3f fstat.3f stat.3f lstat.3f
+MLINKS+=time.3f ctime.3f time.3f gmtime.3f time.3f ltime.3f
+MLINKS+=topen.3f tclose.3f topen.3f tread.3f topen.3f trewin.3f topen.3f \
+       tskipf.3f topen.3f tstate.3f topen.3f twrite.3f
+MLINKS+=trpfpe.3f fpecnt.3f
+MLINKS+=ttynam.3f isatty.3f
+MLINKS+=bit.3f and.3f bit.3f lshift.3f bit.3f not.3f bit.3f or.3f bit.3f \
+       rshift.3f bit.3f xor.3f
+
+all: ${MAN3F}
 
 
-all clean depend lint tags:
+clean depend lint tags:
 
 cleandir:
 
 cleandir:
-       rm -f ${OBJS}
+       rm -f ${MAN3F}
+
+install: maninstall
 
 
-install: ${OBJS}
-       install -c -o bin -g bin -m 444 ${OBJS} ${MDIR}
-       rm -f ${MDIR}/and.0; ln ${MDIR}/bit.0 ${MDIR}/and.0
-       rm -f ${MDIR}/lshift.0; ln ${MDIR}/bit.0 ${MDIR}/lshift.0
-       rm -f ${MDIR}/not.0; ln ${MDIR}/bit.0 ${MDIR}/not.0
-       rm -f ${MDIR}/or.0; ln ${MDIR}/bit.0 ${MDIR}/or.0
-       rm -f ${MDIR}/rshift.0; ln ${MDIR}/bit.0 ${MDIR}/rshift.0
-       rm -f ${MDIR}/xor.0; ln ${MDIR}/bit.0 ${MDIR}/xor.0
-       rm -f ${MDIR}/box.0; ln ${MDIR}/plot.0 ${MDIR}/box.0
-       rm -f ${MDIR}/ctime.0; ln ${MDIR}/time.0 ${MDIR}/ctime.0
-       rm -f ${MDIR}/drand.0; ln ${MDIR}/rand.0 ${MDIR}/drand.0
-       rm -f ${MDIR}/fgetc.0; ln ${MDIR}/getc.0 ${MDIR}/fgetc.0
-       rm -f ${MDIR}/fputc.0; ln ${MDIR}/putc.0 ${MDIR}/fputc.0
-       rm -f ${MDIR}/fstat.0; ln ${MDIR}/stat.0 ${MDIR}/fstat.0
-       rm -f ${MDIR}/gmtime.0; ln ${MDIR}/time.0 ${MDIR}/gmtime.0
-       rm -f ${MDIR}/irand.0; ln ${MDIR}/rand.0 ${MDIR}/irand.0
-       rm -f ${MDIR}/lstat.0; ln ${MDIR}/stat.0 ${MDIR}/lstat.0
-       rm -f ${MDIR}/ltime.0; ln ${MDIR}/time.0 ${MDIR}/ltime.0
-       rm -f ${MDIR}/short.0; ln ${MDIR}/long.0 ${MDIR}/short.0
-       rm -f ${MDIR}/symlnk.0; ln ${MDIR}/link.0 ${MDIR}/symlnk.0
-       rm -f ${MDIR}/dffrac.0; ln ${MDIR}/flmin.0 ${MDIR}/dffrac.0
-       rm -f ${MDIR}/dflmax.0; ln ${MDIR}/flmin.0 ${MDIR}/dflmax.0
-       rm -f ${MDIR}/dflmin.0; ln ${MDIR}/flmin.0 ${MDIR}/dflmin.0
-       rm -f ${MDIR}/dtime.0; ln ${MDIR}/etime.0 ${MDIR}/dtime.0
-       rm -f ${MDIR}/ffrac.0; ln ${MDIR}/flmin.0 ${MDIR}/ffrac.0
-       rm -f ${MDIR}/flmax.0; ln ${MDIR}/flmin.0 ${MDIR}/flmax.0
-       rm -f ${MDIR}/fortran.0; ln ${MDIR}/intro.0 ${MDIR}/fortran.0
-       rm -f ${MDIR}/ftell.0; ln ${MDIR}/fseek.0 ${MDIR}/ftell.0
-       rm -f ${MDIR}/inmax.0; ln ${MDIR}/flmin.0 ${MDIR}/inmax.0
-       rm -f ${MDIR}/itime.0; ln ${MDIR}/idate.0 ${MDIR}/itime.0
-       rm -f ${MDIR}/len.0; ln ${MDIR}/index.0 ${MDIR}/len.0
-       rm -f ${MDIR}/lnblnk.0; ln ${MDIR}/index.0 ${MDIR}/lnblnk.0
-       rm -f ${MDIR}/rindex.0; ln ${MDIR}/index.0 ${MDIR}/rindex.0
-       rm -f ${MDIR}/tclose.0; ln ${MDIR}/topen.0 ${MDIR}/tclose.0
-       rm -f ${MDIR}/tread.0; ln ${MDIR}/topen.0 ${MDIR}/tread.0
-       rm -f ${MDIR}/trewin.0; ln ${MDIR}/topen.0 ${MDIR}/trewin.0
-       rm -f ${MDIR}/tskipf.0; ln ${MDIR}/topen.0 ${MDIR}/tskipf.0
-       rm -f ${MDIR}/tstate.0; ln ${MDIR}/topen.0 ${MDIR}/tstate.0
-       rm -f ${MDIR}/twrite.0; ln ${MDIR}/topen.0 ${MDIR}/twrite.0
-       rm -f ${MDIR}/drandm.0; ln ${MDIR}/random.0 ${MDIR}/drandm.0
-       rm -f ${MDIR}/falloc.0; ln ${MDIR}/malloc.0 ${MDIR}/falloc.0
-       rm -f ${MDIR}/fpecnt.0; ln ${MDIR}/trpfpe.0 ${MDIR}/fpecnt.0
-       rm -f ${MDIR}/gerror.0; ln ${MDIR}/perror.0 ${MDIR}/gerror.0
-       rm -f ${MDIR}/getgid.0; ln ${MDIR}/getuid.0 ${MDIR}/getgid.0
-       rm -f ${MDIR}/iargc.0; ln ${MDIR}/getarg.0 ${MDIR}/iargc.0
-       rm -f ${MDIR}/ierrno.0; ln ${MDIR}/perror.0 ${MDIR}/ierrno.0
-       rm -f ${MDIR}/irandm.0; ln ${MDIR}/random.0 ${MDIR}/irandm.0
-       rm -f ${MDIR}/isatty.0; ln ${MDIR}/ttynam.0 ${MDIR}/isatty.0
-       rm -f ${MDIR}/besj0.0; ln ${MDIR}/bessel.0 ${MDIR}/besj0.0
-       rm -f ${MDIR}/besj1.0; ln ${MDIR}/bessel.0 ${MDIR}/besj1.0
-       rm -f ${MDIR}/besjn.0; ln ${MDIR}/bessel.0 ${MDIR}/besjn.0
-       rm -f ${MDIR}/besy0.0; ln ${MDIR}/bessel.0 ${MDIR}/besy0.0
-       rm -f ${MDIR}/besy1.0; ln ${MDIR}/bessel.0 ${MDIR}/besy1.0
-       rm -f ${MDIR}/besyn.0; ln ${MDIR}/bessel.0 ${MDIR}/besyn.0
-       rm -f ${MDIR}/dbesj0.0; ln ${MDIR}/bessel.0 ${MDIR}/dbesj0.0
-       rm -f ${MDIR}/dbesj1.0; ln ${MDIR}/bessel.0 ${MDIR}/dbesj1.0
-       rm -f ${MDIR}/dbesjn.0; ln ${MDIR}/bessel.0 ${MDIR}/dbesjn.0
-       rm -f ${MDIR}/dbesy0.0; ln ${MDIR}/bessel.0 ${MDIR}/dbesy0.0
-       rm -f ${MDIR}/dbesy1.0; ln ${MDIR}/bessel.0 ${MDIR}/dbesy1.0
-       rm -f ${MDIR}/dbesyn.0; ln ${MDIR}/bessel.0 ${MDIR}/dbesyn.0
+.include <bsd.prog.mk>
index bff2729..12d0310 100644 (file)
@@ -1,31 +1,17 @@
-#
-# 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.4 (Berkeley) %G%
-#
-#
-MDIR=  ${DESTDIR}/usr/share/man/cat4
-OBJS=  bk.0 drum.0 icmp.0 idp.0 imp.0 inet.0 ip.0 kadb.0 lo.0 netintro.0 \
-       ns.0 nsip.0 null.0 pty.0 spp.0 tcp.0 tty.0 udp.0
+#      @(#)Makefile    5.5 (Berkeley) %G%
 
 
-all clean depend lint tags:
+MAN4=  bk.0 drum.0 fd.0 icmp.0 idp.0 imp.0 inet.0 ip.0 kadb.0 lo.0 \
+       netintro.0 ns.0 nsip.0 null.0 pty.0 spp.0 tcp.0 tty.0 udp.0
+MLINKS=        netintro.4 networking.4
+SUBDIR=        man4.tahoe man4.vax
+
+all: ${MAN4}
+
+clean depend lint tags:
 
 cleandir:
 
 cleandir:
-       rm -f ${OBJS}
+       rm -f ${MAN4}
+
+install: maninstall
 
 
-install: ${OBJS}
-       install -c -o bin -g bin -m 444 ${OBJS} ${MDIR}
-       rm -f ${MDIR}/networking.0; ln ${MDIR}/netintro.0 ${MDIR}/networking.0
+.include <bsd.prog.mk>
index 00e8a58..e984196 100644 (file)
@@ -1,30 +1,17 @@
-#
-# 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 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.3 (Berkeley) %G%
-#
-MDIR=  ${DESTDIR}/usr/man/cat4/tahoe
-OBJS=  ace.0 autoconf.0 cons.0 cy.0 dr.0 enp.0 ik.0 intro.0 lp.0 mem.0 \
+#      @(#)Makefile    5.4 (Berkeley) %G%
+
+MAN4=  ace.0 autoconf.0 cons.0 cy.0 dr.0 enp.0 ik.0 intro.0 lp.0 mem.0 \
        mtio.0 vd.0 vx.0
        mtio.0 vd.0 vx.0
+MLINKS=        mem.4 kmem.4
+MANSUBDIR=/tahoe
+
+all: ${MAN4}
 
 
-all clean depend lint tags:
+clean depend lint tags:
 
 cleandir:
 
 cleandir:
-       rm -f ${OBJS}
+       rm -f ${MAN4}
+
+install: maninstall
 
 
-install: ${OBJS}
-       install -c -o bin -g bin -m 444 ${OBJS} ${MDIR}
-       rm -f ${MDIR}/kmem.0; ln ${MDIR}/mem.0 ${MDIR}/kmem.0
+.include <bsd.prog.mk>
index a74a2ab..b0f5152 100644 (file)
@@ -1,33 +1,20 @@
-#
-# 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 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.3 (Berkeley) %G%
-#
-MDIR=  ${DESTDIR}/usr/man/cat4/vax
-OBJS=  acc.0 ad.0 autoconf.0 cons.0 crl.0 css.0 ct.0 ddn.0 de.0 dh.0 dhu.0 \
+#      @(#)Makefile    5.4 (Berkeley) %G%
+
+MAN4=  acc.0 ad.0 autoconf.0 cons.0 crl.0 css.0 ct.0 ddn.0 de.0 dh.0 dhu.0 \
        dmc.0 dmf.0 dmz.0 dn.0 dz.0 ec.0 en.0 ex.0 fl.0 hdh.0 hk.0 hp.0 \
        ht.0 hy.0 ik.0 il.0 intro.0 ix.0 kg.0 lp.0 mem.0 mt.0 mtio.0 np.0 \
        pcl.0 ps.0 qe.0 rx.0 tb.0 tm.0 tmscp.0 ts.0 tu.0 uda.0 up.0 ut.0 \
        uu.0 va.0 vp.0 vv.0
        dmc.0 dmf.0 dmz.0 dn.0 dz.0 ec.0 en.0 ex.0 fl.0 hdh.0 hk.0 hp.0 \
        ht.0 hy.0 ik.0 il.0 intro.0 ix.0 kg.0 lp.0 mem.0 mt.0 mtio.0 np.0 \
        pcl.0 ps.0 qe.0 rx.0 tb.0 tm.0 tmscp.0 ts.0 tu.0 uda.0 up.0 ut.0 \
        uu.0 va.0 vp.0 vv.0
+MLINKS=        mem.4 kmem.4
+MANSUBDIR=/vax
+
+all: ${MAN4}
 
 
-all clean depend lint tags:
+clean depend lint tags:
 
 cleandir:
 
 cleandir:
-       rm -f ${OBJS}
+       rm -f ${MAN4}
+
+install: maninstall
 
 
-install: ${OBJS}
-       install -c -o bin -g bin -m 444 ${OBJS} ${MDIR}
-       rm -f ${MDIR}/kmem.0; ln ${MDIR}/mem.0 ${MDIR}/kmem.0
+.include <bsd.prog.mk>
index b3df920..330a5bf 100644 (file)
@@ -1,35 +1,18 @@
-#
-# 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 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.4 (Berkeley) %G%
-#
-MDIR=  ${DESTDIR}/usr/share/man/cat5
-OBJS=  a.out.0 acct.0 core.0 dbx.0 dir.0 disktab.0 dump.0 fs.0 \
-       fstab.0 group.0 hosts.0 networks.0 \
-       passwd.0 phones.0 plot.0 printcap.0 protocols.0 remote.0 \
-       resolver.0 services.0 shells.0 stab.0 types.0 \
+#      @(#)Makefile    5.5 (Berkeley) %G%
+
+MAN5=  a.out.0 acct.0 core.0 dbx.0 dir.0 disktab.0 dump.0 fs.0 fstab.0 \
+       group.0 hosts.0 networks.0 passwd.0 phones.0 plot.0 printcap.0 \
+       protocols.0 remote.0 resolver.0 services.0 shells.0 stab.0 types.0 \
        utmp.0 vfont.0
        utmp.0 vfont.0
+MLINKS=        fs.5 inode.5 dump.5 dumpdates.5 utmp.5 wtmp.5
+
+all: ${MAN5}
 
 
-all clean depend lint tags:
+clean depend lint tags:
 
 cleandir:
 
 cleandir:
-       rm -f ${OBJS}
+       rm -f ${MAN5}
+
+install: maninstall
 
 
-install: ${OBJS}
-       install -c -o bin -g bin -m 444 ${OBJS} ${MDIR}
-       rm -f ${MDIR}/inode.0; ln ${MDIR}/fs.0 ${MDIR}/inode.0
-       rm -f ${MDIR}/dumpdates.0; ln ${MDIR}/dump.0 ${MDIR}/dumpdates.0
-       rm -f ${MDIR}/wtmp.0; ln ${MDIR}/utmp.0 ${MDIR}/wtmp.0
+.include <bsd.prog.mk>
index c17c5fb..d04157d 100644 (file)
@@ -1,31 +1,16 @@
-#
-# 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 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.4 (Berkeley) %G%
-#
-MDIR=  ${DESTDIR}/usr/share/man/cat7
-OBJS=  ascii.0 environ.0 eqnchar.0 hier.0 hostname.0 intro.0 mailaddr.0 \
+#      @(#)Makefile    5.5 (Berkeley) %G%
+
+MAN7=  ascii.0 environ.0 eqnchar.0 hier.0 hostname.0 intro.0 mailaddr.0 \
        man.0 ms.0 operator.0 term.0
        man.0 ms.0 operator.0 term.0
+MLINKS=        intro.7 miscellaneous.7
+
+all: ${MAN7}
 
 
-all clean depend lint tags:
+clean depend lint tags:
 
 cleandir:
 
 cleandir:
-       rm -f ${OBJS}
+       rm -f ${MAN7}
+
+install: maninstall
 
 
-install: ${OBJS}
-       install -c -o bin -g bin -m 444 ${OBJS} ${MDIR}
-       rm -f ${MDIR}/miscellaneous.0; \
-               ln ${MDIR}/intro.0 ${MDIR}/miscellaneous.0
+.include <bsd.prog.mk>
index e064733..28ebd26 100644 (file)
@@ -1,34 +1,17 @@
-#
-# Copyright (c) 1988 Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# 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.5 (Berkeley) %G%
-#
-MDIR=  ${DESTDIR}/usr/share/man/cat8
-OBJS=  adduser.0 intro.0 makedev.0 rc.0 sticky.0
+#      @(#)Makefile    5.6 (Berkeley) %G%
 
 
-all clean depend lint tags:
+MAN8=  adduser.0 intro.0 makedev.0 rc.0 sticky.0
+MLINKS=        sa.8 accton.8 mount.8 umount.8 newfs.8 mkfs.8 quotaon.8 quotaoff.8 \
+       uucico.8 uucpd.8 fastboot.8 fasthalt.8
+SUBDIR=        man8.vax
+
+all: ${MAN8}
+
+clean depend lint tags:
 
 cleandir:
 
 cleandir:
-       rm -f ${OBJS}
+       rm -f ${MAN8}
+
+install: maninstall
 
 
-install: ${OBJS}
-       install -c -o bin -g bin -m 444 ${OBJS} ${MDIR}
-       rm -f ${MDIR}/accton.0; ln ${MDIR}/sa.0 ${MDIR}/accton.0
-       rm -f ${MDIR}/umount.0; ln ${MDIR}/mount.0 ${MDIR}/umount.0
-       rm -f ${MDIR}/mkfs.0; ln ${MDIR}/newfs.0 ${MDIR}/mkfs.0
-       rm -f ${MDIR}/quotaoff.0; ln ${MDIR}/quotaon.0 ${MDIR}/quotaoff.0
-       rm -f ${MDIR}/uucpd.0; ln ${MDIR}/uucico.0 ${MDIR}/uucpd.0
-       rm -f ${MDIR}/fasthalt.0; ln ${MDIR}/fastboot.0 ${MDIR}/fasthalt.0
+.include <bsd.prog.mk>
index 1652687..15f1207 100644 (file)
@@ -1,28 +1,15 @@
-#
-# 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 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.3 (Berkeley) %G%
-#
-MDIR=  ${DESTDIR}/usr/man/cat8/vax
-OBJS=  crash.0 drtest.0 format.0 installboot.0
+#      @(#)Makefile    5.4 (Berkeley) %G%
 
 
-all clean depend lint tags:
+MAN8=  crash.0 drtest.0 format.0 installboot.0
+MANSUBDIR=/vax
+
+all: ${MAN8}
+
+clean depend lint tags:
 
 cleandir:
 
 cleandir:
-       rm -f ${OBJS}
+       rm -f ${MAN8}
+
+install: maninstall
 
 
-install: ${OBJS}
-       install -c -o bin -g bin -m 444 ${OBJS} ${MDIR}
+.include <bsd.prog.mk>
index b78bb33..df1f8f4 100644 (file)
@@ -1,45 +1,30 @@
-#
-# 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    6.8 (Berkeley) %G%
-#
-MELIB= /usr/share/me
-TMLIB= /usr/share/tmac
+#      @(#)Makefile    6.9 (Berkeley) %G%
+
+MELIB= ${BINDIR}/me
+TMLIB= ${BINDIR}/tmac
 MESRCS=        acm.me chars.me deltext.me eqn.me float.me footnote.me \
        index.me letterhead.me local.me null.me refer.me sh.me \
        tbl.me thesis.me
 TMSRCS=        tmac.e
 MESRCS=        acm.me chars.me deltext.me eqn.me float.me footnote.me \
        index.me letterhead.me local.me null.me refer.me sh.me \
        tbl.me thesis.me
 TMSRCS=        tmac.e
+MAN7=  me.0
+
+all: ${MAN7}
 
 
-all:
+clean cleandir depend lint tags:
 
 
-install: FRC
-       -[ -d ${DESTDIR}${MELIB} ] || mkdir ${DESTDIR}${MELIB}
-       -[ -d ${DESTDIR}${TMLIB} ] || mkdir ${DESTDIR}${TMLIB}
-       chown bin.bin ${DESTDIR}${MELIB} ${DESTDIR}${TMLIB}
-       chmod 755 ${DESTDIR}${MELIB} ${DESTDIR}${TMLIB}
+install: maninstall
        for i in ${MESRCS}; do \
                sed -f strip.sed < $$i > ${DESTDIR}${MELIB}/$$i; \
        for i in ${MESRCS}; do \
                sed -f strip.sed < $$i > ${DESTDIR}${MELIB}/$$i; \
-               chown bin.bin ${DESTDIR}${MELIB}/$$i; \
+               chown ${BINOWN}.${BINGRP} ${DESTDIR}${MELIB}/$$i; \
                chmod 444 ${DESTDIR}${MELIB}/$$i; \
        done
        for i in ${TMSRCS}; do \
                sed -f strip.sed < $$i > ${DESTDIR}${TMLIB}/$$i; \
                chmod 444 ${DESTDIR}${MELIB}/$$i; \
        done
        for i in ${TMSRCS}; do \
                sed -f strip.sed < $$i > ${DESTDIR}${TMLIB}/$$i; \
-               chown bin.bin ${DESTDIR}${TMLIB}/$$i; \
+               chown ${BINOWN}.${BINGRP} ${DESTDIR}${TMLIB}/$$i; \
                chmod 444 ${DESTDIR}${TMLIB}/$$i; \
        done
                chmod 444 ${DESTDIR}${TMLIB}/$$i; \
        done
-       install -c -o bin -g bin -m 444 revisions ${DESTDIR}${MELIB}/revisions
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 revisions \
+           ${DESTDIR}${MELIB}/revisions
 
 
-clean cleandir depend lint tags FRC:
+.include <bsd.own.mk>
+.include <bsd.man.mk>
index 23b80da..193b0e1 100644 (file)
@@ -1,25 +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.1 (Berkeley) %G%
-#
+#      @(#)Makefile    5.2 (Berkeley) %G%
 
 FILES= dot.cshrc dot.login dot.mailrc dot.profile dot.rhosts
 
 all clean cleandir depend lint tags:
 
 install:
 
 FILES= dot.cshrc dot.login dot.mailrc dot.profile dot.rhosts
 
 all clean cleandir depend lint tags:
 
 install:
-       install -c -o bin -g bin -m 444 ${FILES} ${DESTDIR}/usr/share/skel
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \
+           ${DESTDIR}${BINDIR}/skel
+
+.include <bsd.own.mk>
diff --git a/usr/src/share/tabset/Makefile b/usr/src/share/tabset/Makefile
new file mode 100644 (file)
index 0000000..f24f6e5
--- /dev/null
@@ -0,0 +1,13 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+FILES= 3101 aa aed512 beehive diablo dtc382 hp700-wy ibm3101 std stdcrt \
+       tandem653 teleray vt100 wyse-adds xerox1720 xerox1730 xerox1730-lm \
+       zenith29
+
+all clean cleandir depend lint tags:
+
+install:
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \
+           ${DESTDIR}${BINDIR}/tabset
+
+.include <bsd.own.mk>
index 1c6574b..93805db 100644 (file)
@@ -1,46 +1,29 @@
-#
-# 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.8 (Berkeley) %G%
-#
+#      @(#)Makefile    5.9 (Berkeley) %G%
+
 # reorder gives an editor command for most common terminals
 # (in reverse order from n'th to 1'st most commonly used)
 # to move them to the front of termcap
 #
 # reorder gives an editor command for most common terminals
 # (in reverse order from n'th to 1'st most commonly used)
 # to move them to the front of termcap
 #
-MAN=   termcap.0
-TABS=  3101 aa aed512 beehive diablo dtc382 hp700-wy ibm3101 \
-       std stdcrt tandem653 teleray vt100 wyse-adds \
-       xerox1720 xerox1730 xerox1730-lm zenith29
+MAN5=  termcap.0
 
 
-all: termcap
+all: termcap ${MAN5}
 
 termcap: reorder termcap.src
 
 termcap: reorder termcap.src
-       ex - termcap.src < reorder
+       ex - ${.CURDIR}/termcap.src < ${.CURDIR}/reorder > /dev/null
 
 clean:
        rm -f termcap
 
 
 clean:
        rm -f termcap
 
-cleandir:
-       rm -f ${MAN} tags .depend
+cleandir: clean
+       rm -f ${MAN}
 
 
-install: ${MAN}
-       install -o bin -g bin -m 444 termcap ${DESTDIR}/usr/share/misc
-       install -c -o bin -g bin -m 444 map3270 ${DESTDIR}/usr/share/misc
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat5
-       cd tabset; install -c -o bin -g bin -m 444 ${TABS} \
-           ${DESTDIR}/usr/share/tabset
+install: maninstall
+       install -o ${BINOWN} -g ${BINGRP} -m 444 termcap \
+            ${DESTDIR}${BINDIR}/misc
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 map3270 \
+            ${DESTDIR}${BINDIR}/misc
 
 depend lint tags:
 
 depend lint tags:
+
+.include <bsd.own.mk>
+.include <bsd.man.mk>
index b641fda..ac927b7 100644 (file)
@@ -1,11 +1,11 @@
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  tmac.an tmac.an.new tmac.an6n tmac.an6t
+#      @(#)Makefile    6.5 (Berkeley) %G%
+
+FILES= tmac.an tmac.an.new tmac.an6n tmac.an6t
 
 all clean cleandir depend lint tags:
 
 install:
 
 all clean cleandir depend lint tags:
 
 install:
-       for i in ${SRCS}; do \
-               (install -c -o bin -g bin -m 644 $$i \
-                   ${DESTDIR}/usr/share/tmac/$$i); done
+       install -c -o ${BINOWN} -g ${BINOWN} -m 444 ${FILES} \
+           ${DESTDIR}${BINDIR}/tmac
 
 
+.include <bsd.own.mk>
index 5cfa9d1..0246de9 100644 (file)
@@ -1,4 +1,4 @@
-# @(#)Makefile 4.31
+#      @(#)Makefile    5.5 (Berkeley) %G%
 
 # Change the line below for your time zone (after finding the zone you want in
 # the time zone files, or adding it to a time zone file).
 
 # Change the line below for your time zone (after finding the zone you want in
 # the time zone files, or adding it to a time zone file).
@@ -95,13 +95,13 @@ REDO=               right_only
 #      -DCMUCS
 # to the end of the "CFLAGS=" line
 
 #      -DCMUCS
 # to the end of the "CFLAGS=" line
 
-VPATH= data
+.PATH: ${.CURDIR}/datfiles
 CFLAGS=        -Demkdir=mkdir -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DNOSOLAR \
        -DTZDIR=\"$(TZDIR)\"
 MAN=   tzfile.0
 
 CFLAGS=        -Demkdir=mkdir -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DNOSOLAR \
        -DTZDIR=\"$(TZDIR)\"
 MAN=   tzfile.0
 
-OBJS=  zic.o scheck.o ialloc.o
 SRCS=  zic.c scheck.c ialloc.c
 SRCS=  zic.c scheck.c ialloc.c
+OBJS=  ${SRCS:.c=.o}
 
 YDATA= africa antarctica asia australasia europe northamerica \
        southamerica pacificnew etcetera factory
 
 YDATA= africa antarctica asia australasia europe northamerica \
        southamerica pacificnew etcetera factory
@@ -111,30 +111,38 @@ TDATA=    $(YDATA) $(NDATA) $(SDATA)
 DATA=  $(YDATA) $(NDATA) $(SDATA) leapseconds
 USNO=  usno1988 usno1989
 
 DATA=  $(YDATA) $(NDATA) $(SDATA) leapseconds
 USNO=  usno1988 usno1989
 
-all: zic
+all: zic ${MAN}
 
 
-zic: $(OBJS)
+zic: $(OBJS) ${MAN}
        $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@
 
 posix_only: $(TDATA)
        $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@
 
 posix_only: $(TDATA)
-       ./zic -d $(TZDIR) -L /dev/null $(TDATA)
+       (cd ${.CURDIR}/datfiles; \
+           ../obj/zic -d $(TZDIR) -L /dev/null $(TDATA))
 
 right_only: leapseconds $(TDATA)
 
 right_only: leapseconds $(TDATA)
-       ./zic -d $(TZDIR) -L leapseconds $(TDATA)
+       (cd ${.CURDIR}/datfiles; \
+           ../obj/zic -d $(TZDIR) -L leapseconds $(TDATA))
 
 other_two: leapseconds $(TDATA)
 
 other_two: leapseconds $(TDATA)
-       ./zic -d $(TZDIR)/posix -L /dev/null $(TDATA)
-       ./zic -d $(TZDIR)/right -L leapseconds $(TDATA)
+       (cd ${.CURDIR}/datfiles;
+           ../obj/zic -d $(TZDIR)/posix -L /dev/null $(TDATA))
+       (cd ${.CURDIR}/datfiles; \
+           ../obj/zic -d $(TZDIR)/right -L leapseconds $(TDATA))
 
 posix_right: posix_only other_two
 
 right_posix: right_only other_two
 
 install: ${MAN} $(DATA) $(REDO)
 
 posix_right: posix_only other_two
 
 right_posix: right_only other_two
 
 install: ${MAN} $(DATA) $(REDO)
-       ./zic -d $(TZDIR) -l $(LOCALTIME) -p $(POSIXRULES)
-       install -c -o bin -g bin -m 444 tzfile.0 ${DESTDIR}/usr/man/man5
-       chown -R bin.bin $(TZDIR)
-       chmod 775 $(TZDIR)
+       (cd ${.CURDIR}/datfiles; \
+           ../obj/zic -d $(TZDIR) -p $(POSIXRULES))
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 tzfile.0 \
+           ${DESTDIR}/usr/man/cat5
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
+           ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
+       chown -R ${BINOWN}.${BINGRP} $(TZDIR)
+       chmod -R a-w $(TZDIR)
 
 clean:
        rm -f core *.o zic
 
 clean:
        rm -f core *.o zic
@@ -143,6 +151,8 @@ cleandir: clean
        rm -f ${MAN} tags .depend
 
 depend: $(SRCS)
        rm -f ${MAN} tags .depend
 
 depend: $(SRCS)
-       mkdep $(CFLAGS) $(SRCS)
+       mkdep ${CFLAGS} ${.ALLSRC}
 
 
-lint:
+lint tags:
+
+.include <bsd.prog.mk>
index 57b4ab3..c24a698 100644 (file)
@@ -1,49 +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=  ar.c
-OBJS=
-MAN=   ar.0 ar5.0
+PROG=  ar
+MAN5=  ar.format.0
 
 
-all: ar
-
-ar: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core ar
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 ar ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ar.0 ${DESTDIR}/usr/man/cat1
-       install -c -o bin -g bin -m 444 ar5.0 ${DESTDIR}/usr/man/cat5/ar.0
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.bin/at/Makefile b/usr/src/usr.bin/at/Makefile
new file mode 100644 (file)
index 0000000..9738291
--- /dev/null
@@ -0,0 +1,5 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+SUBDIR=        at atq atrm atrun
+
+.include <bsd.subdir.mk>
index 4c9d162..ba966f1 100644 (file)
@@ -1,73 +1,6 @@
-#
-# Copyright (c) 1988 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.9 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  atq.c atrm.c at.c atrun.c
-OBJS=  atq.o atrm.o at.o atrun.o
-ATRUNDIR=      /usr/libexec
-SPOOLDIRS=     /var/spool/at /var/spool/at/past
-SPOOLFILES=    /var/spool/at/lasttimedone
-MAN=   at.0 atq.0 atrm.0
+#      @(#)Makefile    5.10 (Berkeley) %G%
 
 
-all: atq atrm at atrun
+PROG=  at
 
 
-at atq atrm atrun: ${LIBC}
-       ${CC} ${CFLAGS} -o $@ $@.c
-
-clean:
-       rm -f ${OBJS} core atq atrm at atrun
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       -for i in ${SPOOLDIRS}; do \
-               mkdir ${DESTDIR}/$$i > /dev/null 2>&1; \
-               chown root ${DESTDIR}/$$i; \
-               chgrp daemon ${DESTDIR}/$$i; \
-               chmod 755 ${DESTDIR}/$$i; \
-       done
-       -for i in ${SPOOLFILES}; do \
-               if [ ! -f ${DESTDIR}/$$i ]; then \
-                       echo 0 > ${DESTDIR}/$$i; \
-               fi; \
-               chown root ${DESTDIR}/$$i; \
-               chgrp daemon ${DESTDIR}/$$i; \
-       done
-       install -s -o bin -g bin -m 755 atrun ${DESTDIR}/${ATRUNDIR}
-       install -s -o root -g bin -m 4755 atq ${DESTDIR}/usr/bin
-       install -s -o root -g bin -m 4755 at ${DESTDIR}/usr/bin
-       install -s -o root -g bin -m 4755 atrm ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} atq.c
-       lint ${CFLAGS} atrm.c
-       lint ${CFLAGS} at.c
-       lint ${CFLAGS} atrun.c
-
-tags: ${SRCS}
-       ctags atq.c
-       ctags -a atrm.c
-       ctags -a at.c
-       ctags -a atrun.c
-       sort -o tags tags
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.bin/at/atq/Makefile b/usr/src/usr.bin/at/atq/Makefile
new file mode 100644 (file)
index 0000000..6c20c9f
--- /dev/null
@@ -0,0 +1,6 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  atq
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.bin/at/atrm/Makefile b/usr/src/usr.bin/at/atrm/Makefile
new file mode 100644 (file)
index 0000000..dd39403
--- /dev/null
@@ -0,0 +1,6 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  atrm
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.bin/at/atrun/Makefile b/usr/src/usr.bin/at/atrun/Makefile
new file mode 100644 (file)
index 0000000..95af478
--- /dev/null
@@ -0,0 +1,8 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  atrun
+BINDIR=        /usr/libexec
+NOMAN= noman
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
index 6a51c93..3c4ab1d 100644 (file)
@@ -1,50 +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.1 (Berkeley) %G%
-#
+#      @(#)Makefile    5.2 (Berkeley) %G%
 
 
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  basename.c dirname.c
-OBJS=
-MAN=   basename.0
+PROG=  basename
+MLINKS=        basename.1 dirname.1
 
 
-all: basename dirname
-
-basename dirname: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core basename dirname
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 basename dirname ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 basename.0 ${DESTDIR}/usr/man/cat1
-       rm -f ${DESTDIR}/usr/man/cat1/dirname.0
-       ln ${DESTDIR}/usr/man/cat1/basename.0 ${DESTDIR}/usr/man/cat1/dirname.0
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 6c3736d..0c749b2 100644 (file)
@@ -1,63 +1,19 @@
-#
-# Copyright (c) 1987 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.11 (Berkeley) %G%
-#
-CFLAGS=        -O -DBSD4_2 -DSACREDMEM=256000 -DUSERMEM=`cat USERMEM` 
-LIBC=  /lib/libc.a
-SRCS=  compress.c
-OBJS=
-MAN=   compress.0
+#      @(#)Makefile    5.12 (Berkeley) %G%
 
 
-all: compress
+PROG=  compress
+CFLAGS+=-DBSD4_2 -DSACREDMEM=256000 -DUSERMEM=`cat USERMEM`
+DPADD= ${LIBCOMPAT}
+LDADD= -lcompat
+LINKS= ${BINDIR}/compress ${BINDIR}/uncompress \
+       ${BINDIR}/compress ${BINDIR}/zcat
+MLINKS=        compress.1 uncompress.1 compress.1 zcat.1
 
 
-compress: USERMEM ${LIBC}
-       ${CC} ${CFLAGS} -o $@ $@.c -lcompat
+all: USERMEM
 
 # USERMEM may have to be set by hand.  It should contain the amount of
 # available user memory in bytes.  Set it to zero, for physical memory
 # less than 1 Meg.
 
 # USERMEM may have to be set by hand.  It should contain the amount of
 # available user memory in bytes.  Set it to zero, for physical memory
 # less than 1 Meg.
-USERMEM: FRC
-       sh usermem.sh > USERMEM
+USERMEM: ${.CURDIR}/usermem.sh
+       sh ${.CURDIR}/usermem.sh > USERMEM
 
 
-clean:
-       rm -f ${OBJS} core compress
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 compress ${DESTDIR}/usr/bin
-       rm -f ${DESTDIR}/usr/bin/uncompress ${DESTDIR}/usr/bin/zcat
-       ln ${DESTDIR}/usr/bin/compress ${DESTDIR}/usr/bin/uncompress
-       ln ${DESTDIR}/usr/bin/compress ${DESTDIR}/usr/bin/zcat
-       rm -f ${DESTDIR}/usr/man/cat1/uncompress.0 \
-           ${DESTDIR}/usr/man/cat1/zcat.0
-       install -c -o bin -g bin -m 444 compress.0 ${DESTDIR}/usr/man/cat1
-       ln ${DESTDIR}/usr/man/cat1/compress.0 \
-           ${DESTDIR}/usr/man/cat1/uncompress.0
-       ln ${DESTDIR}/usr/man/cat1/compress.0 ${DESTDIR}/usr/man/cat1/zcat.0
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
-
-FRC:
+.include <bsd.prog.mk>
index d740cd7..f4138e2 100644 (file)
@@ -1,48 +1,7 @@
-#
-# 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.5 (Berkeley) %G%
-#
-DESTDIR=
-CFLAGS=-O -I.
-LIBC=  /lib/libc.a
-SRCS=  C.c ctags.c fortran.c lisp.c print.c tree.c yacc.c
-OBJS=  C.o ctags.o fortran.o lisp.o print.o tree.o yacc.o
-MAN=   ctags.0
-
-all: ctags
-
-ctags: ${OBJS} ${LIBC}
-       ${CC} ${CFLAGS} -o $@ ${OBJS}
-
-clean:
-       rm -f ${OBJS} core ctags
+#      @(#)Makefile    5.6 (Berkeley) %G%
 
 
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 ctags ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+PROG=  ctags
+CFLAGS+=-I${.CURDIR}
+SRCS=  C.c ctags.c fortran.c lisp.c print.c tree.c yacc.c
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.bin/diff/Makefile b/usr/src/usr.bin/diff/Makefile
new file mode 100644 (file)
index 0000000..9e35a76
--- /dev/null
@@ -0,0 +1,5 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+SUBDIR=        diff diff3 diffh
+
+.include <bsd.subdir.mk>
index d163f1e..68a635d 100644 (file)
@@ -1,58 +1,8 @@
-#
-# 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.5 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  diff.c diffdir.c diffreg.c
-OBJS=  diff.o diffdir.o diffreg.o
-HSRCS= diffh.c
-HOBJS= diffh.o
-MAN=   diff.0
-
-all: diff diffh
-
-diff: ${OBJS} ${LIBC}
-       ${CC} ${CFLAGS} -o $@ ${OBJS}
-
-diffh: ${HOBJS} ${LIBC}
-       ${CC} ${CFLAGS} -o $@ ${HOBJS}
-
-clean:
-       rm -f ${HOBJS} ${OBJS} core diff diffh
+#      @(#)Makefile    4.6 (Berkeley) %G%
 
 
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${HSRCS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 diff ${DESTDIR}/usr/bin/diff
-       install -s -o bin -g bin -m 755 diffh ${DESTDIR}/usr/bin/diffh
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       rm -f ${DESTDIR}/usr/man/cat1/diffh.0
-       ln ${DESTDIR}/usr/man/cat1/diff.0 ${DESTDIR}/usr/man/cat1/diffh.0
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-       lint ${CFLAGS} ${HSRCS}
+PROG=  diff
+SRCS=  diff.c diffdir.c diffreg.c
+MLINKS=        diff.1 diffh.1
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
-       ctags ${HSRCS}
-       sort -o tags tags
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
index b3c823e..2bd488f 100644 (file)
@@ -1,48 +1,11 @@
-#
-# 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 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    4.6 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  diff3.c
-OBJS=
-MAN=   diff3.0
+#      @(#)Makefile    4.7 (Berkeley) %G%
 
 
-all: diff3
+PROG=  diff3
+BINDIR=        /usr/libexec
 
 
-diff3: ${LIBC}
-       ${CC} ${CFLAGS} -o $@ $@.c
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${.CURDIR}/diff3.sh ${DESTDIR}/usr/bin/${PROG}
 
 
-clean:
-       rm -f ${OBJS} core diff3
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 diff3 $(DESTDIR)/usr/libexec/diff3
-       install -c -o bin -g bin -m 755 diff3.sh $(DESTDIR)/usr/bin/diff3
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.bin/diff/diffh/Makefile b/usr/src/usr.bin/diff/diffh/Makefile
new file mode 100644 (file)
index 0000000..3a7e262
--- /dev/null
@@ -0,0 +1,7 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  diffh
+NOMAN= noman
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
index 3c5ebe8..8906d7e 100644 (file)
@@ -1,49 +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
+#      @(#)Makefile    5.8 (Berkeley) %G%
+
+PROG=  error
 SRCS=  errormain.c errorinput.c errorpi.c errorsubr.c errorfilter.c \
        errortouch.c
 SRCS=  errormain.c errorinput.c errorpi.c errorsubr.c errorfilter.c \
        errortouch.c
-OBJS=  errormain.o errorinput.o errorpi.o errorsubr.o errorfilter.o \
-       errortouch.o
-MAN=   error.0
-
-all: error
-
-error: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-clean:
-       rm -f ${OBJS} core error
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 error ${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 2e08269..f27c5d6 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=  false.c
-OBJS=
-MAN=   false.0
+PROG=  false
 
 
-all: false
-
-false: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core false
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 false ${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 a544863..bb5d072 100644 (file)
@@ -1,47 +1,9 @@
-#
-# Copyright (c) 1988 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    4.9 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /usr/lib/libc.a
-SRCS=  find.c
-OBJS=
-MAN=   find.0
+#      @(#)Makefile    5.1 (Berkeley) %G%
 
 
-all: find
+PROG=  find
+SRCS=  find.c function.c ls.c misc.c newsyntax.c oldsyntax.c operator.c \
+       option.c
+DPADD= ${LIBUTIL}
+LDADD= -lutil
 
 
-find: ${LIBC}
-       ${CC} ${CFLAGS} -o $@ $@.c
-
-clean:
-       rm -f ${OBJS} core find
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 find ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} find.c
-
-tags: ${SRCS}
-       ctags find.c
+.include <bsd.prog.mk>
index 1e57dd6..dda469d 100644 (file)
@@ -1,47 +1,5 @@
-#
-# Copyright (c) 1987 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.3 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  fpr.c
-OBJS=
-MAN=   fpr.0
+#      @(#)Makefile    5.4 (Berkeley) %G%
 
 
-all: fpr
+PROG=  fpr
 
 
-fpr: ${SRCS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${SRCS}
-
-clean:
-       rm -f ${OBJS} core fpr
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 fpr ${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 dd7e2ae..f965a7e 100644 (file)
@@ -1,47 +1,5 @@
-#
-# Copyright (c) 1987 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.4 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  fsplit.c
-OBJS=
-MAN=   fsplit.0
+#      @(#)Makefile    5.5 (Berkeley) %G%
 
 
-all: fsplit
+PROG=  fsplit
 
 
-fsplit: ${SRCS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${SRCS}
-
-clean:
-       rm -f ${OBJS} core fsplit
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 fsplit ${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 0443aed..d1ab7e1 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=  gcore.c
-OBJS=
-MAN=   gcore.0
+PROG=  gcore
 
 
-all: gcore
-
-gcore: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core gcore
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g kmem -m 2755 gcore ${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 a31a2c1..9e2c5f7 100644 (file)
@@ -1,63 +1,13 @@
-#
-# 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 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.16 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-HDRS=  gprof.h ${MACHINE}.h
+#      @(#)Makefile    5.17 (Berkeley) %G%
+
+PROG=  gprof
 SRCS=  gprof.c arcs.c dfn.c lookup.c ${MACHINE}.c hertz.c \
        printgprof.c printlist.c
 SRCS=  gprof.c arcs.c dfn.c lookup.c ${MACHINE}.c hertz.c \
        printgprof.c printlist.c
-OBJS=  gprof.o arcs.o dfn.o lookup.o ${MACHINE}.o hertz.o \
-       printgprof.o printlist.o
-MAN=   gprof.0
-
-all: gprof
-
-gprof: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-gcrt0.h: FRC
-       -if [ -r gcrt0.h ] && \
-               cmp -s gcrt0.h ../../lib/libc/csu/${MACHINE}/gmon.h; then \
-               :; \
-       else \
-               rm -f gcrt0.h; \
-               cp ../../lib/libc/csu/${MACHINE}/gmon.h gcrt0.h; \
-       fi
-
-clean:
-       rm -f ${OBJS} core gprof
+CFLAGS+=-I${.CURDIR}/../../lib/csu.${MACHINE}
 
 
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 gprof ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 gprof.flat gprof.callg \
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${.CURDIR}/gprof.flat ${.CURDIR}/gprof.callg \
            ${DESTDIR}/usr/share/misc
            ${DESTDIR}/usr/share/misc
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
 
 
-FRC:
+.include <bsd.prog.mk>
index 042bccd..41f1f09 100644 (file)
@@ -1,66 +1,51 @@
-#
-# Copyright (c) 1987 Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.5 (Berkeley) %G%
-#
-#
-# -Dstrrchr=rindex, -Dstrchr=index     for troglodytes.
-# -DSLOWSYS            invoke xread() for system time quirk on PDP, others? 
-# -DNOKANJI            default is for Japanese Unix.  undef only for raw
-#                       parity-marked search capability, not standard w/grep.
-# -DCHINESE            for systems using EUC Chinese2 codes
+#      @(#)Makefile    5.6 (Berkeley) %G%
 
 
-CFLAGS=        -O -Dstrrchr=rindex -Dstrchr=index -DNOKANJI
-LIBC=  /lib/libc.a
-ALL=   egrep old.ucb.grep old.bin.grep old.fgrep old.egrep
+# -DSLOWSYS    invoke xread() for system time quirk on PDP, others?
+# -DNOKANJI    default is for Japanese Unix.  undef only for raw
+#              parity-marked search capability, not standard w/grep.
+# -DCHINESE    for systems using EUC Chinese2 codes
+# -Dstrrchr=rindex, -Dstrchr=index     as necessary
+
+PROGS= egrep old.ucb.grep old.bin.grep old.fgrep old.egrep
+CFLAGS+=-Dstrrchr=rindex -Dstrchr=index -DNOKANJI
 SRCS=  egrep.c old.ucb.grep.c old.bin.grep.c old.fgrep.c old.egrep.c
 SRCS=  egrep.c old.ucb.grep.c old.bin.grep.c old.fgrep.c old.egrep.c
-OBJS=
-MAN=   grep.0
+LIBC=  /usr/lib/libc.a
+MAN1=  grep.0
+LINKS= ${BINDIR}/egrep ${BINDIR}/grep ${BINDIR}/egrep ${BINDIR}/fgrep
+MLINKS=        grep.1 egrep.1 grep.1 fgrep.1
+
+all: ${PROGS} ${MAN1}
 
 
-all: ${ALL}
+egrep oegrep old.ucb.grep old.bin.grep old.fgrep: ${.PREFIX}.c ${LIBC}
+       ${CC} -o ${.TARGET} ${CFLAGS} ${.CURDIR}/${.PREFIX}.c
 
 
-egrep oegrep old.ucb.grep old.bin.grep old.fgrep old.egrep: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
+old.egrep: old.egrep.c ${LIBC}
+       ${CC} -o ${.TARGET} ${CFLAGS} ${.PREFIX}.c
 
 clean:
 
 clean:
-       rm -f ${OBJS} core ${ALL} old.egrep.c
+       rm -f a.out Errs errs mklog core ${PROGS} old.egrep.c
 
 cleandir: clean
 
 cleandir: clean
-       rm -f ${MANtags .depend
+       rm -f ${MAN1} ${.CURDIR}/tags .depend
 
 depend: ${SRCS}
 
 depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
+       mkdep ${CFLAGS:M-[ID]*} ${.ALLSRC}
+
+install: maninstall
+
+maninstall: beforeinstall
 
 
-install: ${MAN}
-       install -s -o bin -g bin -m 755 egrep ${DESTDIR}/usr/bin/egrep
-       rm -f ${DESTDIR}/usr/bin/fgrep ${DESTDIR}/usr/bin/grep
-       ln ${DESTDIR}/usr/bin/egrep ${DESTDIR}/usr/bin/grep
-       ln ${DESTDIR}/usr/bin/egrep ${DESTDIR}/usr/bin/fgrep
-       install -s -o bin -g bin -m 755 old.ucb.grep old.bin.grep old.fgrep \
-               old.egrep ${DESTDIR}/usr/libexec
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       rm -f ${DESTDIR}/usr/man/cat1/egrep.0
-       rm -f ${DESTDIR}/usr/man/cat1/fgrep.0
-       ln ${DESTDIR}/usr/man/cat1/grep.0 ${DESTDIR}/usr/man/cat1/egrep.0
-       ln ${DESTDIR}/usr/man/cat1/grep.0 ${DESTDIR}/usr/man/cat1/fgrep.0
+beforeinstall:
+       install ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} egrep \
+           ${DESTDIR}${BINDIR}/egrep
+       install ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           old.ucb.grep old.bin.grep old.fgrep old.egrep \
+           ${DESTDIR}/usr/libexec
 
 lint: ${SRCS}
 
 lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+       ${LINT} ${LINTFLAGS} ${CFLAGS} ${.ALLSRC}
 
 tags: ${SRCS}
 
 tags: ${SRCS}
-       ctags ${SRCS}
+       ${CTAGS} ${.ALLSRC} -f ${.CURDIR}/tags
 
 
-FRC:
+.include <bsd.prog.mk>
index a3a6490..b442840 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=  head.c
-OBJS=
-MAN=   head.0
+PROG=  head
 
 
-all: head
-
-head: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core head
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 head ${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 7b6bb4c..b4f1507 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.10 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  indent.c io.c lexi.c parse.c pr_comment.c args.c
-OBJS=  indent.o io.o lexi.o parse.o pr_comment.o args.o
-MAN=   indent.0
-
-all: indent
-
-indent: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-clean:
-       rm -f ${OBJS} core indent
+#      @(#)Makefile    5.11 (Berkeley) %G%
 
 
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 indent ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 indent.0 ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+PROG=  indent
+SRCS=  indent.c io.c lexi.c parse.c pr_comment.c args.c
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 93a5d1c..7359705 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=  join.c
-OBJS=
-MAN=   join.0
+PROG=  join
 
 
-all: join
-
-join: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core join
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 join ${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 28dfff8..27e21a5 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=  look.c
-OBJS=
-MAN=   look.0
+PROG=  look
 
 
-all: look
-
-look: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core look
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 look ${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 1d76a80..3ccd834 100644 (file)
@@ -1,25 +1,17 @@
-#
-# 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%
-#
-MAN=   lorder.0
+#      @(#)Makefile    5.2 (Berkeley) %G%
 
 
-all lorder clean cleandir depend lint tags:
+MAN1=  lorder.0
 
 
-install: ${MAN}
-       install -c -o bin -g bin -m 755 lorder.sh ${DESTDIR}/usr/bin/lorder
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+all lorder: ${MAN1}
+
+clean depend lint tags:
+
+cleandir:
+       rm -f ${MAN1}
+
+install: maninstall
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${.CURDIR}/lorder.sh ${DESTDIR}/${BINDIR}/lorder
+
+.include <bsd.own.mk>
+.include <bsd.man.mk>
index f8a199b..d419048 100644 (file)
@@ -1,56 +1,11 @@
 Virgin BTL M4 as sent out in 4.1
 Virgin BTL M4 as sent out in 4.1
-#
-# Copyright (c) 1989 The Regents of the University of California.
-# All rights reserved.
-#
-# This code is derived from software contributed to Berkeley by
-# Ozan Yigit.
-#
-# 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) 8/28/89
-#
-
+#      @(#)Makefile    5.7 (Berkeley) %G%
 #
 #      -DEXTENDED 
 #
 #      -DEXTENDED 
-#              if you like to get paste & spaste macros.
-#
-CFLAGS=        -O -DEXTENDED
-LIBC=  /lib/libc.a
-SRCS =  main.c eval.c serv.c look.c misc.c expr.c
-OBJS =  main.o eval.o serv.o look.o misc.o expr.o
-MAN=   m4.0
+#              if you want the paste & spaste macros.
 
 
-all: m4
-
-m4: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-clean:
-       rm -f ${OBJS} core m4
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 m4 ${DESTDIR}/usr/bin/m4
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+PROG=  m4
+CFLAGS+=-DEXTENDED
+SRCS =  main.c eval.c serv.c look.c misc.c expr.c
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.bin/make/Makefile b/usr/src/usr.bin/make/Makefile
new file mode 100644 (file)
index 0000000..ac63020
--- /dev/null
@@ -0,0 +1,14 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  make
+CFLAGS+=-I${.CURDIR}
+SRCS=  arch.c buf.c compat.c cond.c dir.c hash.c job.c list.c main.c \
+       make.c parse.c str.c suff.c targ.c var.c
+SRCS+= lstAppend.c lstAtEnd.c lstAtFront.c lstClose.c lstConcat.c \
+       lstDatum.c lstDeQueue.c lstDestroy.c lstDupl.c lstEnQueue.c \
+       lstFind.c lstFindFrom.c lstFirst.c lstForEach.c lstForEachFrom.c \
+       lstInit.c lstInsert.c lstIsAtEnd.c lstIsEmpty.c lstLast.c \
+       lstMember.c lstNext.c lstOpen.c lstRemove.c lstReplace.c lstSucc.c
+.PATH: ${.CURDIR}/lst.lib
+
+.include <bsd.prog.mk>
index 2e0d3e0..cb1513b 100644 (file)
@@ -1,48 +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=  config.c man.c
-OBJS=  config.o man.o
-MAN=   man.0 man.config.0
-
-all: man
-
-man: ${LIBC} ${OBJS}
-       ${CC} -o $@ ${OBJS}
-
-clean:
-       rm -f core man ${OBJS}
+#      @(#)Makefile    5.9 (Berkeley) %G%
 
 
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend:
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 man ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 man.0 ${DESTDIR}/usr/man/cat1
-       install -c -o bin -g bin -m 444 man.config.0 ${DESTDIR}/usr/man/cat5
-
-lint:
-       lint ${CFLAGS} ${SRCS}
+PROG=  man
+SRCS=  config.c man.c
+MAN1=  man.0
+MAN5=  man.conf.0
 
 
-tags:
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 89b97f8..0e638a4 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=  mesg.c
-OBJS=
-MAN=   mesg.0
+PROG=  mesg
 
 
-all: mesg
-
-mesg: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core mesg
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 mesg ${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 f9758b1..3472f15 100644 (file)
@@ -1,28 +1,18 @@
-#
-# 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%
-#
+#      @(#)Makefile    5.2 (Berkeley) %G%
+
 MAN=   mkdep.0
 
 MAN=   mkdep.0
 
-all mkdep clean depend lint tags:
+all mkdep: ${MAN}
+
+clean depend lint tags:
 
 cleandir:
        rm -f ${MAN}
 
 
 cleandir:
        rm -f ${MAN}
 
-install: ${MAN}
-       install -c -o bin -g bin -m 755 mkdep.sh ${DESTDIR}/usr/bin/mkdep
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+install:
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${.CURDIR}/mkdep.sh ${DESTDIR}/usr/bin/mkdep
+       install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} ${MAN} \
+           ${DESTDIR}${MANDIR}1
+
+.include <bsd.prog.mk>
index 62e9869..e63c98a 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=  mkstr.c
-OBJS=
-MAN=   mkstr.0
+PROG=  mkstr
 
 
-all: mkstr
-
-mkstr: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core mkstr
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 mkstr ${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 3c5bebb..3f2a61f 100644 (file)
@@ -1,53 +1,15 @@
-#
-# Copyright (c) 1988 Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation, advertising
-# materials, and other materials related to such redistribution and
-# use acknowledge that the software was developed by the University
-# of California, Berkeley.  The name of the University may not be
-# used to endorse or promote products derived from this software
-# without specific prior written permission.  THIS SOFTWARE IS PROVIDED
-# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
-# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
-# FITNESS FOR A PARTICULAR PURPOSE.
-#
-# @(#)Makefile 5.4 (Berkeley) %G%
-#
+#      @(#)Makefile    5.5 (Berkeley) %G%
 
 
-CFLAGS=        -g -I.
-LIBC=  /lib/libc.a
+PROG=  more
+CFLAGS+=-I${.CURDIR}
 SRCS=  ch.c command.c decode.c help.c input.c line.c linenum.c main.c \
 SRCS=  ch.c command.c decode.c help.c input.c line.c linenum.c main.c \
-       option.c os.c output.c position.c prim.c screen.c \
-       signal.c tags.c ttyin.c
-OBJS=  ch.o command.o decode.o help.o input.o line.o linenum.o main.o \
-       option.o os.o output.o position.o prim.o screen.o \
-       signal.o tags.o ttyin.o
-MAN=   more.0
+       option.c os.c output.c position.c prim.c screen.c signal.c tags.c \
+       ttyin.c
+DPADD= ${LIBTERM}
+LDADD= -ltermcap
 
 
-all: more
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/more.help \
+           ${DESTDIR}/usr/share/misc
 
 
-more: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS} -ltermcap
-
-clean:
-       rm -f ${OBJS} core more
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 more ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 more.0 ${DESTDIR}/usr/man/cat1
-       install -c -o bin -g bin -m 444 more.help ${DESTDIR}/usr/share/misc
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index c2a6c59..738f9b3 100644 (file)
@@ -1,47 +1,7 @@
-#
-# Copyright (c) 1987 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.7 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  msgs.c
-OBJS=
-MAN=   msgs.0
+#      @(#)Makefile    5.8 (Berkeley) %G%
 
 
-all: msgs
+PROG=  msgs
+DPADD= ${LIBTERM} ${LIBCOMPAT}
+LDADD= -ltermlib -lcompat
 
 
-msgs: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} msgs.c -ltermlib -lcompat
-
-clean:
-       rm -f ${OBJS} core msgs
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 msgs ${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 aa9a5d9..6b2d81d 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=  mt.c
-OBJS=
-MAN=   mt.0
+PROG=  mt
 
 
-all: mt
-
-mt: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core mt
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 mt ${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 d25bf50..2a09feb 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.4 (Berkeley) %G%
-#
+#      @(#)Makefile    5.5 (Berkeley) %G%
 
 
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  nice.c
-OBJS=
-MAN=   nice.0
+PROG=  nice
 
 
-all: nice
-
-nice: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core nice
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 nice ${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 b45a1d1..2a97348 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=  nm.c
-OBJS=
-MAN=   nm.0
+PROG=  nm
 
 
-all: nm
-
-nm: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core nm
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 nm ${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 863a207..2a31777 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=  pagesize.c
-OBJS=
-MAN=   pagesize.0
+PROG=  pagesize
 
 
-all: pagesize
-
-pagesize: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core pagesize
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 pagesize ${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 9c5c4be..7a6cc97 100644 (file)
@@ -1,47 +1,8 @@
-#
-# 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.5 (Berkeley) %G%
-#
-CFLAGS=        -I. -O
-LIBC=  /lib/libc.a
-SRCS=  passwd.c
-OBJS=  passwd.o
-MAN=   passwd.0
+#      @(#)Makefile    5.6 (Berkeley) %G%
 
 
-all: passwd
+PROG=  passwd
+CFLAGS+=-I${.CURDIR}
+BINOWN=        root
+BINMODE=4555
 
 
-passwd: ${LIBC} ${OBJS}
-       ${CC} ${CFLAGS} -o $@ ${OBJS}
-
-clean:
-       rm -f ${OBJS} core passwd
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o root -g bin -m 4755 passwd ${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 f838807..e389983 100644 (file)
-#
-# 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.13 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  atoplot.c chrtab.c crtdriver.c crtplot.c debug.c driver.c plottoa.c
-OBJS=  atoplot.o chrtab.o crtdriver.o crtplot.o debug.o driver.o plottoa.o
-ALL=   tek t4013 t300 t300s t450 aedplot bgplot crtplot dumbplot gigiplot \
+#      @(#)Makefile    4.14 (Berkeley) %G%
+
+PROGS= tek t4013 t300 t300s t450 aedplot bgplot crtplot dumbplot gigiplot \
        hpplot hp7221plot implot atoplot plottoa grnplot
        hpplot hp7221plot implot atoplot plottoa grnplot
-MAN=   plot.0
+SRCS=  atoplot.c chrtab.c crtdriver.c crtplot.c debug.c driver.c plottoa.c
+BINDIR=        /usr/bin
+MAN1=  plot.0
 
 
-all: ${ALL} debug
+LIB300=                /usr/lib/lib300.a
+LIB300s=       /usr/lib/lib300s.a
+LIB4013=       /usr/lib/lib4013.a
+LIB4014=       /usr/lib/lib4014.a
+LIB450=                /usr/lib/lib450.a
+LIBCOMPAT=     /usr/lib/libcompat.a
+LIBCURSES=     /usr/lib/libcurses.a
+LIBM=          /usr/lib/libm.a
+LIBPLOT2648=   /usr/lib/libplot2648.a
+LIBPLOT7221=   /usr/lib/libplot7221.a
+LIBPLOT=       /usr/lib/libplot.a
+LIBPLOTAED=    /usr/lib/libplotaed.a
+LIBPLOTBG=     /usr/lib/libplotbg.a
+LIBPLOTDUMB=   /usr/lib/libplotdumb.a
+LIBPLOTGIGI=   /usr/lib/libplotgigi.a
+LIBPLOTGRN=    /usr/lib/libplotgrn.a
+LIBPLOTIMAGEN= /usr/lib/libplotimagen.a
+LIBTERMCAP=    /usr/lib/libtermcap.a
 
 
-tek: driver.o
-       ${CC} ${CFLAGS} -o $@ driver.o -l4014 -lm -lcompat
+all: ${PROGS} ${MAN1}
 
 
-t4013: driver.o
-       ${CC} ${CFLAGS} -o $@ driver.o -l4013 -lm -lcompat
+aedplot: driver.o ${LIBPLOTAED} ${LIBCOMPAT}
+       ${CC} ${CFLAGS} -o ${.TARGET} driver.o -lplotaed -lcompat
 
 
-t300: driver.o
-       ${CC} ${CFLAGS} -o $@ driver.o -l300 -lm -lcompat
+atoplot: atoplot.c ${LIBPLOT} ${LIBM} ${LIBCOMPAT}
+       ${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/atoplot.c -lplot -lm -lcompat
 
 
-t300s: driver.o
-       ${CC} ${CFLAGS} -o $@ driver.o -l300s -lm -lcompat
+bgplot: driver.o ${LIBPLOTBG} ${LIBM} ${LIBCOMPAT}
+       ${CC} ${CFLAGS} -o ${.TARGET} driver.o -lplotbg -lm -lcompat
 
 
-t450: driver.o
-       ${CC} ${CFLAGS} -o $@ driver.o -l450 -lm -lcompat
+crtplot: crtdriver.o crtplot.o ${LIBCURSES} ${LIBTERMCAP} ${LIBM} ${LIBCOMPAT}
+       ${CC} ${CFLAGS} -o ${.TARGET} crtdriver.o crtplot.o -lcurses \
+           -ltermcap -lm -lcompat
 
 
-aedplot: driver.o
-       ${CC} ${CFLAGS} -o $@ driver.o -lplotaed -lcompat
+debug:
+       ${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/debug.c
 
 
-bgplot: driver.o
-       ${CC} ${CFLAGS} -o $@ driver.o -lplotbg -lm -lcompat
+dumbplot: driver.o ${LIBPLOTDUMB} ${LIBTERMCAP} ${LIBM} ${LIBCOMPAT}
+       ${CC} ${CFLAGS} -o ${.TARGET} driver.o -lplotdumb -ltermcap \
+           -lm -lcompat
 
 
-crtplot: crtdriver.o crtplot.o
-       ${CC} ${CFLAGS} -o $@ crtdriver.o crtplot.o -lcurses -ltermcap -lm -lcompat
+gigiplot: driver.o ${LIBPLOTGIGI} ${LIBM} ${LIBCOMPAT}
+       ${CC} ${CFLAGS} -o ${.TARGET} driver.o -lplotgigi -lm -lcompat
 
 
-dumbplot: driver.o
-       ${CC} ${CFLAGS} -o $@ driver.o -lplotdumb -ltermcap -lm -lcompat
+grnplot: driver.o ${LIBPLOTGRN} ${LIBM} ${LIBCOMPAT}
+       ${CC} ${CFLAGS} -o ${.TARGET} driver.o -lplotgrn -lm -lcompat
 
 
-gigiplot: driver.o
-       ${CC} ${CFLAGS} -o $@ driver.o -lplotgigi -lm -lcompat
+hp7221plot: driver.o ${LIBPLOT7221} ${LIBM} ${LIBCOMPAT}
+       ${CC} ${CFLAGS} -o ${.TARGET} driver.o -lplot7221 -lm -lcompat
 
 
-hpplot: driver.o
-       ${CC} ${CFLAGS} -o $@ driver.o -lplot2648 -lm -lcompat
+hpplot: driver.o ${LIBPLOT2648} ${LIBM} ${LIBCOMPAT}
+       ${CC} ${CFLAGS} -o ${.TARGET} driver.o -lplot2648 -lm -lcompat
 
 
-hp7221plot: driver.o
-       ${CC} ${CFLAGS} -o $@ driver.o -lplot7221 -lm -lcompat
+implot: driver.o ${LIBPLOTIMAGEN} ${LIBM} ${LIBCOMPAT}
+       ${CC} ${CFLAGS} -o ${.TARGET} driver.o -lplotimagen -lm -lcompat
 
 
-implot: driver.o
-       ${CC} ${CFLAGS} -o $@ driver.o -lplotimagen -lm -lcompat
+plottoa: plottoa.c
+       ${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/plottoa.c
 
 
-atoplot: atoplot.o
-       ${CC} ${CFLAGS} -o $@ atoplot.o -lplot -lm -lcompat
+t300: driver.o  ${LIB300} ${LIBM} ${LIBCOMPAT}
+       ${CC} ${CFLAGS} -o ${.TARGET} driver.o -l300 -lm -lcompat
 
 
-plottoa: plottoa.o
-       ${CC} ${CFLAGS} -o $@ plottoa.o
+t300s: driver.o ${LIB300S} ${LIBM} ${LIBCOMPAT}
+       ${CC} ${CFLAGS} -o ${.TARGET} driver.o -l300s -lm -lcompat
 
 
-grnplot: driver.o
-       ${CC} ${CFLAGS} -o $@ driver.o -lplotgrn -lm -lcompat
+t4013: driver.o ${LIB4013} ${LIBM} ${LIBCOMPAT}
+       ${CC} ${CFLAGS} -o ${.TARGET} driver.o -l4013 -lm -lcompat
 
 
-debug: debug.o
-       ${CC} ${CFLAGS} -o $@ debug.o
+t450: driver.o  ${LIB450} ${LIBM} ${LIBCOMPAT}
+       ${CC} ${CFLAGS} -o ${.TARGET} driver.o -l450 -lm -lcompat
+
+tek: driver.o ${LIB4014} ${LIBM} ${LIBCOMPAT}
+       ${CC} ${CFLAGS} -o ${.TARGET} driver.o -l4014 -lm -lcompat
 
 clean:
 
 clean:
-       rm -f ${OBJS} ${ALL} debug core
+       rm -f a.out Errs errs mklog core ${PROGS} driver.o crtdriver.o \
+           crtplot.o debug
 
 cleandir: clean
 
 cleandir: clean
-       rm -f ${MANtags .depend
+       rm -f ${MAN1} ${.CURDIR}/tags .depend
 
 depend: ${SRCS}
 
 depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
+       mkdep ${CFLAGS:M-[ID]*} ${.ALLSRC}
 
 
-install: ${MAN}
-       install -s -o bin -g bin -m 755 ${ALL} ${DESTDIR}/usr/libexec/plot
-       install -c -o bin -g bin -m 755 plot.sh ${DESTDIR}/usr/bin/plot
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
+install: maninstall
+       install ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${PROGS} \
+           ${DESTDIR}/usr/libexec/plot
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${.CURDIR}/plot.sh \
+           ${DESTDIR}${BINDIR}/plot
 
 lint: ${SRCS}
 
 lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+       ${LINT} ${LINTFLAGS} ${CFLAGS} ${.ALLSRC}
 
 tags: ${SRCS}
 
 tags: ${SRCS}
-       ctags ${SRCS}
+       ${CTAGS} -f ${.CURDIR}/tags ${.ALLSRC}
+
+.include <bsd.prog.mk>
index 87e8142..8561735 100644 (file)
@@ -1,50 +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=  env.c printenv.c
-OBJS=
-MAN=   printenv.0
+PROG=  printenv
+MLINKS=        printenv.1 env.1
 
 
-all: env printenv
-
-env printenv: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core env printenv
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 env printenv ${DESTDIR}/usr/bin
-       rm -f ${DESTDIR}/usr/man/cat1/env.0
-       install -c -o bin -g bin -m 444 printenv.0 ${DESTDIR}/usr/man/cat1
-       ln ${DESTDIR}/usr/man/cat1/printenv.0 ${DESTDIR}/usr/man/cat1/env.0
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 9ba5862..8370ea3 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=  printf.c
-OBJS=
-MAN=   printf.0
+PROG=  printf
 
 
-all: printf
-
-printf: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core printf
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 printf ${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 b704d37..7b8253e 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=  ranlib.c
-OBJS=
-MAN=   ranlib.0
+PROG=  ranlib
 
 
-all: ranlib
-
-ranlib: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core ranlib
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 ranlib ${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 ef70de3..c9345e8 100644 (file)
@@ -1,50 +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 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
-LIBC=  /lib/libc.a
+PROG=  rsh
+CFLAGS+=-DKERBEROS
 SRCS=  rsh.c krcmd.c kcmd.c des_rw.c
 SRCS=  rsh.c krcmd.c kcmd.c des_rw.c
-OBJS=  rsh.o krcmd.o kcmd.o des_rw.o
-MAN=   rsh.0
-VPATH= ../rlogin/kcmd:../rlogin/des
-
-all: rsh
-
-rsh: ${LIBC} ${OBJS}
-       ${CC} -o $@ ${CFLAGS} ${OBJS} -lkrb -ldes
-
-clean:
-       rm -f core rsh ${OBJS}
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o root -g bin -m 4755 rsh ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 rsh.0 ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+DPADD= ${LIBKRB} ${LIBDES}
+LDADD= -lkrb -ldes
+BINOWN=        root
+BINMODE=4555
+.PATH: ${.CURDIR}/../rlogin
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 5e1a33c..90500fd 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=  sccs.c
-OBJS=
-MAN=   sccs.0
+PROG=  sccs
 
 
-all: sccs
-
-sccs: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core sccs
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 sccs ${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 4eac7d6..c0dfcf7 100644 (file)
@@ -1,47 +1,6 @@
-#
-# 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.5 (Berkeley) %G%
-#
-CFLAGS=        -O -w
-LIBC=  /lib/libc.a
-SRCS=  sed0.c sed1.c
-OBJS=  sed0.o sed1.o
-MAN=   sed.0
-
-all: sed
-
-sed: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-clean:
-       rm -f ${OBJS} core sed
+#      @(#)Makefile    4.6 (Berkeley) %G%
 
 
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 sed ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+PROG=  sed
+SRCS=  sed0.c sed1.c
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index cf410e6..af13f92 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=  size.c
-OBJS=
-MAN=   size.0
+PROG=  size
 
 
-all: size
-
-size: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core size
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 size ${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 721478f..4e15694 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=  sort.c
-OBJS=
-MAN=   sort.0
+PROG=  sort
 
 
-all: sort
-
-sort: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core sort
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 sort ${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 c6bc620..6852e16 100644 (file)
@@ -1,78 +1,63 @@
-#
-# Copyright (c) 1987 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
-#
-#      @(#)Makefile    4.11    (Berkeley)      %G%
-#
-# The word lists may be extended by adding special words.
-# The set of files containing words to be added are defined
-# by SPECIAL below.  By default we add commands and library
-# function names defined in /usr/man/man[1238n].  The word
-# lists also may be extended by adding local words.  The set
-# of files containing words to be added are defined by LOCAL
-# below.  Typically these lists reside in /usr/local/dict.
+#      @(#)Makefile    4.12 (Berkeley) %G%
 
 
-SPECIAL=       special.4bsd
-
-CFLAGS=        -O
-LIBC=  /lib/libc.a
+LIBC=  /usr/lib/libc.a
 SRCS=  spell.c spellin.c spellout.c
 SRCS=  spell.c spellin.c spellout.c
-OBJS=  spell.o spellin.o spellout.o
-MAN=   spell.0
+MAN1=  spell.0
+MLINKS=        spell.1 spellin.1 spell.1 spellout.1
+SPECIAL=${.CURDIR}/special.4bsd
 
 
-all: spell hlist hlista hlistb hstop spellin spellout
+all: spell hlist hlista hlistb hstop spellin spellout ${MAN1}
 
 spell spellin spellout: ${LIBC}
 
 spell spellin spellout: ${LIBC}
-       ${CC} ${CFLAGS} $@.c -o $@
+       ${CC} ${CFLAGS} ${.CURDIR}/${.PREFIX}.c -o ${.TARGET}
 
 hlist: spellin
 
 hlist: spellin
-       spellin < words >hlist
+       spellin < ${.CURDIR}/words > hlist
 
 
-hlista: american ${SPECIAL} ${LOCAL} hlist spellin
-       (cat american ${SPECIAL} ${LOCAL}) | spellin hlist > hlista
+hlista: american ${SPECIAL} hlist spellin
+       (cat ${.CURDIR}/american ${SPECIAL}) | spellin hlist > hlista
 
 
-hlistb: british ${SPECIAL} ${LOCAL} hlist spellin
-       (cat british ${SPECIAL} ${LOCAL}) | spellin hlist > hlistb
+hlistb: british ${SPECIAL} hlist spellin
+       (cat ${.CURDIR}/british ${SPECIAL}) | spellin hlist > hlistb
 
 hstop: stop spellin
 
 hstop: stop spellin
-       spellin < stop >hstop
+       spellin < ${.CURDIR}/stop > hstop
 
 clean:
 
 clean:
-       rm -f ${OBJS} core spell spellin hlista hlistb hlist hstop spellout
+       rm -f a.out Errs errs mklog core spell spellin hlista \
+           hlistb hlist hstop spellout
 
 cleandir: clean
 
 cleandir: clean
-       rm -f ${MANtags .depend
+       rm -f ${MAN1} ${.CURDIR}/tags .depend
 
 depend: ${SRCS}
 
 depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
+       mkdep -p ${CFLAGS:M-[ID]*} ${.ALLSRC}
 
 DIR=   ${DESTDIR}/usr/share/dict
 
 DIR=   ${DESTDIR}/usr/share/dict
-FILES= hlista hlistb hstop hlist american british connectives \
-       propernames stop README words web2 web2a
-install: ${MAN}
-       -[ -d ${DIR}/special ] || mkdir ${DIR}/special
-       install -s -o bin -g bin -m 755 spell ${DESTDIR}/usr/libexec/spell
-       install -s -o bin -g bin -m 755 spellin ${DESTDIR}/usr/libexec/spellin
-       install -s -o bin -g bin -m 755 spellout ${DESTDIR}/usr/libexec/spellout
-       install -c -o bin -g bin -m 755 spell.sh ${DESTDIR}/usr/bin/spell
-       install -c -o bin -g bin -m 444 ${FILES} ${DIR}
-       install -c -o bin -g bin -m 444 special.4bsd ${DIR}/special/4bsd
-       install -c -o bin -g bin -m 444 special.math ${DIR}/special/math
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       cp -p -r papers ${DIR}; chmod 755 ${DIR}/papers/runinv
-       rm -f ${DESTDIR}/usr/man/cat1/spellin.0
-       rm -f ${DESTDIR}/usr/man/cat1/spellout.0
-       ln ${DESTDIR}/usr/man/cat1/spell.0 ${DESTDIR}/usr/man/cat1/spellin.0
-       ln ${DESTDIR}/usr/man/cat1/spell.0 ${DESTDIR}/usr/man/cat1/spellout.0
+FILES1=        hlist hlista hlistb hstop
+FILES2=american british connectives propernames stop README words web2 web2a
+
+install: maninstall
+       install ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           spell spellin spellout ${DESTDIR}/usr/libexec
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${.CURDIR}/spell.sh ${DESTDIR}/usr/bin/spell
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES1} ${DIR}
+       cd ${.CURDIR}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
+           ${FILES2} ${DIR}
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/special.4bsd \
+           ${DIR}/special/4bsd
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/special.math \
+           ${DIR}/special/math
+       cp -p -r ${.CURDIR}/papers ${DIR}
 
 lint: ${SRCS}
 
 lint: ${SRCS}
-       lint ${CFLAGS} spell.c
-       lint ${CFLAGS} spellin.c
-       lint ${CFLAGS} spellout.c
+       cd ${.CURDIR}; ${LINT} ${LINTFLAGS} ${CFLAGS} spell.c
+       cd ${.CURDIR}; ${LINT} ${LINTFLAGS} ${CFLAGS} spellin.c
+       cd ${.CURDIR}; ${LINT} ${LINTFLAGS} ${CFLAGS} spellout.c
 
 tags: ${SRCS}
 
 tags: ${SRCS}
-       ctags spell.c
-       ctags -a spellin.c
-       ctags -a spellout.c
-       sort -o tags tags
+       cd ${.CURDIR}; ctags ${SRCS}
+
+.include <bsd.own.mk>
+.include <bsd.man.mk>
index c2d741b..7f82492 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=  spline.c
-OBJS=
-MAN=   spline.0
+PROG=  spline
 
 
-all: spline
-
-spline: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core spline
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 spline ${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 8f2ff9d..f932c37 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=  split.c
-OBJS=
-MAN=   split.0
+PROG=  split
 
 
-all: split
-
-split: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core split
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 split ${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 da7df8e..da0896f 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=  strings.c
-OBJS=
-MAN=   strings.0
+PROG=  strings
 
 
-all: strings
-
-strings: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core strings
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 strings ${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 3559e92..480641f 100644 (file)
@@ -1,50 +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
-LIBC=  /lib/libc.a
-SRCS=  strip.c
-OBJS=
-MAN=   strip.0
+PROG=  strip
 
 
-all: strip
-
-strip: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core strip
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -c -o bin -g bin -m 755 strip ${DESTDIR}/usr/bin
-       ./strip ${DESTDIR}/usr/bin/strip
+install: maninstall
+       install -c -o ${BINOWN} -g ${BINOWN} -m ${BINMODE} strip \
+           ${DESTDIR}${BINDIR}
+       ./strip ${DESTDIR}${BINDIR}/strip
        rm -f ./strip
        rm -f ./strip
-       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 2da72c6..d7d4197 100644 (file)
 # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 #
 # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 #
-#      @(#)Makefile    4.7 {Berkeley} %G%
+#      @(#)Makefile    4.8 {Berkeley} %G%
 #
 CFLAGS=        -O
 YFLAGS=        -d
 #
 CFLAGS=        -O
 YFLAGS=        -d
-LIBC=  /lib/libc.a
+LIBC=  /usr/lib/libc.a
 BSRCS= beauty.c tree.c lextab.c bdef.c
 BOBJS= beauty.o tree.o lextab.o bdef.o
 SSRCS= 0.alloc.c 0.args.c 0.def.c 0.extr.c 0.graph.c 0.list.c 0.parts.c \
 BSRCS= beauty.c tree.c lextab.c bdef.c
 BOBJS= beauty.o tree.o lextab.o bdef.o
 SSRCS= 0.alloc.c 0.args.c 0.def.c 0.extr.c 0.graph.c 0.list.c 0.parts.c \
index a7b1367..5ce0832 100644 (file)
@@ -1,48 +1,10 @@
-#
-# Copyright (c) 1988 Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation, advertising
-# materials, and other materials related to such redistribution and
-# use acknowledge that the software was developed by the University
-# of California, Berkeley.  The name of the University may not be
-# used to endorse or promote products derived from this software
-# without specific prior written permission.  THIS SOFTWARE IS PROVIDED
-# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
-# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
-# FITNESS FOR A PARTICULAR PURPOSE.
-#
-# @(#)Makefile 5.4 (Berkeley) %G%
-#
+#      @(#)Makefile    5.5 (Berkeley) %G%
 
 
-CFLAGS=        -O -DKERBEROS
-LIBC=  /lib/libc.a
-SRCS=  su.c
-OBJS=
-MAN=   su.0
+PROG=  su
+CFLAGS+=-DKERBEROS
+DPADD= ${LIBKRB} ${LIBDES}
+LDADD= -lkrb -ldes
+BINOWN=        root
+BINMODE=4555
 
 
-all: su
-
-su: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c -lkrb -ldes
-
-clean:
-       rm -f ${OBJS} core su
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o root -g bin -m 4755 su ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 su.0 ${DESTDIR}/usr/man/cat1/su.0
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index f89da26..28c753d 100644 (file)
@@ -1,50 +1,11 @@
-#
-# Copyright (c) 1987 The Regents of the University of California.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms are permitted
-# provided that the above copyright notice and this paragraph are
-# duplicated in all such forms and that any documentation,
-# advertising materials, and other materials related to such
-# distribution and use acknowledge that the software was developed
-# by the University of California, Berkeley.  The name of the
-# University may not be used to endorse or promote products derived
-# from this software without specific prior written permission.
-# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
-# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-#
-#      @(#)Makefile    5.6 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-LIBS=  -lcurses -ltermlib -lm
+#      @(#)Makefile    5.7 (Berkeley) %G%
+
+PROG=  systat
 SRCS=  cmds.c cmdtab.c disks.c fetch.c iostat.c keyboard.c vmstat.c main.c \
        mbufs.c netcmds.c netstat.c pigs.c swap.c
 SRCS=  cmds.c cmdtab.c disks.c fetch.c iostat.c keyboard.c vmstat.c main.c \
        mbufs.c netcmds.c netstat.c pigs.c swap.c
-OBJS=  cmds.o cmdtab.o disks.o fetch.o iostat.o keyboard.o vmstat.o main.o \
-       mbufs.o netcmds.o netstat.o pigs.o swap.o
-MAN=   systat.0
-
-all: systat
-
-systat: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS}
-
-clean:
-       rm -f ${OBJS} core systat
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g kmem -m 2755 systat ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
+LDADD= -lcurses -ltermcap -lm -lutil
+DPADD= ${LIBCURSES} ${LIBTERMCAP} ${LIBM} ${LIBUTIL}
+BINGRP=        kmem
+BINMODE=2555
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 64128d3..46b6870 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=  tail.c
-OBJS=
-MAN=   tail.0
+PROG=  tail
 
 
-all: tail
-
-tail: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core tail
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 tail ${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 fce1391..26e76d4 100644 (file)
@@ -1,49 +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
+#      @(#)Makefile    5.12 (Berkeley) %G%
+
+PROG=  talk
+DPADD= ${LIBCURSES} ${LIBTERMCAP} ${LIBCOMPAT}
+LDADD= -lcurses -ltermlib -lcompat
 SRCS=  talk.c get_names.c display.c io.c ctl.c init_disp.c \
        msgs.c get_addrs.c ctl_transact.c invite.c look_up.c
 SRCS=  talk.c get_names.c display.c io.c ctl.c init_disp.c \
        msgs.c get_addrs.c ctl_transact.c invite.c look_up.c
-OBJS=  talk.o get_names.o display.o io.o ctl.o init_disp.o \
-       msgs.o get_addrs.o ctl_transact.o invite.o look_up.o
-MAN=   talk.0
-
-all: talk
-
-talk: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS} -lcurses -ltermlib -lcompat
-
-clean:
-       rm -f ${OBJS} core talk
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 talk ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 talk.0 ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
 
 
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 25746b6..107d8b6 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=  tee.c
-OBJS=
-MAN=   tee.0
+PROG=  tee
 
 
-all: tee
-
-tee: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core tee
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 tee ${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 0bbf981..4d491d8 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=  time.c
-OBJS=
-MAN=   time.0
+PROG=  time
 
 
-all: time
-
-time: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core time
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 time ${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 971ac96..5142b26 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=  touch.c
-OBJS=
-MAN=   touch.0
+PROG=  touch
 
 
-all: touch
-
-touch: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core touch
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 touch ${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 5e89f77..0b6f1b0 100644 (file)
@@ -1,51 +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 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.4 (Berkeley) %G%
-#
+#      @(#)Makefile    5.5 (Berkeley) %G%
 
 
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  tput.c
-OBJS=
-MAN=   tput.0
+PROG=  tput
+DPADD= ${LIBTERMCAP}
+LDADD= -ltermcap
+MLINKS=        tput.1 clear.1
 
 
-all: tput
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${.CURDIR}/clear.sh ${DESTDIR}/usr/bin/clear
 
 
-tput: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c -ltermcap
-
-clean:
-       rm -f ${OBJS} core tput
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 tput ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 755 clear.sh ${DESTDIR}/usr/bin/clear
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       rm -f ${DESTDIR}/usr/man/cat1/clear.0
-       ln ${DESTDIR}/usr/man/cat1/tput.0 ${DESTDIR}/usr/man/cat1/clear.0
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index 31368ed..231dd33 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=  tr.c
-OBJS=
-MAN=   tr.0
+PROG=  tr
 
 
-all: tr
-
-tr: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core tr
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 tr ${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 1d3912a..fc17d42 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=  true.c
-OBJS=
-MAN=   true.0
+PROG=  true
 
 
-all: true
-
-true: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core true
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 true ${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 376b0e5..73daab4 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=  tsort.c
-OBJS=
-MAN=   tsort.0
+PROG=  tsort
 
 
-all: tsort
-
-tsort: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core tsort
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 tsort ${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 9a24423..224ea35 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=  tty.c
-OBJS=
-MAN=   tty.0
+PROG=  tty
 
 
-all: tty
-
-tty: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core tty
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 tty ${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 f5ed5f6..16781ed 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=  ul.c
-OBJS=
-MAN=   ul.0
+PROG=  ul
+DPADD= ${LIBTERMCAP}
+LDADD= -ltermcap
 
 
-all: ul
-
-ul: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c -ltermcap
-
-clean:
-       rm -f ${OBJS} core ul
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 ul ${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/unexpand/Makefile b/usr/src/usr.bin/unexpand/Makefile
new file mode 100644 (file)
index 0000000..c44db01
--- /dev/null
@@ -0,0 +1,6 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  unexpand
+NOMAN= noman
+
+.include <bsd.prog.mk>
index 59446f1..f27f5b6 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=  unifdef.c
-OBJS=
-MAN=   unifdef.0
+PROG=  unifdef
 
 
-all: unifdef
-
-unifdef: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core unifdef
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 unifdef ${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 f6801a6..e539346 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=  uniq.c
-OBJS=
-MAN=   uniq.0
+PROG=  uniq
 
 
-all: uniq
-
-uniq: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core uniq
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 uniq ${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 439dbd6..77ca52d 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=  units.c
-OBJS=
-MAN=   units.0
+PROG=  units
 
 
-all: units
+beforeinstall:
+       install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/units.lib \
+           ${DESTDIR}/usr/share/misc
 
 
-units: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core units
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 units ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 755 units.lib ${DESTDIR}/usr/share/misc
-       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 3f1d86a..8051009 100644 (file)
@@ -1,50 +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=  users.c
-OBJS=
-MAN=   users.0
+PROG=  users
 
 
-all: users
-
-users: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core users
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 users ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       rm -f ${DESTDIR}/usr/bin/u
-       ln ${DESTDIR}/usr/bin/users ${DESTDIR}/usr/bin/u
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.bin/uudecode/Makefile b/usr/src/usr.bin/uudecode/Makefile
new file mode 100644 (file)
index 0000000..4d3d776
--- /dev/null
@@ -0,0 +1,6 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  uudecode
+NOMAN= noman
+
+.include <bsd.prog.mk>
index 771dcd8..710056b 100644 (file)
 # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 #
 # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 #
-#      @(#)Makefile    5.6 (Berkeley) %G%
+#      @(#)Makefile    5.7 (Berkeley) %G%
 #
 CFLAGS=        -O
 #
 CFLAGS=        -O
-LIBC=  /lib/libc.a
+LIBC=  /usr/lib/libc.a
 RSRCS= retest.c regexp.c
 ROBJS= retest.o regexp.o
 VSRCS= regexp.c vfontedpr.c vgrindefs.c
 RSRCS= retest.c regexp.c
 ROBJS= retest.o regexp.o
 VSRCS= regexp.c vfontedpr.c vgrindefs.c
index b2b8781..9e2c02a 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=  vmstat.c
-OBJS=
-MAN=   vmstat.0
+PROG=  vmstat
+BINGRP=        kmem
+BINMODE=2555
 
 
-all: vmstat
-
-vmstat: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core vmstat
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g kmem -m 2755 vmstat ${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 21c883c..2de139e 100644 (file)
@@ -1,51 +1,13 @@
-#
-# 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%
-#
-
-CFLAGS=        -O
-VPATH= ../../bin/ps
-LIBC=  /lib/libc.a
-SRCS=  w.c attime.c
-OBJS=  w.o attime.o
-MAN=   w.0 uptime.0
-
-all: w
-
-w: ${LIBC} ${OBJS}
-       ${CC} -o $@ ${CFLAGS} ${OBJS} -lutil
-
-clean:
-       rm -f ${OBJS} core w
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g kmem -m 2755 w ${DESTDIR}/usr/bin
-       rm -f ${DESTDIR}/usr/bin/uptime
-       ln ${DESTDIR}/usr/bin/w ${DESTDIR}/usr/bin/uptime
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+#      @(#)Makefile    5.4 (Berkeley) %G%
+
+PROG=  w
+SRCS=  w.c attime.c proc_compare.c
+MAN1=  w.0 uptime.0
+DPADD= ${LIBUTIL}
+LDADD= -lutil
+BINGRP=        kmem
+BINMODE=2555
+LINKS= ${BINDIR}/w ${BINDIR}/uptime
+.PATH: ${.CURDIR}/../../bin/ps
+
+.include <bsd.prog.mk>
index d106539..3e088bc 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
+PROG=  wall
 SRCS=  ttymsg.c wall.c
 SRCS=  ttymsg.c wall.c
-OBJS=  ttymsg.o wall.o
-MAN=   wall.0
+BINGRP=        tty
+BINMODE=2555
 
 
-all: wall
-
-wall: ${LIBC} ${OBJS}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-clean:
-       rm -f ${OBJS} core wall
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g tty -m 2755 wall ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 wall.0 ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
+.include <bsd.prog.mk>
index b66725c..1bf3503 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=  wc.c
-OBJS=
-MAN=   wc.0
+PROG=  wc
 
 
-all: wc
-
-wc: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core wc
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 wc ${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 9a2a126..ec52555 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=  what.c
-OBJS=
-MAN=   what.0
+PROG=  what
 
 
-all: what
-
-what: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core what
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 what ${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 0e5b3fa..5364365 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=  who.c
-OBJS=
-MAN=   who.0
+PROG=  who
 
 
-all: who
-
-who: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core who
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 who ${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 33eea41..ca169ac 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=  write.c
-OBJS=
-MAN=   write.0
+PROG=  write
+BINMODE=2555
+BINGRP=        tty
 
 
-all: write
-
-write: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core write
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g tty -m 2755 write ${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/xargs/Makefile b/usr/src/usr.bin/xargs/Makefile
new file mode 100644 (file)
index 0000000..b252eb9
--- /dev/null
@@ -0,0 +1,5 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  xargs
+
+.include <bsd.prog.mk>
index c7fac2a..01ffa02 100644 (file)
@@ -1,48 +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 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=  install.c
-OBJS=
-MAN=   install.0
+PROG=  xinstall
+MAN1=  install.0
 
 
-all: xinstall
+install: maninstall
+       install ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+           ${PROG} ${DESTDIR}${BINDIR}/install
 
 
-xinstall: install.c ${LIBC}
-       ${CC} -o xinstall ${CFLAGS} install.c
+.include <bsd.prog.mk>
 
 
-clean:
-       rm -f ${OBJS} core xinstall
 
 
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 xinstall ${DESTDIR}/usr/bin/install
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-
-lint: ${SRCS}
-       lint ${CFLAGS} ${SRCS}
-
-tags: ${SRCS}
-       ctags ${SRCS}
diff --git a/usr/src/usr.bin/xsend/Makefile b/usr/src/usr.bin/xsend/Makefile
new file mode 100644 (file)
index 0000000..5059347
--- /dev/null
@@ -0,0 +1,5 @@
+#       @(#)Makefile   5.1 (Berkeley) %G%
+
+SUBDIR= enroll xget xsend
+
+.include <bsd.subdir.mk>
diff --git a/usr/src/usr.bin/xsend/enroll/Makefile b/usr/src/usr.bin/xsend/enroll/Makefile
new file mode 100644 (file)
index 0000000..d08780d
--- /dev/null
@@ -0,0 +1,12 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  enroll
+CFLAGS+=-I${.CURDIR}/../common_source
+SRCS=  enroll.c lib.c
+NOMAN= man
+DPADD= ${LIBMP} ${LIBCOMPAT}
+LDADD= -lmp -lcompat
+.PATH: ${.CURDIR}/../common_source
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
diff --git a/usr/src/usr.bin/xsend/xget/Makefile b/usr/src/usr.bin/xsend/xget/Makefile
new file mode 100644 (file)
index 0000000..cbd3233
--- /dev/null
@@ -0,0 +1,12 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+
+PROG=  xget
+CFLAGS+=-I${.CURDIR}/../common_source
+SRCS=  xget.c lib.c
+NOMAN= man
+DPADD= ${LIBMP} ${LIBCOMPAT}
+LDADD= -lmp -lcompat
+.PATH: ${.CURDIR}/../common_source
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
index 75fceef..54167b5 100644 (file)
@@ -1,63 +1,13 @@
-#
-# 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.7 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
-SRCS=  enroll.c lib.c xget.c xsend.c
-OBJS=  enroll.o lib.o xget.o xsend.o
-MAN=   xsend.0
-
-all: enroll xsend xget
-
-enroll: enroll.o lib.o ${LIBC}
-       ${CC} enroll.o lib.o -o $@ -lmp -lcompat
-
-xget: xget.o lib.o ${LIBC}
-       ${CC} xget.o lib.o -o $@ -lmp -lcompat
-
-xsend: xsend.o lib.o ${LIBC}
-       ${CC} xsend.o lib.o -o $@ -lmp -lcompat
-
-clean:
-       rm -f ${OBJS} core enroll xsend xget
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 enroll xget xsend \
-           ${DESTDIR}/usr/bin
-       install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
-       rm -f ${DESTDIR}/usr/man/cat1/enroll.0
-       rm -f ${DESTDIR}/usr/man/cat1/xget.0
-       ln ${DESTDIR}/usr/man/cat1/xsend.0 ${DESTDIR}/usr/man/cat1/enroll.0
-       ln ${DESTDIR}/usr/man/cat1/xsend.0 ${DESTDIR}/usr/man/cat1/xget.0
-
-lint: ${SRCS}
-       lint ${CFLAGS} enroll.c lib.c
-       lint ${CFLAGS} xget.c lib.c
-       lint ${CFLAGS} xsend.c lib.c
-
-tags: ${SRCS
-       ctags enroll.c lib.c
-       ctags -a xget.c
-       ctags -a xsend.c
-       sort -o tags tags
+#      @(#)Makefile    4.8 (Berkeley) %G%
+
+PROG=  xsend
+CFLAGS+=-I${.CURDIR}/../common_source
+SRCS=  xsend.c lib.c
+DPADD= ${LIBMP} ${LIBCOMPAT}
+LDADD= -lmp -lcompat
+MAN1=  xsend.0
+MLINKS=        xsend.1 enroll.1 xsend.1 xget.1
+.PATH: ${.CURDIR}/../common_source
+
+.include "../../Makefile.inc"
+.include <bsd.prog.mk>
index 59872c0..6a684dd 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=  xstr.c
-OBJS=
-MAN=   xstr.0
+PROG=  xstr
 
 
-all: xstr
-
-xstr: ${LIBC}
-       ${CC} -o $@ ${CFLAGS} $@.c
-
-clean:
-       rm -f ${OBJS} core xstr
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep -p ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 xstr ${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 8831a26..9ee1838 100644 (file)
@@ -1,49 +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.1 (Berkeley) %G%
-#
-CFLAGS=        -O
-LIBC=  /lib/libc.a
+#      @(#)Makefile    5.2 (Berkeley) %G%
+
+PROG=  yacc
 SRCS=  closure.c error.c lalr.c lr0.c main.c mkpar.c output.c reader.c \
        skeleton.c symtab.c verbose.c warshall.c
 SRCS=  closure.c error.c lalr.c lr0.c main.c mkpar.c output.c reader.c \
        skeleton.c symtab.c verbose.c warshall.c
-OBJS=  closure.o error.o lalr.o lr0.o main.o mkpar.o output.o reader.o \
-       skeleton.o symtab.o verbose.o warshall.o
-MAN=   yacc.0
-
-all: yacc
-
-yacc: ${OBJS} ${LIBC}
-       ${CC} -o $@ ${CFLAGS} ${OBJS}
-
-clean:
-       rm -f ${OBJS} core yacc
-
-cleandir: clean
-       rm -f ${MAN} tags .depend
-
-depend: ${SRCS}
-       mkdep ${CFLAGS} ${SRCS}
-
-install: ${MAN}
-       install -s -o bin -g bin -m 755 yacc ${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>