From 2f33aea72c5aa09caa0c1e8fca1dfc7a3a98e449 Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Fri, 11 May 1990 22:21:41 -0800 Subject: [PATCH] first pass for new make SCCS-vsn: usr.bin/du/Makefile 5.3 SCCS-vsn: usr.bin/rwho/Makefile 5.3 SCCS-vsn: usr.bin/ruptime/Makefile 5.3 SCCS-vsn: usr.bin/ptx/Makefile 5.3 SCCS-vsn: usr.bin/tset/Makefile 5.12 SCCS-vsn: usr.bin/locate/bigram/Makefile 5.1 SCCS-vsn: usr.bin/locate/code/Makefile 5.1 SCCS-vsn: usr.bin/locate/locate/Makefile 5.2 SCCS-vsn: usr.bin/locate/Makefile 5.1 SCCS-vsn: usr.bin/whatis/Makefile 5.2 SCCS-vsn: usr.bin/script/Makefile 5.3 SCCS-vsn: usr.bin/apropos/Makefile 5.2 SCCS-vsn: usr.bin/soelim/Makefile 5.3 SCCS-vsn: usr.bin/dirname/Makefile 5.2 SCCS-vsn: usr.bin/mkfifo/Makefile 5.2 SCCS-vsn: usr.bin/env/Makefile 5.1 SCCS-vsn: usr.bin/finger/Makefile 5.3 SCCS-vsn: usr.bin/diction/Makefile 4.10 SCCS-vsn: usr.bin/diction/diction/Makefile 5.1 SCCS-vsn: usr.bin/diction/explain/Makefile 5.1 SCCS-vsn: usr.bin/diction/style/Makefile 5.1 SCCS-vsn: usr.bin/diction/style1/Makefile 5.1 SCCS-vsn: usr.bin/diction/style2/Makefile 5.1 SCCS-vsn: usr.bin/diction/style3/Makefile 5.1 SCCS-vsn: old/cpio/Makefile 5.7 SCCS-vsn: usr.bin/biff/Makefile 5.3 SCCS-vsn: usr.bin/apply/Makefile 5.3 SCCS-vsn: usr.bin/paste/Makefile 5.1 SCCS-vsn: usr.bin/deroff/Makefile 5.2 SCCS-vsn: usr.bin/showmount/Makefile 6.2 SCCS-vsn: usr.bin/Makefile 5.2 SCCS-vsn: usr.bin/dc/Makefile 5.8 SCCS-vsn: usr.bin/colrm/Makefile 5.3 SCCS-vsn: usr.bin/colcrt/Makefile 5.3 SCCS-vsn: usr.bin/col/Makefile 5.2 SCCS-vsn: usr.bin/chpass/Makefile 5.3 SCCS-vsn: usr.bin/checknr/Makefile 5.3 SCCS-vsn: usr.bin/fstat/Makefile 5.4 SCCS-vsn: usr.bin/vacation/Makefile 5.3 SCCS-vsn: usr.bin/yes/Makefile 5.3 SCCS-vsn: usr.bin/hexdump/Makefile 5.3 SCCS-vsn: usr.bin/nfsstat/Makefile 5.2 SCCS-vsn: usr.bin/window/Makefile 5.7 SCCS-vsn: usr.bin/whois/Makefile 5.3 SCCS-vsn: old/which/Makefile 5.3 SCCS-vsn: old/whereis/Makefile 5.3 SCCS-vsn: usr.bin/cmp/Makefile 5.3 SCCS-vsn: usr.bin/tcopy/Makefile 5.3 SCCS-vsn: usr.bin/telnet/Makefile 5.1 SCCS-vsn: usr.bin/tftp/Makefile 5.9 SCCS-vsn: usr.bin/tip/Makefile 5.9 SCCS-vsn: usr.bin/rlogin/Makefile 5.5 SCCS-vsn: usr.bin/banner/Makefile 5.3 SCCS-vsn: usr.bin/renice/Makefile 5.3 SCCS-vsn: usr.bin/rdist/Makefile 5.9 SCCS-vsn: usr.bin/quota/Makefile 5.3 --- usr/src/old/cpio/Makefile | 53 ++---------- usr/src/old/whereis/Makefile | 49 +---------- usr/src/old/which/Makefile | 34 +++----- usr/src/usr.bin/Makefile | 62 ++++--------- usr/src/usr.bin/apply/Makefile | 49 +---------- usr/src/usr.bin/apropos/Makefile | 51 ++--------- usr/src/usr.bin/banner/Makefile | 49 +---------- usr/src/usr.bin/biff/Makefile | 49 +---------- usr/src/usr.bin/checknr/Makefile | 49 +---------- usr/src/usr.bin/chpass/Makefile | 61 ++----------- usr/src/usr.bin/cmp/Makefile | 49 +---------- usr/src/usr.bin/col/Makefile | 49 +---------- usr/src/usr.bin/colcrt/Makefile | 49 +---------- usr/src/usr.bin/colrm/Makefile | 49 +---------- usr/src/usr.bin/dc/Makefile | 48 +---------- usr/src/usr.bin/deroff/Makefile | 49 +---------- usr/src/usr.bin/diction/Makefile | 70 +-------------- usr/src/usr.bin/diction/diction/Makefile | 14 +++ usr/src/usr.bin/diction/explain/Makefile | 12 +++ usr/src/usr.bin/diction/style/Makefile | 18 ++++ usr/src/usr.bin/diction/style1/Makefile | 11 +++ usr/src/usr.bin/diction/style2/Makefile | 11 +++ usr/src/usr.bin/diction/style3/Makefile | 9 ++ usr/src/usr.bin/dirname/Makefile | 2 + usr/src/usr.bin/du/Makefile | 49 +---------- usr/src/usr.bin/env/Makefile | 6 ++ usr/src/usr.bin/finger/Makefile | 48 +---------- usr/src/usr.bin/fstat/Makefile | 54 ++---------- usr/src/usr.bin/hexdump/Makefile | 58 ++----------- usr/src/usr.bin/locate/Makefile | 5 ++ usr/src/usr.bin/locate/bigram/Makefile | 7 ++ usr/src/usr.bin/locate/code/Makefile | 8 ++ usr/src/usr.bin/locate/locate/Makefile | 62 ++----------- usr/src/usr.bin/mkfifo/Makefile | 2 + usr/src/usr.bin/nfsstat/Makefile | 52 ++--------- usr/src/usr.bin/paste/Makefile | 5 ++ usr/src/usr.bin/ptx/Makefile | 52 ++--------- usr/src/usr.bin/quota/Makefile | 51 ++--------- usr/src/usr.bin/rdist/Makefile | 54 ++---------- usr/src/usr.bin/renice/Makefile | 49 +---------- usr/src/usr.bin/rlogin/Makefile | 56 ++---------- usr/src/usr.bin/ruptime/Makefile | 49 +---------- usr/src/usr.bin/rwho/Makefile | 49 +---------- usr/src/usr.bin/script/Makefile | 49 +---------- usr/src/usr.bin/showmount/Makefile | 51 ++--------- usr/src/usr.bin/soelim/Makefile | 49 +---------- usr/src/usr.bin/tcopy/Makefile | 49 +---------- usr/src/usr.bin/telnet/Makefile | 105 ++--------------------- usr/src/usr.bin/tftp/Makefile | 49 +---------- usr/src/usr.bin/tip/Makefile | 97 +++++---------------- usr/src/usr.bin/tset/Makefile | 53 ++---------- usr/src/usr.bin/vacation/Makefile | 51 ++--------- usr/src/usr.bin/whatis/Makefile | 51 ++--------- usr/src/usr.bin/whois/Makefile | 49 +---------- usr/src/usr.bin/window/Makefile | 80 ++++------------- usr/src/usr.bin/yes/Makefile | 49 +---------- 56 files changed, 350 insertions(+), 2094 deletions(-) create mode 100644 usr/src/usr.bin/diction/diction/Makefile create mode 100644 usr/src/usr.bin/diction/explain/Makefile create mode 100644 usr/src/usr.bin/diction/style/Makefile create mode 100644 usr/src/usr.bin/diction/style1/Makefile create mode 100644 usr/src/usr.bin/diction/style2/Makefile create mode 100644 usr/src/usr.bin/diction/style3/Makefile create mode 100644 usr/src/usr.bin/env/Makefile create mode 100644 usr/src/usr.bin/locate/Makefile create mode 100644 usr/src/usr.bin/locate/bigram/Makefile create mode 100644 usr/src/usr.bin/locate/code/Makefile create mode 100644 usr/src/usr.bin/paste/Makefile diff --git a/usr/src/old/cpio/Makefile b/usr/src/old/cpio/Makefile index 3cfca50869..598e672def 100644 --- a/usr/src/old/cpio/Makefile +++ b/usr/src/old/cpio/Makefile @@ -1,48 +1,9 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.6 (Berkeley) %G% -# -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= cpio.c -OBJS= -MAN= cpio.0 cpio_format.0 +# @(#)Makefile 5.7 (Berkeley) %G% -all: cpio +PROG= cpio +MAN1= cpio.0 +MAN5= cpio_format.0 +DPADD= ${LIBCOMPAT} +LDADD= -lcompat -cpio: ${LIBC} - ${CC} -o $@ ${CFLAGS} cpio.c -lcompat - -clean: - rm -f ${OBJS} core cpio - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 cpio ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 cpio.0 ${DESTDIR}/usr/man/cat1 - install -c -o bin -g bin -m 444 cpio_format.0 ${DESTDIR}/usr/man/cat5 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/old/whereis/Makefile b/usr/src/old/whereis/Makefile index cef4d88696..82e726ded4 100644 --- a/usr/src/old/whereis/Makefile +++ b/usr/src/old/whereis/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= whereis.c -OBJS= -MAN= whereis.0 +PROG= whereis -all: whereis - -whereis: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core whereis - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 whereis ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/old/which/Makefile b/usr/src/old/which/Makefile index 5d6f2b1d33..caba9e16ea 100644 --- a/usr/src/old/which/Makefile +++ b/usr/src/old/which/Makefile @@ -1,25 +1,13 @@ -# -# Copyright (c) 1988 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# -MAN= which.0 +# @(#)Makefile 5.3 (Berkeley) %G% -all which clean cleandir depend lint tags: +MAN1= which.0 -install: ${MAN} - install -c -o bin -g bin -m 755 which.csh ${DESTDIR}/usr/bin/which - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 +all: ${MAN1} + +which clean cleandir depend lint tags: + +install: maninstall + install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${.CURDIR}/which.csh ${DESTDIR}${BINDIR}/which + +.include diff --git a/usr/src/usr.bin/Makefile b/usr/src/usr.bin/Makefile index 493d714cd0..bfff914aa8 100644 --- a/usr/src/usr.bin/Makefile +++ b/usr/src/usr.bin/Makefile @@ -1,47 +1,23 @@ -# -# Copyright (c) 1989 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.1 (Berkeley) %G% -# +# @(#)Makefile 5.2 (Berkeley) %G% # not currently working -# pstat, tn3270, w +# ktrace, pstat, tn3270, uucp, find, login +# need conversion +# ex, tip, tn3270, learn -SUBDIR= apply awk banner basename bc biff cal calendar checknr \ - chpass cmp col colcrt colrm comm compress cpio cut \ - dc deroff des diction diff diff3 du eqn ex \ - expand false file find finger fold from fstat ftp \ - graph grep groups head hexdump join last lastcomm learn \ - leave ln locate lock \ - logger look machine mail make man mesg more msgs mt netstat \ - nfsstat nice nohup pagesize passwd paste plot pr printenv \ - printf ptx quota rdist refer renice rlogin roff rsh \ - ruptime rwho sccs script sed sendbug soelim sort spell spline \ - split su sum sysline systat tail talk tbl tc tcopy tee telnet \ - tftp time tip touch tput tr true tset tty ul uniq \ - units users uucp uuencode vacation vmstat wall wc what whereis \ - which \ - who whoami whois window write xsend yes +SUBDIR= apply apropos at awk banner basename bc biff cal calendar checknr \ + chpass cmp col colcrt colrm column comm compress cpio cut \ + dc deroff des diction diff dirname du env eqn \ + ex expand false file finger fmt fold from fstat ftp \ + graph grep groups head hexdump join last lastcomm learn leave \ + ln locate lock logger login look machine mail make man mesg \ + mkfifo more msgs mt netstat nfsstat nice nohup pagesize passwd \ + paste plot pr printenv printf ptx quota rdist refer renice \ + rlogin roff rsh ruptime rwho sccs script sed showmount \ + soelim sort spell spline split su sum sysline systat tail talk \ + tbl tcopy tee telnet tftp time tip touch tput tr true \ + tset tty ul unexpand uniq units users uudecode uuencode \ + vacation vis vmstat w wall wc what whatis whereis which who \ + whoami whois window write xargs xsend yes -all clean cleandir depend install lint tags: FRC - @-for i in ${SUBDIR}; do \ - (echo "==> $$i"; cd $$i; \ - make ${MFLAGS} DESTDIR=${DESTDIR} $@); done - -${SUBDIR}: FRC - cd $@; make ${MFLAGS} DESTDIR=${DESTDIR} - -FRC: +.include diff --git a/usr/src/usr.bin/apply/Makefile b/usr/src/usr.bin/apply/Makefile index 1e3de779a1..d258b2e824 100644 --- a/usr/src/usr.bin/apply/Makefile +++ b/usr/src/usr.bin/apply/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= apply.c -OBJS= -MAN= apply.0 +PROG= apply -all: apply - -apply: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core apply - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 apply ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/apropos/Makefile b/usr/src/usr.bin/apropos/Makefile index d82e3ab0c4..e66aa1bfcb 100644 --- a/usr/src/usr.bin/apropos/Makefile +++ b/usr/src/usr.bin/apropos/Makefile @@ -1,48 +1,7 @@ -# -# Copyright (c) 1987 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.1 (Berkeley) %G% -# -CFLAGS= -O -LIBC= /lib/libc.a -VPATH= ../man -SRCS= apropos.c config.c -OBJS= apropos.o config.o -MAN= apropos.0 - -all: apropos - -apropos: ${LIBC} ${OBJS} - ${CC} -o $@ ${CFLAGS} ${OBJS} - -clean: - rm -f core apropos ${OBJS} +# @(#)Makefile 5.2 (Berkeley) %G% -cleandir: clean - rm -f ${MAN} tags .depend - -depend: - mkdep ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 apropos ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: - lint ${CFLAGS} ${SRCS} +PROG= apropos +SRCS= apropos.c config.c +.PATH: ${.CURDIR}/../man -tags: - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/banner/Makefile b/usr/src/usr.bin/banner/Makefile index 1bdaede160..18d549897e 100644 --- a/usr/src/usr.bin/banner/Makefile +++ b/usr/src/usr.bin/banner/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= banner.c -OBJS= -MAN= banner.0 +PROG= banner -all: banner - -banner: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core banner - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 banner ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/biff/Makefile b/usr/src/usr.bin/biff/Makefile index 3f13920d1c..77eb964e50 100644 --- a/usr/src/usr.bin/biff/Makefile +++ b/usr/src/usr.bin/biff/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= biff.c -OBJS= -MAN= biff.0 +PROG= biff -all: biff - -biff: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core biff - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 biff ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/checknr/Makefile b/usr/src/usr.bin/checknr/Makefile index 864aec39a1..31bd206efe 100644 --- a/usr/src/usr.bin/checknr/Makefile +++ b/usr/src/usr.bin/checknr/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= checknr.c -OBJS= -MAN= checknr.0 +PROG= checknr -all: checknr - -checknr: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core checknr - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 checknr ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/chpass/Makefile b/usr/src/usr.bin/chpass/Makefile index 9d010f93a8..e976f88c46 100644 --- a/usr/src/usr.bin/chpass/Makefile +++ b/usr/src/usr.bin/chpass/Makefile @@ -1,55 +1,10 @@ -# -# Copyright (c) 1988 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= chpass.c field.c util.c -OBJS= chpass.o field.o util.o -MAN= chpass.0 - -all: chpass - -chpass: ${LIBC} ${OBJS} - ${CC} ${CFLAGS} -o $@ ${OBJS} - -clean: - rm -f ${OBJS} core chpass +# @(#)Makefile 5.3 (Berkeley) %G% -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o root -g bin -m 4755 chpass ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - rm -f ${DESTDIR}/usr/bin/chfn; ln ${DESTDIR}/usr/bin/chpass \ - ${DESTDIR}/usr/bin/chfn - rm -f ${DESTDIR}/usr/bin/chsh; ln ${DESTDIR}/usr/bin/chpass \ - ${DESTDIR}/usr/bin/chsh - rm -f ${DESTDIR}/usr/man/cat1/chfn.0 - rm -f ${DESTDIR}/usr/man/cat1/chsh.0 - ln ${DESTDIR}/usr/man/cat1/chpass.0 ${DESTDIR}/usr/man/cat1/chfn.0 - ln ${DESTDIR}/usr/man/cat1/chpass.0 ${DESTDIR}/usr/man/cat1/chsh.0 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} +PROG= chpass +SRCS= chpass.c field.c util.c +BINOWN= root +BINMODE=4555 +LINKS= ${BINDIR}/chpass ${BINDIR}/chfn ${BINDIR}/chpass ${BINDIR}/chsh +MLINKS= chpass.1 chfn.1 chpass.1 chsh.1 -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/cmp/Makefile b/usr/src/usr.bin/cmp/Makefile index 5bf288ab02..f38e7fe06e 100644 --- a/usr/src/usr.bin/cmp/Makefile +++ b/usr/src/usr.bin/cmp/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= cmp.c -OBJS= -MAN= cmp.0 +PROG= cmp -all: cmp - -cmp: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core cmp - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 cmp ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/col/Makefile b/usr/src/usr.bin/col/Makefile index 12e2018046..8cb9171504 100644 --- a/usr/src/usr.bin/col/Makefile +++ b/usr/src/usr.bin/col/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.1 (Berkeley) %G% -# +# @(#)Makefile 5.2 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= col.c -OBJS= -MAN= col.0 +PROG= col -all: col - -col: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core col - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 col ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/colcrt/Makefile b/usr/src/usr.bin/colcrt/Makefile index 86d528e34c..f41a2a515c 100644 --- a/usr/src/usr.bin/colcrt/Makefile +++ b/usr/src/usr.bin/colcrt/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= colcrt.c -OBJS= -MAN= colcrt.0 +PROG= colcrt -all: colcrt - -colcrt: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core colcrt - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 colcrt ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/colrm/Makefile b/usr/src/usr.bin/colrm/Makefile index d1b564907e..d14f0f0588 100644 --- a/usr/src/usr.bin/colrm/Makefile +++ b/usr/src/usr.bin/colrm/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= colrm.c -OBJS= -MAN= colrm.0 +PROG= colrm -all: colrm - -colrm: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core colrm - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 colrm ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/dc/Makefile b/usr/src/usr.bin/dc/Makefile index cabfe0fb5a..3fd973e303 100644 --- a/usr/src/usr.bin/dc/Makefile +++ b/usr/src/usr.bin/dc/Makefile @@ -1,47 +1,5 @@ -# -# Copyright (c) 1988 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.7 (Berkeley) %G% -# -CFLAGS= -O -I. -LIBC= /lib/libc.a -SRCS= dc.c -OBJS= -MAN= dc.0 +# @(#)Makefile 5.8 (Berkeley) %G% -all: dc +PROG= dc -dc: ${LIBC} - ${CC} ${CFLAGS} -o $@ $@.c - -clean: - rm -f ${OBJS} core dc - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 dc ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/deroff/Makefile b/usr/src/usr.bin/deroff/Makefile index f0dc2648a6..92b60357de 100644 --- a/usr/src/usr.bin/deroff/Makefile +++ b/usr/src/usr.bin/deroff/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.1 (Berkeley) %G% -# +# @(#)Makefile 5.2 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= deroff.c -OBJS= -MAN= deroff.0 +PROG= deroff -all: deroff - -deroff: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core deroff - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 deroff ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/diction/Makefile b/usr/src/usr.bin/diction/Makefile index ebc8d8ab23..7b8d8d4c84 100644 --- a/usr/src/usr.bin/diction/Makefile +++ b/usr/src/usr.bin/diction/Makefile @@ -1,69 +1,5 @@ -# -# Copyright (c) 1987 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 4.9 (Berkeley) %G% -# -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= diction.c nwords.c end.c part.c pscan.c outp.c -OBJS= nwords.o end.o part.o pscan.o outp.o -MAN= diction.0 style.0 +# @(#)Makefile 4.10 (Berkeley) %G% -all: dprog style1 style2 style3 +SUBDIR= diction explain style style1 style2 style3 -dprog: diction.c ${LIBC} - ${CC} ${CFLAGS} diction.c -o $@ - -style1: nwords.o ${LIBC} - ${CC} nwords.o -o $@ -ll - -style2: end.o ${LIBC} - ${CC} end.o -o $@ -ll - -style3: part.o pscan.o outp.o ${LIBC} - ${CC} part.o pscan.o outp.o -o $@ -ll - -clean: - rm -f ${OBJS} part.c nwords.c end.c style1 style2 style3 dprog - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 dprog style1 style2 style3 \ - ${DESTDIR}/usr/libexec - install -c -o bin -g bin -m 755 dict.d explain.d \ - ${DESTDIR}/usr/share/dict - install -c -o bin -g bin -m 755 style.sh ${DESTDIR}/usr/bin/style - install -c -o bin -g bin -m 755 diction.sh ${DESTDIR}/usr/bin/diction - install -c -o bin -g bin -m 755 explain.sh ${DESTDIR}/usr/bin/explain - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - rm -f ${DESTDIR}/usr/man/cat1/explain.0 - ln ${DESTDIR}/usr/man/cat1/diction.0 ${DESTDIR}/usr/man/cat1/explain.0 - -lint: ${SRCS} - lint ${CFLAGS} nwords.c - lint ${CFLAGS} end.c - lint ${CFLAGS} part.c pscan.c outp.c - -tags: ${SRCS} - ctags nwords.c - ctags -a end.c - ctags -a part.c pscan.c outp.c - sort -o tags tags +.include diff --git a/usr/src/usr.bin/diction/diction/Makefile b/usr/src/usr.bin/diction/diction/Makefile new file mode 100644 index 0000000000..509a465a90 --- /dev/null +++ b/usr/src/usr.bin/diction/diction/Makefile @@ -0,0 +1,14 @@ +# @(#)Makefile 5.1 (Berkeley) %G% + +PROG= diction +BINDIR= /usr/libexec +MLINKS= diction.1 explain.1 + +beforeinstall: + install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${.CURDIR}/dict.d ${DESTDIR}/usr/share/dict + install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${.CURDIR}/diction.sh ${DESTDIR}/usr/bin/diction + +.include "../../Makefile.inc" +.include diff --git a/usr/src/usr.bin/diction/explain/Makefile b/usr/src/usr.bin/diction/explain/Makefile new file mode 100644 index 0000000000..4de4d767c0 --- /dev/null +++ b/usr/src/usr.bin/diction/explain/Makefile @@ -0,0 +1,12 @@ +# @(#)Makefile 5.1 (Berkeley) %G% + +all explain clean cleandir depend lint tags: + +install: + install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${.CURDIR}/explain.d ${DESTDIR}/usr/share/dict + install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${.CURDIR}/explain.sh ${DESTDIR}${BINDIR}/explain + +.include "../../Makefile.inc" +.include diff --git a/usr/src/usr.bin/diction/style/Makefile b/usr/src/usr.bin/diction/style/Makefile new file mode 100644 index 0000000000..93ba884a4a --- /dev/null +++ b/usr/src/usr.bin/diction/style/Makefile @@ -0,0 +1,18 @@ +# @(#)Makefile 5.1 (Berkeley) %G% + +MAN1= style.0 + +all style: ${MAN1} + +clean depend lint tags: + +cleandir: + rm -f ${MAN1} + +beforeinstall: + install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${.CURDIR}/style.sh ${DESTDIR}${BINDIR}/style + + +.include "../../Makefile.inc" +.include diff --git a/usr/src/usr.bin/diction/style1/Makefile b/usr/src/usr.bin/diction/style1/Makefile new file mode 100644 index 0000000000..5801832d7d --- /dev/null +++ b/usr/src/usr.bin/diction/style1/Makefile @@ -0,0 +1,11 @@ +# @(#)Makefile 5.1 (Berkeley) %G% + +PROG= style1 +CFLAGS+=-I${.CURDIR} +SRCS= style1.c +DPADD= ${LIBL} +LDADD= -ll +NOMAN= noman +BINDIR= /usr/libexec + +.include diff --git a/usr/src/usr.bin/diction/style2/Makefile b/usr/src/usr.bin/diction/style2/Makefile new file mode 100644 index 0000000000..b85c373a4b --- /dev/null +++ b/usr/src/usr.bin/diction/style2/Makefile @@ -0,0 +1,11 @@ +# @(#)Makefile 5.1 (Berkeley) %G% + +PROG= style2 +CFLAGS+=-I${.CURDIR} -I${.CURDIR}/../style1 +SRCS= style2.c +DPADD= ${LIBL} +LDADD= -ll +NOMAN= noman +BINDIR= /usr/libexec + +.include diff --git a/usr/src/usr.bin/diction/style3/Makefile b/usr/src/usr.bin/diction/style3/Makefile new file mode 100644 index 0000000000..4cd77c3eb9 --- /dev/null +++ b/usr/src/usr.bin/diction/style3/Makefile @@ -0,0 +1,9 @@ +# @(#)Makefile 5.1 (Berkeley) %G% + +PROG= style3 +CFLAGS+=-I${.CURDIR} -I${.CURDIR}/../style1 +SRCS= part.c pscan.c outp.c +NOMAN= noman +BINDIR= /usr/libexec + +.include diff --git a/usr/src/usr.bin/dirname/Makefile b/usr/src/usr.bin/dirname/Makefile index bc3f0006c6..33930e9f01 100644 --- a/usr/src/usr.bin/dirname/Makefile +++ b/usr/src/usr.bin/dirname/Makefile @@ -1,3 +1,5 @@ +# @(#)Makefile 5.2 (Berkeley) %G% + PROG= dirname NOMAN= noman diff --git a/usr/src/usr.bin/du/Makefile b/usr/src/usr.bin/du/Makefile index c9b345e061..26ba0da0d5 100644 --- a/usr/src/usr.bin/du/Makefile +++ b/usr/src/usr.bin/du/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= du.c -OBJS= -MAN= du.0 +PROG= du -all: du - -du: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core du - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 du ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/env/Makefile b/usr/src/usr.bin/env/Makefile new file mode 100644 index 0000000000..b1cfa7fcf6 --- /dev/null +++ b/usr/src/usr.bin/env/Makefile @@ -0,0 +1,6 @@ +# @(#)Makefile 5.1 (Berkeley) %G% + +PROG= env +NOMAN= noman + +.include diff --git a/usr/src/usr.bin/finger/Makefile b/usr/src/usr.bin/finger/Makefile index 0312626a85..ccaac70fb0 100644 --- a/usr/src/usr.bin/finger/Makefile +++ b/usr/src/usr.bin/finger/Makefile @@ -1,48 +1,6 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a +PROG= finger SRCS= finger.c lprint.c net.c sprint.c util.c -OBJS= finger.o lprint.o net.o sprint.o util.o -MAN= finger.0 -all: finger - -finger: ${LIBC} ${OBJS} - ${CC} -o $@ ${CFLAGS} ${OBJS} - -clean: - rm -f ${OBJS} core finger - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 finger ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 finger.0 ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/fstat/Makefile b/usr/src/usr.bin/fstat/Makefile index aad63461a8..a686cc161d 100644 --- a/usr/src/usr.bin/fstat/Makefile +++ b/usr/src/usr.bin/fstat/Makefile @@ -1,49 +1,11 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.3 (Berkeley) %G% -# +# @(#)Makefile 5.4 (Berkeley) %G% -CFLAGS= -O -VPATH= ../../bin/ps -LIBC= /lib/libc.a +PROG= fstat SRCS= fstat.c devname.c -OBJS= fstat.o devname.o -MAN= fstat.0 +.PATH: ${.CURDIR}/../../bin/ps +DPADD= ${LIBUTIL} +LDADD= -lutil +BINGRP= kmem +BINMODE=2555 -all: fstat - -fstat: ${LIBC} ${OBJS} - ${CC} -o $@ ${CFLAGS} $@.c -lutil - -clean: - rm -f ${OBJS} core fstat - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g kmem -m 2755 fstat ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/hexdump/Makefile b/usr/src/usr.bin/hexdump/Makefile index 8e936e2103..8317bd07d3 100644 --- a/usr/src/usr.bin/hexdump/Makefile +++ b/usr/src/usr.bin/hexdump/Makefile @@ -1,54 +1,8 @@ -# -# Copyright (c) 1989 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= conv.c display.c hexdump.c parse.c -OBJS= conv.o display.o hexdump.o parse.o -MAN= hexdump.0 +# @(#)Makefile 5.3 (Berkeley) %G% -all: hexdump +PROG= hexdump +SRCS= conv.c display.c hexdump.c hexsyntax.c odsyntax.c parse.c +MAN1= hexdump.0 od.0 +LINKS= ${BINDIR}/hexdump ${BINDIR}/od -hexdump: ${LIBC} ${OBJS} - ${CC} -o $@ ${CFLAGS} ${OBJS} - -hexdump.0: hexdump.1 - tbl hexdump.1 | nroff -man > hexdump.0 - -clean: - rm -f ${OBJS} core hexdump - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 hexdump ${DESTDIR}/usr/bin - rm -f ${DESTDIR}/usr/bin/od - ln ${DESTDIR}/usr/bin/hexdump ${DESTDIR}/usr/bin/od - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - rm -f ${DESTDIR}/usr/man/cat1/od.0 - ln ${DESTDIR}/usr/man/cat1/hexdump.0 ${DESTDIR}/usr/man/cat1/od.0 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/locate/Makefile b/usr/src/usr.bin/locate/Makefile new file mode 100644 index 0000000000..afd160b87a --- /dev/null +++ b/usr/src/usr.bin/locate/Makefile @@ -0,0 +1,5 @@ +# @(#)Makefile 5.1 (Berkeley) %G% + +SUBDIR= bigram code locate + +.include diff --git a/usr/src/usr.bin/locate/bigram/Makefile b/usr/src/usr.bin/locate/bigram/Makefile new file mode 100644 index 0000000000..dc47d147d3 --- /dev/null +++ b/usr/src/usr.bin/locate/bigram/Makefile @@ -0,0 +1,7 @@ +# @(#)Makefile 5.1 (Berkeley) %G% + +PROG= locate.bigram +NOMAN= noman +BINDIR= /usr/libexec + +.include diff --git a/usr/src/usr.bin/locate/code/Makefile b/usr/src/usr.bin/locate/code/Makefile new file mode 100644 index 0000000000..ff401f9df9 --- /dev/null +++ b/usr/src/usr.bin/locate/code/Makefile @@ -0,0 +1,8 @@ +# @(#)Makefile 5.1 (Berkeley) %G% + +PROG= locate.code +CFLAGS+=-I${.CURDIR}/../locate +NOMAN= noman +BINDIR= /usr/libexec + +.include diff --git a/usr/src/usr.bin/locate/locate/Makefile b/usr/src/usr.bin/locate/locate/Makefile index 772dba0878..6a5a749db8 100644 --- a/usr/src/usr.bin/locate/locate/Makefile +++ b/usr/src/usr.bin/locate/locate/Makefile @@ -1,58 +1,10 @@ -# -# Copyright (c) 1988 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.1 (Berkeley) %G% -# -CFLAGS= -O -LIBC= /usr/lib/libc.a -SRCS= locate.c bigram.c code.c -OBJS= locate.o bigram.o code.o -MAN= locate.0 +# @(#)Makefile 5.2 (Berkeley) %G% -all: locate bigram code +PROG= locate -bigram code locate:${LIBC} - ${CC} ${CFLAGS} -o $@ $@.c +beforeinstall: + install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${.CURDIR}/updatedb.csh ${DESTDIR}/usr/libexec/locate.updatedb -clean: - rm -f ${OBJS} core locate bigram code - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 locate ${DESTDIR}/usr/bin - install -s -o bin -g bin -m 755 code \ - ${DESTDIR}/usr/libexec/locate.code - install -s -o bin -g bin -m 755 bigram \ - ${DESTDIR}/usr/libexec/locate.bigram - install -c -o bin -g bin -m 755 updatedb.csh \ - ${DESTDIR}/usr/libexec/locate.updatedb - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} locate.c - lint ${CFLAGS} bigram.c - lint ${CFLAGS} code.c - -tags: ${SRCS} - ctags locate.c - ctags -a bigram.c - ctags -a code.c - sort -o tags tags +.include "../../Makefile.inc" +.include diff --git a/usr/src/usr.bin/mkfifo/Makefile b/usr/src/usr.bin/mkfifo/Makefile index aa19b2abf7..5ed3c1c491 100644 --- a/usr/src/usr.bin/mkfifo/Makefile +++ b/usr/src/usr.bin/mkfifo/Makefile @@ -1,3 +1,5 @@ +# @(#)Makefile 5.2 (Berkeley) %G% + PROG= mkfifo .include diff --git a/usr/src/usr.bin/nfsstat/Makefile b/usr/src/usr.bin/nfsstat/Makefile index 4555bfb434..97a95e8394 100644 --- a/usr/src/usr.bin/nfsstat/Makefile +++ b/usr/src/usr.bin/nfsstat/Makefile @@ -1,48 +1,8 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.1 (Berkeley) %G% -# +# @(#)Makefile 5.2 (Berkeley) %G% -CFLAGS= -O -DNFS -LIBC= /lib/libc.a -SRCS= nfsstat.c -OBJS= -MAN= nfsstat.0 +PROG= nfsstat +CFLAGS+=-DNFS +BINGRP= kmem +BINMODE=2555 -all: nfsstat - -nfsstat: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core nfsstat - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g kmem -m 2755 nfsstat ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/paste/Makefile b/usr/src/usr.bin/paste/Makefile new file mode 100644 index 0000000000..e122d94551 --- /dev/null +++ b/usr/src/usr.bin/paste/Makefile @@ -0,0 +1,5 @@ +# @(#)Makefile 5.1 (Berkeley) %G% + +PROG= paste + +.include diff --git a/usr/src/usr.bin/ptx/Makefile b/usr/src/usr.bin/ptx/Makefile index 400b8a3141..fbd0939589 100644 --- a/usr/src/usr.bin/ptx/Makefile +++ b/usr/src/usr.bin/ptx/Makefile @@ -1,49 +1,9 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= ptx.c -OBJS= -MAN= ptx.0 +PROG= ptx -all: ptx +beforeinstall: + install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/eign \ + ${DESTDIR}/usr/share/dict -ptx: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core ptx - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 ptx ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - install -c -o bin -g bin -m 444 eign ${DESTDIR}/usr/share/dict - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/quota/Makefile b/usr/src/usr.bin/quota/Makefile index 10a8668d16..5132be1f5e 100644 --- a/usr/src/usr.bin/quota/Makefile +++ b/usr/src/usr.bin/quota/Makefile @@ -1,48 +1,7 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= quota.c -OBJS= -MAN= quota.0 +PROG= quota +BINOWN= root +BINMODE=4555 -all: quota - -quota: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core quota - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o root -g bin -m 4755 quota ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/rdist/Makefile b/usr/src/usr.bin/rdist/Makefile index 41be56de07..65c8af73e2 100644 --- a/usr/src/usr.bin/rdist/Makefile +++ b/usr/src/usr.bin/rdist/Makefile @@ -1,48 +1,10 @@ -# -# Copyright (c) 1987 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.8 (Berkeley) %G% -# -LIBC= /lib/libc.a -RDIST= /usr/bin/rdist -CFLAGS= -g -SRCS= docmd.c expand.c gram.y lookup.c main.c server.c -OBJS= docmd.o expand.o gram.o lookup.o main.o server.o -MAN= rdist.0 +# @(#)Makefile 5.9 (Berkeley) %G% -all: rdist +PROG= rdist +CFLAGS+=-I${.CURDIR} +SRCS= docmd.c expand.c lookup.c main.c server.c +OBJS+= gram.o +BINOWN= root +BINMODE=4555 -rdist: ${OBJS} ${LIBC} - ${CC} -o $@ ${CFLAGS} ${OBJS} - -clean: - rm -f ${OBJS} core rdist - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o root -g bin -m 4751 rdist ${DESTDIR}${RDIST} - install -c -o bin -g bin -m 444 rdist.0 ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/renice/Makefile b/usr/src/usr.bin/renice/Makefile index ea524a4db0..c911390c75 100644 --- a/usr/src/usr.bin/renice/Makefile +++ b/usr/src/usr.bin/renice/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= renice.c -OBJS= -MAN= renice.0 +PROG= renice -all: renice - -renice: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core renice - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 renice ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/rlogin/Makefile b/usr/src/usr.bin/rlogin/Makefile index 3325e3e2ef..8912aa1319 100644 --- a/usr/src/usr.bin/rlogin/Makefile +++ b/usr/src/usr.bin/rlogin/Makefile @@ -1,49 +1,11 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) 5/11/89 -# +# @(#)Makefile 5.5 (Berkeley) %G% -CFLAGS= -O -DKERBEROS -I/usr/include/kerberosIV -LIBC= /lib/libc.a -SRCS= rlogin.c kcmd/krcmd.c kcmd/kcmd.c des/des_rw.c -OBJS= krcmd.o kcmd.o des_rw.o -MAN= rlogin.0 -VPATH= des:kcmd +PROG= rlogin +SRCS= rlogin.c krcmd.c kcmd.c des_rw.c +DPADD= ${LIBKRB} ${LIBDES} +CFLAGS+=-DKERBEROS +LDADD= -lkrb -ldes +BINOWN= root +BINMODE=4555 -all: rlogin - -rlogin: ${LIBC} ${OBJS} - ${CC} -o $@ ${CFLAGS} $@.c ${OBJS} -lkrb -ldes - -clean: - rm -f ${OBJS} core rlogin ${OBJS} - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o root -g bin -m 4755 rlogin ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 rlogin.0 ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/ruptime/Makefile b/usr/src/usr.bin/ruptime/Makefile index bdcf436efc..74ee1afb4b 100644 --- a/usr/src/usr.bin/ruptime/Makefile +++ b/usr/src/usr.bin/ruptime/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= ruptime.c -OBJS= -MAN= ruptime.0 +PROG= ruptime -all: ruptime - -ruptime: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core ruptime - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 ruptime ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ruptime.0 ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/rwho/Makefile b/usr/src/usr.bin/rwho/Makefile index 3b650e4f62..c018dab220 100644 --- a/usr/src/usr.bin/rwho/Makefile +++ b/usr/src/usr.bin/rwho/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= rwho.c -OBJS= -MAN= rwho.0 +PROG= rwho -all: rwho - -rwho: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core rwho - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 rwho ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 rwho.0 ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/script/Makefile b/usr/src/usr.bin/script/Makefile index f1a089acd8..4073a35be1 100644 --- a/usr/src/usr.bin/script/Makefile +++ b/usr/src/usr.bin/script/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= script.c -OBJS= -MAN= script.0 +PROG= script -all: script - -script: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core script - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 script ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/showmount/Makefile b/usr/src/usr.bin/showmount/Makefile index c7d3cae755..c57db864d1 100644 --- a/usr/src/usr.bin/showmount/Makefile +++ b/usr/src/usr.bin/showmount/Makefile @@ -1,48 +1,7 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 6.1 (Berkeley) %G% -# +# @(#)Makefile 6.2 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= showmount.c -OBJS= -MAN= showmount.0 +PROG= showmount +DPADD= ${LIBRPC} +LDADD= -lrpc -all: showmount - -showmount: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c -lrpc - -clean: - rm -f ${OBJS} core showmount - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 showmount ${DESTDIR}/sbin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat8 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/soelim/Makefile b/usr/src/usr.bin/soelim/Makefile index f96392625a..4c970e4a75 100644 --- a/usr/src/usr.bin/soelim/Makefile +++ b/usr/src/usr.bin/soelim/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= soelim.c -OBJS= -MAN= soelim.0 +PROG= soelim -all: soelim - -soelim: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core soelim - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 soelim ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/tcopy/Makefile b/usr/src/usr.bin/tcopy/Makefile index 91d3355a9e..5dfcae4cfb 100644 --- a/usr/src/usr.bin/tcopy/Makefile +++ b/usr/src/usr.bin/tcopy/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= tcopy.c -OBJS= -MAN= tcopy.0 +PROG= tcopy -all: tcopy - -tcopy: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core tcopy - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 tcopy ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/telnet/Makefile b/usr/src/usr.bin/telnet/Makefile index 9c425076af..8df3ead43f 100644 --- a/usr/src/usr.bin/telnet/Makefile +++ b/usr/src/usr.bin/telnet/Makefile @@ -1,29 +1,4 @@ -# -# Copyright (c) 1987 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 1.18 (Berkeley) %G% -# - -# The following is the telnet makefile. The sources are down one level -# in directory "Source" because the sources are shared between telnet -# and tn3270. - -VPATH = Source -INCLUDES= -ISource - +# @(#)Makefile 5.1 (Berkeley) %G% # # TERMCAP Define this if your system is termcap based, # otherwise a terminfo based system is assumed. @@ -46,78 +21,12 @@ INCLUDES= -ISource # strrchr=rindex Define this if you do not have strrchr() in your # C libaray (but you do have rindex...) # +PROG= telnet +CFLAGS+=-DTERMCAP -DSRCRT -DKLUDGELINEMODE -DUSE_TERMIO +LDADD= -ltermcap +DPADD= ${LIBTERMCAP} -DEFINES= -DTERMCAP -DSRCRT -DKLUDGELINEMODE -DUSE_TERMIO - -# -# LIBS should be set to any libraries that need to be included, -# like the termcap or terminfo library. LIBPATH is the paths -# to these libraries, for dependencies. -# For CRAY: LIBS= -lcurses -lnet -# -LIBS= -ltermcap -LIBPATH= /lib/libc.a /usr/lib/libtermcap.a - -SRCS= commands.c main.c network.c ring.c \ - sys_bsd.c telnet.c terminal.c \ +SRCS= commands.c main.c network.c ring.c sys_bsd.c telnet.c terminal.c \ tn3270.c utilities.c -CFLAGS= -O ${INCLUDES} ${DEFINES} - -ALLHC= ${SRCS} \ - Source/defines.h Source/externs.h Source/fdset.h Source/general.h \ - Source/ring.h Source/types.h - -OBJS= commands.o main.o network.o ring.o sys_bsd.o \ - telnet.o terminal.o tn3270.o utilities.o -MAN= telnet.0 - -# -# 4.4BSD -# DEST=${DESTDIR}/usr/bin -# -# 4.3BSD -# DEST=${DESTDIR}/usr/ucb -# -DEST=${DESTDIR}/usr/bin - -# -# These next three lines are not needed in 4.4BSD -# -# .SUFFIXES: .0 .1 -# .1.0: -# nroff -man -h $< > $@ - -all: telnet - -telnet: ${OBJS} ${LIBPATH} - ${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS} - -clean: FRC - rm -f ${OBJS} core errs l.errs telnet - -cleandir: clean - rm -f ${MAN} tags .depend - -clist: FRC ${SRCS} - @for i in ${SRCS} ; \ - do (echo ${DIRPATH}$$i); done - -hclist: FRC ${ALLHC} - @for i in ${ALLHC} ; \ - do (echo ${DIRPATH}$$i); done - -depend: FRC ${SRCS} - mkdep ${CFLAGS} `make clist` - -install: ${MAN} FRC - install -s -o bin -g bin -m 755 telnet ${DEST} - install -c -o bin -g bin -m 444 telnet.0 ${DESTDIR}/usr/man/cat1 - -lint: FRC ${SRCS} - lint ${CFLAGS} `make clist` - -tags: FRC ${SRCS} - ctags `make hclist` - -FRC: +.include diff --git a/usr/src/usr.bin/tftp/Makefile b/usr/src/usr.bin/tftp/Makefile index b8c9b21c31..9aa70a5886 100644 --- a/usr/src/usr.bin/tftp/Makefile +++ b/usr/src/usr.bin/tftp/Makefile @@ -1,47 +1,6 @@ -# -# Copyright (c) 1987 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.8 (Berkeley) %G% -# -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= main.c tftp.c tftpsubs.c -OBJS= main.o tftp.o tftpsubs.o -MAN= tftp.0 - -all: tftp - -tftp: ${OBJS} ${LIBC} - ${CC} -o $@ ${CFLAGS} ${OBJS} - -clean: - rm -f ${OBJS} core tftp +# @(#)Makefile 5.9 (Berkeley) %G% -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 tftp ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 tftp.0 ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} +PROG= tftp +SRCS= main.c tftp.c tftpsubs.c -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/tip/Makefile b/usr/src/usr.bin/tip/Makefile index ccab9ae4e9..9a183b737f 100644 --- a/usr/src/usr.bin/tip/Makefile +++ b/usr/src/usr.bin/tip/Makefile @@ -1,29 +1,11 @@ -# -# Copyright (c) 1988 The Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.8 (Berkeley) %G% -# -# make file for intermachine communications package +# @(#)Makefile 5.9 (Berkeley) %G% # # Files are: # /etc/remote remote host description file # /etc/phones phone number file, owned by ${OWNER} and -# mode 6?? -# ${ADM}/aculog ACU accounting file, owned by ${OWNER} and -# mode 6?? {if ACULOG defined} +# mode 6?? +# /var/log/aculog ACU accounting file, owned by ${OWNER} and +# mode 6?? {if ACULOG defined} # Presently supports: # BIZCOMP # DEC DF02-AC, DF03-AC @@ -33,7 +15,6 @@ # VENTEL 212+ # VADIC 831 RS232 adaptor # VADIC 3451 -# (drivers are located in aculib.a) # # Configuration defines: # DF02, DF03, DN11 ACU's supported @@ -46,59 +27,23 @@ # writes on local side # BUFSIZ buffer sizing from stdio, must be fed # explicitly to remcap.c if not 1024 -ADM= usr/adm -CONFIG= -DV831 -DVENTEL -DHAYES -DCOURIER -CFLAGS= -O -DDEFBR=1200 -DDEFFS=BUFSIZ -DACULOG -DPRISTINE -LIBC= /lib/libc.a -SRCS= acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c partab.c remcap.c \ - remote.c tip.c tipout.c uucplock.c value.c vars.c -OBJS= acu.o acutab.o cmds.o cmdtab.o cu.o hunt.o log.o partab.o remcap.o \ - remote.o tip.o tipout.o uucplock.o value.o vars.o -MAN= tip.0 - -all: aculib/aculib.a tip - -tip: ${OBJS} ${LIBC} - ${CC} -o $@ ${OBJS} aculib/aculib.a - -# acutab is configuration dependent, and so depends on the makefile -acutab.o: Makefile -acutab.o: acutab.c - ${CC} -c ${CFLAGS} ${CONFIG} acutab.c -# remote.o depends on the makefile because of DEFBR and DEFFS -# log.o depends on the makefile because of ACULOG -log.o remote.o: Makefile - -aculib/aculib.a: FRC - cd aculib; make ${MFLAGS} - -clean: - rm -f ${OBJS} core tip - cd aculib; make ${MFLAGS} clean - -cleandir: clean - rm -f ${MAN} tags .depend - cd aculib; make ${MFLAGS} cleandir - -depend: - mkdep ${CFLAGS} ${SRCS} - cd aculib; make ${MFLAGS} depend - -install: ${MAN} - cd aculib; make ${MFLAGS} install - install -s -o uucp -g dialer -m 4710 tip ${DESTDIR}/usr/bin - rm -f ${DESTDIR}/usr/bin/cu - ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu - install -c -o bin -g bin -m 444 tip.0 ${DESTDIR}/usr/man/cat1 - rm -f ${DESTDIR}/usr/man/cat1/cu.0 - ln ${DESTDIR}/usr/man/cat1/tip.0 ${DESTDIR}/usr/man/cat1/cu.0 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} +PROG= tip +CFLAGS+=-I${.CURDIR} -DV831 -DVENTEL -DHAYES -DCOURIER -DDEFBR=1200 \ + -DDEFFS=BUFSIZ -DACULOG -DPRISTINE +.PATH: ${.CURDIR}/aculib +BINOWN= uucp +BINGRP= dialer +BINMODE=4510 +LINKS= ${BINDIR}/tip ${BINDIR}/cu +MLINKS= tip.1 cu.1 +SRCS= acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c partab.c remcap.c \ + remote.c tip.c tipout.c uucplock.c value.c vars.c biz22.c courier.c \ + df.c dn11.c hayes.c v3451.c v831.c ventel.c -tags: ${SRCS} - ctags ${SRCS} - cd aculib; make ${MFLAGS} tags +# -- acutab is configuration dependent, and so depends on the Makefile +# -- remote.o depends on the Makefile because of DEFBR and DEFFS +# -- log.o depends on the Makefile because of ACULOG +acutab.o log.o remote.o: Makefile -FRC: +.include diff --git a/usr/src/usr.bin/tset/Makefile b/usr/src/usr.bin/tset/Makefile index 258b4b149c..0af28e3bc3 100644 --- a/usr/src/usr.bin/tset/Makefile +++ b/usr/src/usr.bin/tset/Makefile @@ -1,48 +1,9 @@ -# -# Copyright (c) 1987 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.11 (Berkeley) %G% -# -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= tset.c -MAN= tset.0 +# @(#)Makefile 5.12 (Berkeley) %G% -all: tset +PROG= tset +DPADD= ${LIBTERMCAP} ${LIBCOMPAT} +LDADD= -ltermcap -lcompat +LINKS= ${BINDIR}/tset ${BINDIR}/reset +MLINKS= tset.1 reset.1 -tset: ${SRCS} ${LIBC} - ${CC} -o $@ ${CFLAGS} ${SRCS} -ltermlib -lcompat - -clean: - rm -f ${OBJS} core tset - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 tset ${DESTDIR}/usr/bin - rm -f ${DESTDIR}/usr/bin/reset - ln ${DESTDIR}/usr/bin/tset ${DESTDIR}/usr/bin/reset - install -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/vacation/Makefile b/usr/src/usr.bin/vacation/Makefile index 8f0edb4966..e40b25d793 100644 --- a/usr/src/usr.bin/vacation/Makefile +++ b/usr/src/usr.bin/vacation/Makefile @@ -1,48 +1,7 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= vacation.c -OBJS= -MAN= vacation.0 +PROG= vacation +DPADD= ${LIBDBM} +LDADD= -ldbm -all: vacation - -vacation: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c -ldbm - -clean: - rm -f ${OBJS} core vacation - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 vacation ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/whatis/Makefile b/usr/src/usr.bin/whatis/Makefile index 6bbda0554c..378bc023cb 100644 --- a/usr/src/usr.bin/whatis/Makefile +++ b/usr/src/usr.bin/whatis/Makefile @@ -1,48 +1,7 @@ -# -# Copyright (c) 1987 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.1 (Berkeley) %G% -# -CFLAGS= -O -LIBC= /lib/libc.a -VPATH= ../man -SRCS= whatis.c config.c -OBJS= whatis.o config.o -MAN= whatis.0 - -all: whatis - -whatis: ${LIBC} ${OBJS} - ${CC} -o $@ ${CFLAGS} ${OBJS} - -clean: - rm -f core whatis ${OBJS} +# @(#)Makefile 5.2 (Berkeley) %G% -cleandir: clean - rm -f ${MAN} tags .depend - -depend: - mkdep ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 whatis ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: - lint ${CFLAGS} ${SRCS} +PROG= whatis +SRCS= whatis.c config.c +.PATH: ${.CURDIR}/../man -tags: - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/whois/Makefile b/usr/src/usr.bin/whois/Makefile index a6264daba7..af59ee621a 100644 --- a/usr/src/usr.bin/whois/Makefile +++ b/usr/src/usr.bin/whois/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= whois.c -OBJS= -MAN= whois.0 +PROG= whois -all: whois - -whois: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core whois - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 whois ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/window/Makefile b/usr/src/usr.bin/window/Makefile index f221148675..3c6e4ac751 100644 --- a/usr/src/usr.bin/window/Makefile +++ b/usr/src/usr.bin/window/Makefile @@ -1,71 +1,21 @@ -# -# Copyright (c) 1987 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, -# advertising materials, and other materials related to such -# distribution and use acknowledge that the software was developed -# by the University of California, Berkeley. The name of the -# University may not be used to endorse or promote products derived -# from this software without specific prior written permission. -# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED -# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.6 (Berkeley) %G% -# -CFLAGS= -O -R -LIBC= /lib/libc.a +# @(#)Makefile 5.7 (Berkeley) %G% + +PROG= window +CFLAGS+=-R SRCS= char.c cmd.c cmd1.c cmd2.c cmd3.c cmd4.c cmd5.c cmd6.c cmd7.c \ context.c error.c lcmd.c lcmd1.c lcmd2.c main.c mloop.c parser1.c \ parser2.c parser3.c parser4.c parser5.c scanner.c startup.c string.c \ ttf100.c ttgeneric.c tth19.c tth29.c ttinit.c ttoutput.c tttermcap.c \ - tttvi925.c ttwyse60.c ttwyse75.c ttzapple.c ttzentec.c \ - var.c win.c wwadd.c wwalloc.c wwbox.c wwchild.c \ - wwclose.c wwclreol.c wwclreos.c wwcursor.c wwdata.c wwdelchar.c \ - wwdelete.c wwdelline.c wwdump.c wwend.c wwenviron.c wwerror.c \ - wwflush.c wwframe.c wwgets.c wwinit.c wwinschar.c wwinsline.c \ - wwiomux.c wwlabel.c wwmisc.c wwmove.c wwopen.c wwprintf.c wwpty.c \ - wwputc.c wwputs.c wwredraw.c wwredrawwin.c wwrint.c wwscroll.c \ - wwsize.c wwspawn.c wwsuspend.c wwtty.c wwunframe.c wwupdate.c \ - wwwrite.c xx.c xxflush.c compress.c -OBJS= char.o cmd.o cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o cmd7.o \ - context.o error.o lcmd.o lcmd1.o lcmd2.o main.o mloop.o parser1.o \ - parser2.o parser3.o parser4.o parser5.o scanner.o startup.o string.o \ - ttf100.o ttgeneric.o tth19.o tth29.o ttinit.o ttoutput.o tttermcap.o \ - tttvi925.o ttwyse60.o ttwyse75.o ttzapple.o ttzentec.o \ - var.o win.o wwadd.o wwalloc.o wwbox.o wwchild.o \ - wwclose.o wwclreol.o wwclreos.o wwcursor.o wwdata.o wwdelchar.o \ - wwdelete.o wwdelline.o wwdump.o wwend.o wwenviron.o wwerror.o \ - wwflush.o wwframe.o wwgets.o wwinit.o wwinschar.o wwinsline.o \ - wwiomux.o wwlabel.o wwmisc.o wwmove.o wwopen.o wwprintf.o wwpty.o \ - wwputc.o wwputs.o wwredraw.o wwredrawwin.o wwrint.o wwscroll.o \ - wwsize.o wwspawn.o wwsuspend.o wwtty.o wwunframe.o wwupdate.o \ - wwwrite.o xx.o xxflush.o compress.o + tttvi925.c ttwyse60.c ttwyse75.c ttzapple.c ttzentec.c var.c win.c \ + wwadd.c wwalloc.c wwbox.c wwchild.c wwclose.c wwclreol.c wwclreos.c \ + wwcursor.c wwdata.c wwdelchar.c wwdelete.c wwdelline.c wwdump.c \ + wwend.c wwenviron.c wwerror.c wwflush.c wwframe.c wwgets.c wwinit.c \ + wwinschar.c wwinsline.c wwiomux.c wwlabel.c wwmisc.c wwmove.c \ + wwopen.c wwprintf.c wwpty.c wwputc.c wwputs.c wwredraw.c \ + wwredrawwin.c wwrint.c wwscroll.c wwsize.c wwspawn.c wwsuspend.c \ + wwtty.c wwunframe.c wwupdate.c wwwrite.c xx.c xxflush.c compress.c MAN= window.0 +DPADD= ${LIBTERMCAP} +LDADD= -ltermcap -all: window - -window: ${OBJS} ${LIBC} - ${CC} -o $@ ${CFLAGS} ${OBJS} -ltermcap - -clean: - rm -f ${OBJS} core window - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 window ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} -z ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include diff --git a/usr/src/usr.bin/yes/Makefile b/usr/src/usr.bin/yes/Makefile index 2e4e1efca4..8d2931a340 100644 --- a/usr/src/usr.bin/yes/Makefile +++ b/usr/src/usr.bin/yes/Makefile @@ -1,48 +1,5 @@ -# -# Copyright (c) 1988 Regents of the University of California. -# All rights reserved. -# -# Redistribution and use in source and binary forms are permitted -# provided that the above copyright notice and this paragraph are -# duplicated in all such forms and that any documentation, advertising -# materials, and other materials related to such redistribution and -# use acknowledge that the software was developed by the University -# of California, Berkeley. The name of the University may not be -# used to endorse or promote products derived from this software -# without specific prior written permission. THIS SOFTWARE IS PROVIDED -# ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, -# WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND -# FITNESS FOR A PARTICULAR PURPOSE. -# -# @(#)Makefile 5.2 (Berkeley) %G% -# +# @(#)Makefile 5.3 (Berkeley) %G% -CFLAGS= -O -LIBC= /lib/libc.a -SRCS= yes.c -OBJS= -MAN= yes.0 +PROG= yes -all: yes - -yes: ${LIBC} - ${CC} -o $@ ${CFLAGS} $@.c - -clean: - rm -f ${OBJS} core yes - -cleandir: clean - rm -f ${MAN} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${SRCS} - -install: ${MAN} - install -s -o bin -g bin -m 755 yes ${DESTDIR}/usr/bin - install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 - -lint: ${SRCS} - lint ${CFLAGS} ${SRCS} - -tags: ${SRCS} - ctags ${SRCS} +.include -- 2.20.1