recognize and handle carrier loss
[unix-history] / usr / src / games / Makefile
index d3e9a59..3ff3091 100644 (file)
@@ -1,4 +1,4 @@
-#      @(#)Makefile    4.2     (Berkeley)      %G%
+#      Makefile        4.13    83/08/02
 #
 DESTDIR=
 CFLAGS=        -O
 #
 DESTDIR=
 CFLAGS=        -O
@@ -10,20 +10,21 @@ 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
+       hangman mille monop quiz 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.
 #
-SCRIPT=        ching
+#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 cfscores chess factor \
+       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.
 #
-NSTD=  canfield hangman rain worm worms
+NSTD=  canfield primes rain worm worms
 
 all:   ${SUBDIR} ${STD} ${NSTD}
 
 
 all:   ${SUBDIR} ${STD} ${NSTD}
 
@@ -36,8 +37,13 @@ ${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 ${SCRIPT}; do (install -c $$i ${DESTDIR}/usr/games/$$i); done
+       for i in ${STD} ${NSTD}; do \
+               (install -s $$i ${DESTDIR}/usr/games/$$i); \
+       done
+       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
 
 clean:
        rm -f a.out core *.s *.o
@@ -65,19 +71,19 @@ depend:
 # Files listed in ${NSTD} have explicit make lines given below.
 
 canfield:
 # Files listed in ${NSTD} have explicit make lines given below.
 
 canfield:
-       cc -o canfield canfield.c -lcurses -ltermcap
+       cc -o canfield ${CFLAGS} canfield.c -lcurses -ltermcap
 
 
-hangman:
-       cc -o hangman hangman.c -lcurses -ltermcap -lm
+primes:
+       cc -o primes ${CFLAGS} primes.c -lm
 
 rain:
 
 rain:
-       cc -o rain rain.c -lcurses -ltermcap
+       cc -o rain ${CFLAGS} rain.c -lcurses -ltermcap
 
 worm:
 
 worm:
-       cc -o worm worm.c -lcurses -ltermcap
+       cc -o worm ${CFLAGS} worm.c -lcurses -ltermcap
 
 worms:
 
 worms:
-       cc -o worms worms.c -lcurses -ltermcap
+       cc -o worms ${CFLAGS} worms.c -lcurses -ltermcap
 
 # DO NOT DELETE THIS LINE -- make depend uses it
 
 
 # DO NOT DELETE THIS LINE -- make depend uses it
 
@@ -89,27 +95,21 @@ btlgammon: /usr/include/stdio.h
 banner: banner.c
 banner: /usr/include/stdio.h
 bcd: bcd.c
 banner: banner.c
 banner: /usr/include/stdio.h
 bcd: bcd.c
+cfscores: cfscores.c
+cfscores: /usr/include/pwd.h
 chess: chess.c
 chess: /usr/include/stdio.h
 fish: fish.c
 fish: /usr/include/stdio.h
 number: number.c
 chess: chess.c
 chess: /usr/include/stdio.h
 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: /usr/include/signal.h
 canfield: canfield.c
 canfield: /usr/include/curses.h
 canfield: /usr/include/ctype.h
 canfield: /usr/include/signal.h
-hangman: hangman.c
-hangman: /usr/include/stdio.h
-hangman: /usr/include/sys/types.h
-hangman: /usr/include/sys/stat.h
+canfield: /usr/include/sys/types.h
 rain: rain.c
 rain: /usr/include/stdio.h
 rain: /usr/include/sgtty.h
 rain: rain.c
 rain: /usr/include/stdio.h
 rain: /usr/include/sgtty.h