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

⟦cb94b5dc6⟧ TextFile

    Length: 1975 (0x7b7)
    Types: TextFile
    Names: »Makefile«

Derivation

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

TextFile

#
# Makefile for qix.
# 1988 (c) Dan Heller <island!argv@sun.com>
# To compile for X11, have CFLAGS have "-DX11" in it and "make xqix"
# To compile for Sunview, don't have -DX11 and type "make qix"
#
CFILES= main.c joystick.c sparks.c regions.c qmove.c polyfill.c \
	polygon_area.c polyfill_rec.c score.c
OBJS= main.o joystick.o sparks.o regions.o qmove.o polyfill.o score.o
REC_OBJS= main.o joystick.o sparks.o regions.o qmove.o \
	polygon_area.o polyfill_rec.o
ICONS= joystick.lf joystick.rt joystick.up joystick.dn joystick.stop \
	spark1.pr spark2.pr spark3.pr spark4.pr marker.cursor qix.icon \
	mouse.rt.icon
XICONS= jstick.dn.xbm jstick.lf.xbm jstick.rt.xbm jstick.stop.xbm \
	jstick.up.xbm pen.xbm mse.lf.gr.xbm mse.lf.xbm \
	mse.mid.gr.xbm mse.mid.xbm mse.rt.icon.xbm spark1.pr.xbm \
	spark2.pr.xbm spark3.pr.xbm spark4.pr.xbm
MISC= README qix.man qix.h patchlevel.h

#	Change these to suit your installation
SCOREFILE=/usr/games/lib/qix.scores
BINDIR=/usr/games

CFLAGS= -O -DX11 -DDEBUG
LDFLAGS= -g
LIBS= -lsuntool -lsunwindow -lpixrect
XLIBS= -lX11

xqix: $(OBJS)
	@echo loading...
	@cc ${LDFLAGS} ${OBJS} ${XLIBS} -o xqix

qix:	${OBJS}
	@echo loading...
	@cc ${LDFLAGS} ${OBJS} ${LIBS} -o qix

install: qix
	install -s -c -m 2711 -o games -g games qix ${BINDIR}
	touch ${SCOREFILE}
	chmod 660 ${SCOREFILE}
	-chgrp games ${SCOREFILE}
	-chown games ${SCOREFILE}

score.o:
	cc $(CFLAGS) -DSCOREFILE=\"${SCOREFILE}\" -c score.c

# qix with a recursive polygon file rather than iterative.
# If you use it you have to unlimit the stacksize in csh
# and check the code to make sure it's called right (it's old).
# (not for X11)
qrec: ${REC_OBJS}
	@echo loading...
	@cc ${LDFLAGS} ${REC_OBJS} ${LIBS} -o qrec

tarmail : ;  tar fcv - Makefile ${MISC} ${CFILES} ${ICONS} ${XICONS} | \
	compress | btoa > qix.tarmail

shar: ; shar Makefile ${MISC} ${CFILES} ${ICONS} ${XICONS} > qix.shar

clean:
	rm -f qix $(OBJS) core errs

lint:
	lint -hbx $(CPPFLAGS) $(CFILES) $(LIBS)