From e2d34627f8248fc9468eaec0450c8488318cfdd0 Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Sat, 6 Jun 1987 21:58:42 -0800 Subject: [PATCH] new template SCCS-vsn: lib/libc/net/SCCS/hosttable/Makefile 5.5 SCCS-vsn: lib/csu/vax/Makefile 5.5 SCCS-vsn: games/fortune/Makefile 1.2 SCCS-vsn: lib/libcompat/4.1/Makefile 5.5 --- usr/src/games/fortune/Makefile | 92 +++++++++++--------- usr/src/lib/csu/vax/Makefile | 2 +- usr/src/lib/libc/net/SCCS/hosttable/Makefile | 32 ++----- usr/src/lib/libcompat/4.1/Makefile | 44 ++++++---- 4 files changed, 85 insertions(+), 85 deletions(-) diff --git a/usr/src/games/fortune/Makefile b/usr/src/games/fortune/Makefile index f214627e55..ef9c6fa8df 100644 --- a/usr/src/games/fortune/Makefile +++ b/usr/src/games/fortune/Makefile @@ -1,59 +1,59 @@ -FORTUNES= scene obscene -SOURCE= fortune.c strfile.h strfile.c rnd.c unstr.c $(FORTUNES) -TFILES= Troff.mac Troff.sed Do_troff -LIBDIR= /usr/games/lib -BINDIR= /usr/games -OWN= arnold -GRP= arpa -DEFS= -CFLAGS= -O $(DEFS) -SFLAGS= -r -TDEV= -Pver -TROFF= ditroff $(TDEV) -DESTDIR= +# +# 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.2 (Berkeley) %G% +# +CFLAGS= -O +LIBC= /lib/libc.a +SFLAGS= -r +TDEV= -Pver +TROFF= ditroff ${TDEV} +SRCS= fortune.c rnd.c strfile.c unstr.c all: fortune strfile unstr fortunes.dat -fortune: fortune.o rnd.o - $(CC) $(CFLAGS) -o fortune fortune.o rnd.o +fortune: fortune.o rnd.o ${LIBC} + ${CC} ${CFLAGS} -o $@ fortune.o rnd.o -strfile: strfile.o rnd.o - $(CC) $(CFLAGS) -o strfile strfile.o rnd.o +strfile: strfile.o rnd.o ${LIBC} + ${CC} ${CFLAGS} -o $@ strfile.o rnd.o -unstr: unstr.o - $(CC) $(CFLAGS) -o unstr unstr.o - -fortune.o strfile.o unstr.o: strfile.h +unstr: unstr.o ${LIBC} + ${CC} ${CFLAGS} -o $@ unstr.o fortunes.dat: fortunes strfile - ./strfile $(SFLAGS) fortunes + ./strfile ${SFLAGS} fortunes -fortunes: $(FORTUNES) +fortunes: scene obscene cp scene fortunes + chmod 666 fortunes echo "%-" >> fortunes cat obscene >> fortunes -lint: - lint -hxb $(DEFS) fortune.c rnd.c 2>&1 > fortune.lint - lint -hxb $(DEFS) strfile.c rnd.c 2>&1 > strfile.lint - lint -hxb $(DEFS) unstr.c 2>&1 > unstr.lint - -install: all install.data - install -s -m 4711 -o daemon fortune $(DESTDIR)$(BINDIR) +clean: FRC + rm -f fortune fortunes fortunes.dat strfile unstr core *.o + rm -f Oscene Oobscene -install.data: fortunes.dat - install -m 600 -o daemon fortunes.dat $(DESTDIR)$(LIBDIR) +depend: FRC + mkdep ${CFLAGS} ${SRCS} -troff: troff.scene troff.obscene +install: FRC + install -s -o bin -g bin -m 4711 fortune ${DESTDIR}/usr/games + install -o bin -g bin -m 600 fortunes.dat ${DESTDIR}/usr/games/lib -troff.scene: - ./Do_troff scene $(TROFF) +lint: FRC + lint ${CFLAGS} fortune.c rnd.c + lint ${CFLAGS} strfile.c rnd.c + lint ${CFLAGS} unstr.c -troff.obscene: - ./Do_troff obscene $(TROFF) +tags: FRC + ctags ${SRCS} -clean: sort.clean - rm -f fortune fortunes fortunes.dat strfile unstr ? core *.o +troff: FRC + ./Do_troff scene ${TROFF} + ./Do_troff obscene ${TROFF} sort: sort.scene sort.obscene @@ -67,7 +67,15 @@ sort.obscene: strfile unstr mv obscene Oobscene unstr -o obscene -sort.clean: - rm -f Oscene Oobscene +FRC: + +# DO NOT DELETE THIS LINE -- mkdep uses it. +# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. + +fortune.o: fortune.c /usr/include/sys/types.h /usr/include/stdio.h +fortune.o: /usr/include/sys/file.h strfile.h +rnd.o: rnd.c +strfile.o: strfile.c /usr/include/stdio.h /usr/include/ctype.h strfile.h +unstr.o: unstr.c /usr/include/stdio.h strfile.h -depend: +# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/usr/src/lib/csu/vax/Makefile b/usr/src/lib/csu/vax/Makefile index 32214437c3..f31d093735 100644 --- a/usr/src/lib/csu/vax/Makefile +++ b/usr/src/lib/csu/vax/Makefile @@ -3,7 +3,7 @@ # All rights reserved. The Berkeley software License Agreement # specifies the terms and conditions for redistribution. # -# @(#)Makefile 5.4 (Berkeley) %G% +# @(#)Makefile 5.5 (Berkeley) %G% # # crt0 Normal C run time startoff # mcrt0 C run time start off for profiling, ``prof'' conventions diff --git a/usr/src/lib/libc/net/SCCS/hosttable/Makefile b/usr/src/lib/libc/net/SCCS/hosttable/Makefile index 3daaa610da..b11e36ac28 100644 --- a/usr/src/lib/libc/net/SCCS/hosttable/Makefile +++ b/usr/src/lib/libc/net/SCCS/hosttable/Makefile @@ -4,7 +4,7 @@ # All rights reserved. The Berkeley software License Agreement # specifies the terms and conditions for redistribution. # -# @(#)Makefile 5.4 (Berkeley) %G% +# @(#)Makefile 5.5 (Berkeley) %G% # OBJS= gethostnamadr.o gethostent.o @@ -24,7 +24,7 @@ hostlib hostlib_p: ${OBJS} @cd profiled; ar cru ../hostlib_p ${OBJS} @echo "building normal netlib" @ar cru hostlib ${OBJS} - + tags: cwd=`pwd`; \ for i in ${SRCS}; do \ @@ -32,33 +32,19 @@ tags: done clean: - rm -f *.o errs a.out core hostlib hostlib_p profiled/*.o \ - tags Makefile.bak + rm -f *.o errs a.out core hostlib hostlib_p profiled/*.o tags depend: - for i in ${SRCS}; do \ - cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ - { if (rec != "") print rec; rec = $$0; prev = $$1; } \ - else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ - else rec = rec " " $$2 } } \ - END { print rec } ' >> makedep; done - echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep - echo '$$r makedep' >>eddep - echo 'w' >>eddep - cp Makefile Makefile.bak - ed - Makefile < eddep - rm eddep makedep - echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile - echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile - echo '# see make depend above' >> Makefile + mkdep ${CFLAGS} ${SRCS} -# DO NOT DELETE THIS LINE -- make depend uses it +# DO NOT DELETE THIS LINE -- mkdep uses it. +# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. gethostnamadr.o: gethostnamadr.c /usr/include/stdio.h /usr/include/netdb.h gethostnamadr.o: /usr/include/sys/file.h /usr/include/ndbm.h +gethostnamadr.o: /usr/include/ctype.h gethostent.o: gethostent.c /usr/include/stdio.h /usr/include/sys/types.h gethostent.o: /usr/include/sys/socket.h /usr/include/netdb.h gethostent.o: /usr/include/ctype.h /usr/include/ndbm.h -# DEPENDENCIES MUST END AT END OF FILE -# IF YOU PUT STUFF HERE IT WILL GO AWAY -# see make depend above + +# IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff --git a/usr/src/lib/libcompat/4.1/Makefile b/usr/src/lib/libcompat/4.1/Makefile index 7b8b3b5403..e1cd16d6a2 100644 --- a/usr/src/lib/libcompat/4.1/Makefile +++ b/usr/src/lib/libcompat/4.1/Makefile @@ -3,7 +3,7 @@ # All rights reserved. The Berkeley software License Agreement # specifies the terms and conditions for redistribution. # -# @(#)Makefile 5.4 (Berkeley) %G% +# @(#)Makefile 5.5 (Berkeley) %G% # CFLAGS= -O ${DEFS} STDSRCS=ftime.c gtty.c nice.c pause.c rand.c stty.c tell.c \ @@ -38,25 +38,31 @@ tags: done clean: - rm -f compat-4.1lib compat-4.1lib_p *.o profiled/*.o tags Makefile.bak + rm -f compat-4.1lib compat-4.1lib_p *.o profiled/*.o tags depend: - for i in ${SRCS}; do \ - cc -M ${CFLAGS} $$i | awk ' { if ($$1 != prev) \ - { if (rec != "") print rec; rec = $$0; prev = $$1; } \ - else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ - else rec = rec " " $$2 } } \ - END { print rec } ' >> makedep; done - echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep - echo '$$r makedep' >>eddep - echo 'w' >>eddep - cp Makefile Makefile.bak - ed - Makefile < eddep - rm eddep makedep - echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile - echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile - echo '# see make depend above' >> Makefile - -# DO NOT DELETE THIS LINE -- make depend uses it + mkdep ${CFLAGS} ${SRCS} + +# DO NOT DELETE THIS LINE -- mkdep uses it. +# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. +ftime.o: ftime.c /usr/include/sys/types.h /usr/include/sys/time.h +ftime.o: /usr/include/time.h +gtty.o: gtty.c /usr/include/sgtty.h /usr/include/sys/ioctl.h +gtty.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h +nice.o: nice.c /usr/include/sys/time.h /usr/include/time.h +nice.o: /usr/include/sys/resource.h +pause.o: pause.c +rand.o: rand.c +stty.o: stty.c /usr/include/sgtty.h /usr/include/sys/ioctl.h +stty.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h +tell.o: tell.c +times.o: times.c /usr/include/sys/time.h /usr/include/time.h +times.o: /usr/include/sys/resource.h +utime.o: utime.c /usr/include/sys/time.h /usr/include/time.h +vlimit.o: vlimit.c /usr/include/sys/time.h /usr/include/time.h +vlimit.o: /usr/include/sys/resource.h /usr/include/errno.h +vtimes.o: vtimes.c /usr/include/sys/time.h /usr/include/time.h +vtimes.o: /usr/include/sys/resource.h +# IF YOU PUT ANYTHING HERE IT WILL GO AWAY -- 2.20.1