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

⟦a26559eee⟧ TextFile

    Length: 1077 (0x435)
    Types: TextFile
    Names: »Makefile«

Derivation

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

TextFile

CFLAGS=-O -i
OFILES=user.o ulex.o move.o display.o hasmove.o fini.o \
	minmax.o score.o edges.o corners.o count.o
SOURCE= Makefile corners.c count.c display.c edges.c fini.c genedge.c \
	hasmove.c makeedge.y minmax.c move.c reversi.h score.c ulex.l user.y

reversi: $(OFILES)
	cc $(CFLAGS) -o reversi $(OFILES) -lcurses -ltermlib

reversi.shar: $(SOURCE)
	shar -c $(SOURCE) > reversi.shar

install: reversi
	install -s reversi /usr/games/othello

clean:
	rm -f *.o y.* genedge makeedge reversi makeedge.c user.c ulex.c edges.out

$(OFILES): reversi.h
user.o: user.c
user.c: user.y
	yacc -dv user.y
	mv y.tab.c user.c
ulex.o: ulex.c
ulex.c: ulex.l
	lex ulex.l
	mv lex.yy.c ulex.c
corners.o: corners.c
	$(CC) $(CFLAGS) -R -c corners.c

edges.o: edges.c edges.out
	$(CC) $(CFLAGS) -R -c edges.c
edges.out: makeedge genedge
	genedge | makeedge > edges.out
makeedge: makeedge.o
	$(CC) $(CFLAGS) -o makeedge makeedge.o
makeedge.o: makeedge.c
makeedge.c: makeedge.y
	yacc makeedge.y
	mv y.tab.c makeedge.c
genedge: genedge.o
	$(CC) $(CFLAGS) -o genedge genedge.o
genedge.o: genedge.c