return some value from dr_main() (mostly for lint)
[unix-history] / usr / src / games / sail / Makefile
index 5053eb0..8b06ec5 100644 (file)
@@ -1,69 +1,76 @@
 #
 #
-# Sail - Wooden Ships And Iron Men
+# Copyright (c) 1983 Regents of the University of California,
+# All rights reserved.  Redistribution permitted subject to
+# the terms of the Berkeley Software License Agreement.
 #
 #
-# Makefile     @(#)Makefile    1.14 83/10/31
-#
-CC=    cc
-CTAGS= ctags -w
-CFLAGS=        -O
 
 
-DFILES=                driver1.c driver2.c driver3.c grap.c boarders.c
-DOBJS=         driver1.o driver2.o driver3.o grap.o boarders.o
-PFILES=                player1.c player2.c player3.c player4.c player5.c \
-               player6.c player7.c version.c
-POBJS=         player1.o player2.o player3.o player4.o player5.o \
-               player6.o player7.o version.o
-COMMONFILES=   assorted.c game.c globals.c misc.c parties.c sync.c
-COMMONOBJS=    assorted.o game.o globals.o misc.o parties.o sync.o
-LFILES=                sail.log.c
-LOBJS=         sail.log.o
-HDRS=          externs.h player.h driver.h machdep.h
-OTHERFILES      Makefile sail.6
-CTAGFILES=     ${DFILES} ${PFILES} ${LFILES} ${COMMONFILES}
-JUNKFILES=     make.out
-PLIBS=         -lcurses -ltermlib
-DLIBS=
-LLIBS=
+#
+# @(#)Makefile 2.10 85/04/25
+#
 
 
-SAILMASTER=    daemon
-SAIL=          sail
-DRIVER=                lib/saildriver
-SAIL.LOG=      sail.log
-LOGFILE=       lib/saillog
-DESTDIR=
-TARGET=                $(TARGET)/usr/games
+CTAGS = ctags -w
+CFLAGS = -O
 
 
-all: sail driver sail.log
+CFILES = main.c pl_main.c pl_1.c pl_2.c pl_3.c pl_4.c pl_5.c pl_6.c pl_7.c \
+       dr_main.c dr_1.c dr_2.c dr_3.c dr_4.c dr_5.c lo_main.c \
+       assorted.c game.c globals.c misc.c parties.c sync.c version.c
+OBJS = main.o pl_main.o pl_1.o pl_2.o pl_3.o pl_4.o pl_5.o pl_6.o pl_7.o \
+       dr_main.o dr_1.o dr_2.o dr_3.o dr_4.o dr_5.o lo_main.o \
+       assorted.o game.o globals.o misc.o parties.o sync.o version.o
+HFILES = externs.h player.h driver.h machdep.h
+OTHERFILES = Makefile sail.6
+JUNKFILES = sail tags make.out
+LIBS = -lcurses -ltermlib
 
 
-sail: ${POBJS} ${COMMONOBJS}
-       cc -O ${COMMONOBJS} ${POBJS} ${PLIBS} -o sail
+SAILMASTER = daemon
+LOGFILE = lib/saillog
+TARGET = $(DESTDIR)/usr/games
 
 
-driver: ${DOBJS} ${COMMONOBJS}
-       cc -O ${COMMONOBJS} ${DOBJS} ${DLIBS} -o driver
+all: sail
 
 
-sail.log: ${LOBJS} globals.o
-       cc -O ${LOBJS} globals.o -o sail.log
+sail: $(OBJS)
+       $(CC) -o sail $(OBJS) $(LIBS)
 
 lint:
 
 lint:
-       lint -z $(PFILES) $(COMMONFILES) -lcurses
-       lint -z $(DFILES) $(COMMONFILES)
+       lint -z $(CFILES) -lcurses
+
+tags: $(CFILES) $(HFILES)
+       $(CTAGS) $(CFILES) $(HFILES)
 
 
-tags: ${CTAGFILES}
-       ${CTAGS} ${CTAGFILES}
+$(CFILES) $(HFILES) $(OTHERFILES):
+       sccs get $@
 
 
-${HDRS} ${CTAGFILES}:
-       sccs get $@;
+clean:
+       rm -f $(OBJS) $(JUNKFILES)
 
 
-clean: 
-       rm -f ${DOBJS} ${POBJS} ${LOBJS} ${COMMONOBJS} ${JUNKFILES}
+install: sail sail.6 $(TARGET)/$(LOGFILE)
+       install -s -m 4755 -o $(SAILMASTER) sail $(TARGET)/sail
+       install -c -m 644 sail.6 $(DESTDIR)/usr/man/man6
 
 
-install: sail driver sail.log logfile
-       install -s -m 4711 -o ${SAILMASTER} sail ${TARGET}/${SAIL}
-       install -s -m 4711 -o ${SAILMASTER} driver ${TARGET}/${DRIVER}
-       install -s -m 711 sail.log ${TARGET}/${SAIL.LOG}
-       install sail.6 /usr/man/man6
+logfile $(TARGET)/$(LOGFILE):
+       cp /dev/null $(TARGET)/$(LOGFILE)
+       chown $(SAILMASTER) $(TARGET)/$(LOGFILE)
+       chmod 644 $(TARGET)/$(LOGFILE)
 
 
-logfile:
-       cp /dev/null ${TARGET}/${LOGFILE}
-       chown ${SAILMASTER} ${TARGET}/${LOGFILE}
-       chmod 644 ${TARGET}/${LOGFILE}
+main.o: externs.h machdep.h
+pl_main.o: player.h externs.h machdep.h
+pl_1.o: player.h externs.h machdep.h
+pl_2.o: player.h externs.h machdep.h
+pl_3.o: player.h externs.h machdep.h
+pl_4.o: player.h externs.h machdep.h
+pl_5.o: player.h externs.h machdep.h
+pl_6.o: player.h externs.h machdep.h
+pl_7.o: player.h externs.h machdep.h
+dr_main.o: driver.h externs.h machdep.h
+dr_1.o: driver.h externs.h machdep.h
+dr_2.o: driver.h externs.h machdep.h
+dr_3.o: driver.h externs.h machdep.h
+dr_4.o: externs.h machdep.h
+dr_5.o: externs.h machdep.h
+lo_main.o: externs.h machdep.h
+assorted.o: externs.h machdep.h
+game.o: externs.h machdep.h
+globals.o: externs.h machdep.h
+misc.o: externs.h machdep.h
+parties.o: externs.h machdep.h
+sync.o: externs.h machdep.h