DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: M T

⟦2cc3e90d3⟧ TextFile

    Length: 2083 (0x823)
    Types: TextFile
    Names: »Makefile«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Dots/Makefile« 

TextFile

#
# 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.  Since
# then, it has been ported to 4.2BSD and won't work under any thing else
# altho porting it shouldn't be hard -- just ifdef out the socket stuff.
#
# Installation is so easy that there's no need for a README or anything,
# just edit dots.h and change some of the constants to whatever pathnames
# you'd like them to be.  Also note DESTDIR here.
#
# 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

CFLAGS=	-O
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

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}
	rm -f ${DESTDIR}/lib/dots
	mkdir ${DESTDIR}/lib/dots
	cp dots.doc ${DESTDIR}/lib/dots
	cp /dev/null ${DESTDIR}/lib/dots/dots.scores
	chmod 777 ${DESTDIR}/lib/dots.scores

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