From 1e650ae61bde379781bccd559405fbdcd158cb1f Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Wed, 3 Jun 1987 19:22:12 -0800 Subject: [PATCH] date and time created 87/06/03 12:22:12 by bostic SCCS-vsn: games/fortune/Makefile 1.1 --- usr/src/games/fortune/Makefile | 73 ++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 usr/src/games/fortune/Makefile diff --git a/usr/src/games/fortune/Makefile b/usr/src/games/fortune/Makefile new file mode 100644 index 0000000000..f214627e55 --- /dev/null +++ b/usr/src/games/fortune/Makefile @@ -0,0 +1,73 @@ +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= + +all: fortune strfile unstr fortunes.dat + +fortune: fortune.o rnd.o + $(CC) $(CFLAGS) -o fortune fortune.o rnd.o + +strfile: strfile.o rnd.o + $(CC) $(CFLAGS) -o strfile strfile.o rnd.o + +unstr: unstr.o + $(CC) $(CFLAGS) -o unstr unstr.o + +fortune.o strfile.o unstr.o: strfile.h + +fortunes.dat: fortunes strfile + ./strfile $(SFLAGS) fortunes + +fortunes: $(FORTUNES) + cp scene 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) + +install.data: fortunes.dat + install -m 600 -o daemon fortunes.dat $(DESTDIR)$(LIBDIR) + +troff: troff.scene troff.obscene + +troff.scene: + ./Do_troff scene $(TROFF) + +troff.obscene: + ./Do_troff obscene $(TROFF) + +clean: sort.clean + rm -f fortune fortunes fortunes.dat strfile unstr ? core *.o + +sort: sort.scene sort.obscene + +sort.scene: strfile unstr + strfile -oi scene + mv scene Oscene + unstr -o scene + +sort.obscene: strfile unstr + strfile -oi obscene + mv obscene Oobscene + unstr -o obscene + +sort.clean: + rm -f Oscene Oobscene + +depend: -- 2.20.1