home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
games
/
volume2
/
dots2
/
Makefile
< prev
next >
Wrap
Makefile
|
1987-09-18
|
3KB
|
89 lines
#
# Makefile for dots
#
# Dots and Boxes -- the program for UNIX was programmed by Dan Heller and
# Don Hatch Spring, 1984 with further developments continually.
# Sockets Implemented by Dan Heller in May, 1985.
#
# This program was originally written on a PDP-11 under UNIX V7.
#
# If you are on a berkeley unix system, then you should have -DBSD defined
# below and use the appropriate OBJS (see notes below). If you are using
# a system-V unix then you should define -DSYSV and use those OBJS.
#
# Installation is so easy that there's no need for a README or anything,
# Be sure to edit dots.h and change some of the constants to whatever
# pathnames you'd like them to be and note VPRINTF and DESTDIR are defined
# here.
#
# Rules for defining VPRINTF:
# 1) you are a system-v (xenix or otherwise) machine.
# 2) you are on a sun running 3.0 or higher.
# DO NOT define VPRINTF if you are on a vax or running 4.[23] or something.
# If you are unsure, try:
# % ar t /lib/libc.a | grep vprintf
# If you don't get output, you don't have it. If you do have it, you'll
# get several lines of output (vprintf.o vsprintf.o).
#
# This code is intended for public consumption and modifications are
# enoucraged. If you do make mods, I'd love to hear about them and
# include in later releases (interest providing).
#
# Since everything includes dots.h a make depend is senseless. If you
# make changes to defines, grep the files to note which are affected
# and remake them. If you change variables, use grep on .c files or use
# "nm" on the .o files to find which files use them.
#
# The file "dots.doc" has more information on how to play.
#
# comments, etc... to: Dan Heller
# island!argv@sun.com argv@spam.istc.sri.com
#
# Thanx to Jay Libove for his port to XENIX (System-V)
# Thanx to Bruno Wolff for general bug fixes.
# for xenix systems or (hopefully) any sys-v unix, use these CFLAGS and LDFLAGS
# CFLAGS= -O -DSYSV -Ml -DVPRINTF
# LDFLAGS= -s -Ml
# BSD systems should use these CFLAGS and LDFLAGS
CFLAGS= -O -DBSD
LDFLAGS= -s
DESTDIR= /usr/games
LINTFLAGS= -bxah -Dlint
LIBES = -lcurses -ltermlib
PROG=dots
SRCS=main.c comp.c comp2.c board.c person.c misc.c menu.c save.c score.c \
sockt.c findem.c
# SYSV (xenix) *do not* use sockt.o and findem.o -- BSD systems *do use* them.
# OBJS=main.o comp.o comp2.o board.o person.o misc.o menu.o save.o score.o
OBJS=main.o comp.o comp2.o board.o person.o misc.o menu.o save.o score.o \
sockt.o findem.o
${PROG}: ${OBJS}
@echo Loading...
@cc ${LDFLAGS} ${OBJS} ${LIBES} -o ${PROG}
install: ${PROG}
/bin/mv ${PROG} ${DESTDIR}/${PROG}
chmod 711 ${DESTDIR}/${PROG}
tags:
ctags dots.h ${SRCS}
clean:
rm -f core ${OBJS} ${PROG}
lint:
lint ${LINTFLAGS} ${SRCS}
tar:
tar fcv DOTS Makefile dots.h $(SRCS) tags
shar:
shar Makefile dots.doc dots.h $(SRCS) > dots.shar