add sun and mc68K definitions
[unix-history] / usr / src / games / Makefile
index 7764970..ede4c67 100644 (file)
@@ -1,4 +1,4 @@
-#      @(#)Makefile    4.1     (Berkeley)      %G%
+#      @(#)Makefile    4.4     (Berkeley)      %G%
 #
 DESTDIR=
 CFLAGS=        -O
 #
 DESTDIR=
 CFLAGS=        -O
@@ -10,12 +10,16 @@ WORK=       aard ddl mpu
 # Programs that live in subdirectories, and have makefiles of their own.
 #
 SUBDIR=        adventure backgammon boggle compat cribbage doctor fortune \
 # Programs that live in subdirectories, and have makefiles of their own.
 #
 SUBDIR=        adventure backgammon boggle compat cribbage doctor fortune \
-       mille monop snake
+       mille monop quiz snake zork
+
+# Shell scripts that need only be installed and are never removed.
+#
+#SCRIPT=       
 
 # 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 chess fish number quiz wump zork
+STD=   arithmetic btlgammon banner bcd chess fish number wump
 
 # C programs that live in the current directory and need explicit make lines.
 #
 
 # C programs that live in the current directory and need explicit make lines.
 #
@@ -32,7 +36,9 @@ ${STD}:
 install:
        for i in ${SUBDIR}; do \
                (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
 install:
        for i in ${SUBDIR}; do \
                (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
+#      for i in ${SCRIPT}; do (install -c $$i ${DESTDIR}/usr/games/$$i); done
        for i in ${STD} ${NSTD}; do (install $$i ${DESTDIR}/usr/games/$$i); done
        for i in ${STD} ${NSTD}; do (install $$i ${DESTDIR}/usr/games/$$i); done
+       install -c chess.bin ${DESTDIR}/usr/games/lib/chess
 
 clean:
        rm -f a.out core *.s *.o
 
 clean:
        rm -f a.out core *.s *.o
@@ -89,14 +95,9 @@ chess: /usr/include/stdio.h
 fish: fish.c
 fish: /usr/include/stdio.h
 number: number.c
 fish: fish.c
 fish: /usr/include/stdio.h
 number: number.c
-quiz: quiz.c
-quiz: /usr/include/stdio.h
-quiz: /usr/include/signal.h
 wump: wump.c
 wump: /usr/include/stdio.h
 wump: /usr/include/sgtty.h
 wump: wump.c
 wump: /usr/include/stdio.h
 wump: /usr/include/sgtty.h
-zork: zork.c
-zork: /usr/include/stdio.h
 canfield: canfield.c
 canfield: /usr/include/curses.h
 canfield: /usr/include/ctype.h
 canfield: canfield.c
 canfield: /usr/include/curses.h
 canfield: /usr/include/ctype.h