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

⟦5f22bcc4b⟧ TextFile

    Length: 4151 (0x1037)
    Types: TextFile
    Names: »Makefile«

Derivation

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

TextFile

#!/bin/make -f
# Makefile for wanderer - modified by Bill Randle 6/30/88
# completely re-written by Mike Cuddy (ihnp4!convex!cuddy) 7-22-88
#
# GOALS: the programs you want to make
#
GOALS = wanderer xwanderer dev xdev erase icon_fonts
#GOALS = xwanderer icon_fonts
# 
# HEADERS: the header files 
#
HEADERS= wand_head.h
#
# CUR_OBJS: the object files for the curses based wanderer
# XWIN_OBJS: object files for the X based wanderer
# DEV_OBJS: object files for the curses base dev. utility
# ERASE_OBJS: object files for the erase utility
# 
CUR_OBJS =  displayC.o fallC.o gameC.o iconC.o jumpC.o mC.o read.o scoresC.o \
	    helpscrC.o
XWIN_OBJS = displayX.o fallX.o gameX.o iconX.o jumpX.o mX.o read.o scoresX.o \
	    helpscrX.o
DEV_OBJS=   displayC.o iconC.o gameD.o mD.o fallC.o devread.o helpscrC.o
XDEV_OBJS=  displayX.o iconX.o gameXD.o mXD.o fallX.o devread.o helpscrX.o
ERASE_OBJS= erase.o
SRCS=	    devread.c display.c erase.c fall.c game.c gamedev.c helpscr.c \
	    icon.c jump.c m.c pixmapdecl.h read.c scores.c wand_head.h 
#
# all of the object files
#
ALLOBJS = $(CUR_OBJS) $(XWIN_OBJS) $(DEV_OBJS) $(ERASE_OBJS)
#
# flags for the compiler
#
CFLAGS = -g -I/x11
# 
# libraries for an X based program
#
XLIBS= -lX11
#
#  libraries for a curses based program
#
CLIBS = -lcurses -ltermcap
#
#  quiet rm -- doesn't complain when files aren't there
#
RM=rm -f
#
# BINDIR:  where to put the executables
# SCREENPATH: where to put the screens (see wand_head.h also)
#
BINDIR=/usr/local/bin
SCREENPATH= /usr/local/lib/wanderer/wanderer

all:	$(GOALS)
	@echo DONE

wanderer:	$(CUR_OBJS)
	$(CC) $(CFLAGS) -o wanderer $(CUR_OBJS) $(CLIBS)

xwanderer:	$(XWIN_OBJS)
	$(CC) $(CFLAGS) -o xwanderer $(XWIN_OBJS) $(XLIBS)

erase:		$(ERASE_OBJS) 
	$(CC) $(CFLAGS) -o erase $(ERASE_OBJS) 

dev:		$(DEV_OBJS) 
	$(CC) $(CFLAGS) -o dev $(DEV_OBJS) $(CLIBS)
xdev:		$(XDEV_OBJS) 
	$(CC) $(CFLAGS) -o xdev $(XDEV_OBJS) $(XLIBS)

install:	$(GOALS)
	cp $(GOALS) $(BINDIR)
	@mkdir $(SCREENPATH)
	cp screens/* $(SCREENPATH)
	cp wanderer.help $(SCREENPATH)

icon_fonts:
	cd icons; make

icon_clean:
	cd icons; make clean

dclean:	
	$(RM) $(DEV_OBJS)
xdclean:	
	$(RM) $(XDEV_OBJS)
wclean:	
	$(RM) $(CUR_OBJS)
xclean:	
	$(RM) $(XWIN_OBJS)

tags:		$(SRCS)
	ctags $(SRCS) 

clean:		dclean wclean xclean xdclean icon_clean
	$(RM) core make.out lint.out tags .#*

clobber:	clean
	$(RM) dev xdev wanderer xwanderer erase

#
# special multiple compile targets
#
displayC.o:	display.c $(HEADERS)
		cc -c display.c $(CFLAGS) -UXWANDER
		@mv display.o displayC.o
displayX.o:	display.c $(HEADERS)
		cc -c display.c $(CFLAGS) -DXWANDER
		@mv display.o displayX.o
fallC.o:	fall.c $(HEADERS)
		cc -c fall.c $(CFLAGS) -UXWANDER
		@mv fall.o fallC.o
fallX.o:	fall.c $(HEADERS)
		cc -c fall.c $(CFLAGS) -DXWANDER
		@mv fall.o fallX.o
gameC.o:	game.c $(HEADERS)
		cc -c game.c $(CFLAGS) -UXWANDER
		@mv game.o gameC.o
gameD.o:	game.c $(HEADERS)
		cc -c game.c $(CFLAGS) -DGAMEDEV
		@mv game.o gameD.o
gameXD.o:	game.c $(HEADERS)
		cc -c game.c $(CFLAGS) -DGAMEDEV -DXWANDER
		@mv game.o gameXD.o
gameX.o:	game.c $(HEADERS)
		cc -c game.c $(CFLAGS) -DXWANDER
		@mv game.o gameX.o
helpscrX.o:	helpscr.c $(HEADERS)
		cc -c helpscr.c $(CFLAGS) -DXWANDER
		@mv helpscr.o helpscrX.o
helpscrC.o:	helpscr.c $(HEADERS)
		cc -c helpscr.c $(CFLAGS) -UXWANDER
		@mv helpscr.o helpscrC.o
iconC.o:	icon.c $(HEADERS)
		cc -c icon.c $(CFLAGS) -UXWANDER
		@mv icon.o iconC.o
iconX.o:	icon.c $(HEADERS)
		cc -c icon.c $(CFLAGS) -DXWANDER
		@mv icon.o iconX.o
jumpC.o:	jump.c $(HEADERS)
		cc -c jump.c $(CFLAGS) -UXWANDER
		@mv jump.o jumpC.o
jumpX.o:	jump.c $(HEADERS)
		cc -c jump.c $(CFLAGS) -DXWANDER
		@mv jump.o jumpX.o
mC.o:		m.c $(HEADERS)
		cc -c m.c $(CFLAGS) -UXWANDER
		@mv m.o mC.o
mD.o:		m.c $(HEADERS)
		cc -c m.c $(CFLAGS) -DGAMEDEV 
		@mv m.o mD.o
mXD.o:		m.c $(HEADERS)
		cc -c m.c $(CFLAGS) -DGAMEDEV -DXWANDER
		@mv m.o mXD.o
mX.o:		m.c $(HEADERS)
		cc -c m.c $(CFLAGS) -DXWANDER
		@mv m.o mX.o
scoresC.o:	scores.c $(HEADERS)
		cc -c scores.c $(CFLAGS) -UXWANDER
		@mv scores.o scoresC.o
scoresX.o:	scores.c $(HEADERS)
		cc -c scores.c $(CFLAGS) -DXWANDER
		@mv scores.o scoresX.o