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

⟦d609f0a95⟧ TextFile

    Length: 2548 (0x9f4)
    Types: TextFile
    Names: »Makefile«

Derivation

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

TextFile

# static char sccsid[] = "@(#)Makefile	1.2";
CC = cc
DESTDIR = /global/bin/X11
XTREKDIR = /global/games/lib/xtrek
XTREKOWNER = mikew

.SUFFIXES: .ln

LINTFLAGS = -iabchu
LINTLIBS = -lX11
.c.ln:
	lint $(LINTFLAGS) $< > $*.p1 2>&1

R_OBJS =	bitmaps.o colors.o coup.o data.o death.o detonate.o dmessage.o \
		enter.o getship.o inform.o input.o interface.o main.o \
		newwin.o orbit.o phaser.o planetlist.o playerlist.o \
		pstats.o redraw.o smessage.o subdaemon.o stats.o torp.o \
		util.o warning.o random.o rmove.o scorelist.o \
		sintab.o trigtab.o itoa.o minisubs.o war.o DBG.o

LINT_FILES =	colors.ln coup.ln data.ln death.ln detonate.ln dmessage.ln \
		enter.ln getship.ln inform.ln input.ln interface.ln main.ln \
		newwin.ln orbit.ln phaser.ln planetlist.ln playerlist.ln \
		pstats.ln redraw.ln smessage.ln subdaemon.ln stats.ln torp.ln \
		util.ln warning.ln random.ln rmove.ln \
		sintab.ln scorelist.ln trigtab.ln itoa.ln bitmaps.ln \
		minisubs.ln war.ln

LIBS = -L/global/lib -lX11 -lm

# Use -DSUN40 if Sun Release 4.0 or greater
#CFLAGS = -DSUN40
CFLAGS = -I/global/include

all: in.xtrekd xtrek scores xtrek.snf

in.xtrekd: $(R_OBJS)
	${CC} $(CFLAGS) -o $@ $(R_OBJS) $(LIBS)

xtrek: xtrek.c
	${CC} $(CFLAGS) -o $@ xtrek.c

scores: scores.c
	${CC} $(CFLAGS) -o $@ scores.c

xtrek.snf: xtrek.bdf
	bdftosnf -t xtrek.bdf > xtrek.snf
	
bitmaps.h:	bitmaps.c
	echo "/* DO NOT EDIT THIS FILE. It is machine generated. */" > bitmaps.h
	sed -e 's/;$$/;`/' < bitmaps.c | tr '\012;' '@\012' | \
		sed -e 's/ =.*$$/;@/g' | tr '@`' '\012;' >> bitmaps.h

install: xtrek in.xtrekd
	-mv $(DESTDIR)/xtrek $(DESTDIR)/xtrek.old
	cp xtrek $(DESTDIR)
	chmod 711 $(DESTDIR)/xtrek
	chown $(XTREKOWNER) $(DESTDIR)/xtrek
	-mv $(XTREKDIR)/in.xtrekd $(XTREKDIR)/in.xtrekd.old
	cp in.xtrekd $(XTREKDIR)
	chmod 711 $(XTREKDIR)/in.xtrekd
	chown $(XTREKOWNER) $(XTREKDIR)/in.xtrekd
	touch $(XTREKDIR)/.planets $(XTREKDIR)/.motd
	touch $(XTREKDIR)/scores.dir $(XTREKDIR)/scores.pag
	chown $(XTREKOWNER) $(XTREKDIR)/.planets $(XTREKDIR)/.motd
	chown $(XTREKOWNER) $(XTREKDIR)/scores.dir $(XTREKDIR)/scores.pag
	chmod 600 $(XTREKDIR)/.planets $(XTREKDIR)/.motd
	chmod 644 $(XTREKDIR)/scores.dir $(XTREKDIR)/scores.pag
	cp doc $(XTREKDIR)/xtrek.doc
	chmod 444 $(XTREKDIR)/xtrek.doc
	chown $(XTREKOWNER) $(XTREKDIR)/xtrek.doc

lint: $(LINT_FILES)
	lint $(LINTLIBS) *.ln > foo.lint 2>&1

clean:
	-rm -f *.o core a.out in.xtrekd xtrek scores xtrek.snf bitmaps.h

shar:
	makekit -oMANIFEST READ* TODO xtrek.6 Makefile doc *.h *.c xtrek.bdf clock.bitmap

newwin.o: bitmaps.h