BSD 4_3 release
[unix-history] / usr / src / games / Makefile
index 804afb0..dc590c1 100644 (file)
@@ -3,15 +3,16 @@
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
-#      @(#)Makefile    5.6 (Berkeley) %G%
+#      @(#)Makefile    5.4 (Berkeley) 2/1/86
 #
 DESTDIR=
 CFLAGS=        -O
 
 # Programs that live in subdirectories, and have makefiles of their own.
 #
 #
 DESTDIR=
 CFLAGS=        -O
 
 # Programs that live in subdirectories, and have makefiles of their own.
 #
-SUBDIR=        adventure backgammon battlestar boggle cribbage fortune \
-       hangman hunt mille monop quiz robots sail snake trek
+SUBDIR=        aard adventure backgammon battlestar boggle ching compat \
+       cribbage ddl doctor fortune hangman hunt mille monop quiz \
+       robots rogue sail snake trek zork
 
 # Shell scripts that need only be installed and are never removed.
 #
 
 # Shell scripts that need only be installed and are never removed.
 #
@@ -20,17 +21,14 @@ SCRIPT=     wargames
 # C programs that live in the current directory and do not need
 # explicit make lines.
 #
 # C programs that live in the current directory and do not need
 # explicit make lines.
 #
-STD=   arithmetic btlgammon banner bcd cfscores factor fish number wump
+STD=   arithmetic btlgammon banner bcd cfscores chess factor \
+       fish number wump
 
 # C programs that live in the current directory and need explicit make lines.
 #
 NSTD=  canfield primes rain worm worms
 
 
 # C programs that live in the current directory and need explicit make lines.
 #
 NSTD=  canfield primes rain worm worms
 
-# Programs that require a lisp interpreter or compiler
-LISP=  doctor
-
 all:   ${SUBDIR} ${STD} ${NSTD}
 all:   ${SUBDIR} ${STD} ${NSTD}
-       cd games.`machine`; make ${MFLAGS}
 
 ${SUBDIR}: FRC
        cd $@; make ${MFLAGS}
 
 ${SUBDIR}: FRC
        cd $@; make ${MFLAGS}
@@ -47,16 +45,14 @@ install:
                (install -c $$i.sh ${DESTDIR}/usr/games/$$i); done
        -for i in ${STD} ${NSTD}; do \
                (install -s $$i ${DESTDIR}/usr/games/$$i); done
                (install -c $$i.sh ${DESTDIR}/usr/games/$$i); done
        -for i in ${STD} ${NSTD}; do \
                (install -s $$i ${DESTDIR}/usr/games/$$i); done
-       -if [ ! -f ${DESTDIR}/usr/games/lib/cfscores ]; then \
-               cat >${DESTDIR}/usr/games/lib/cfscores </dev/null; \
-               chmod 777 ${DESTDIR}/usr/games/lib/cfscores; fi
-       cd games.`machine`; make ${MFLAGS} DESTDIR=${DESTDIR} install
+       install -c chess.bin ${DESTDIR}/usr/games/lib/chess
+       cat >${DESTDIR}/usr/games/lib/cfscores </dev/null
+       chmod 777 ${DESTDIR}/usr/games/lib/cfscores
 
 clean:
        rm -f a.out core *.s *.o
        -for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
        rm -f ${STD} ${NSTD}
 
 clean:
        rm -f a.out core *.s *.o
        -for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
        rm -f ${STD} ${NSTD}
-       cd games.`machine`; make ${MFLAGS} DESTDIR=${DESTDIR} clean
 
 depend:
        for i in ${STD} ${NSTD}; do \
 
 depend:
        for i in ${STD} ${NSTD}; do \
@@ -100,6 +96,7 @@ btlgammon: btlgammon.c /usr/include/stdio.h
 banner: banner.c /usr/include/stdio.h
 bcd: bcd.c
 cfscores: cfscores.c /usr/include/pwd.h
 banner: banner.c /usr/include/stdio.h
 bcd: bcd.c
 cfscores: cfscores.c /usr/include/pwd.h
+chess: chess.c /usr/include/stdio.h
 factor: factor.c
 fish: fish.c /usr/include/stdio.h
 number: number.c
 factor: factor.c
 fish: fish.c /usr/include/stdio.h
 number: number.c