|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: M T
Length: 3097 (0xc19) Types: TextFile Names: »Makefile.xstr«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Phantasia/Makefile.xstr«
# Makefile for Phantasia 3.3 # # Use this makefile if you have 'xstr'. Use the other makefile if you don't. # # To create game: # # 1) Set up a directory where the game and its support files will live. # (It is suggested that the source be kept somewhere else.) # 2) Set up the variables in Makefile to reflect your particular situation. # 3) Check out ok_to_play() at the end of main.c if you want to include # code to restrict access at certain times. # 4) 'make install' and watch it fly. It is important to run 'setup' before # trying to run 'phantasia'. The install procedure does this for you. XSTR = /usr/ucb/xstr RM = -rm # Add '-ljobs' to LIBS if 4.1bsd; add -ltermlib if not SVR2 # LIBS = -lm -lcurses LIBS = -lm -lcurses -ltermlib # May need '-I/usr/include/sys' for 4.2bsd CFLAGS = -O # DEST is where the program and its support files reside DEST = /usr/games/lib/phantasia # The following are program constants which are implementation dependent. # # PATH is the same as $DEST. # WIZARD is the login of the one who will clean up things. # UID is the uid of game wizard. # RAND is one more than the largest number generated by rand(). # Possible values for this are: # 32768.0 (for 15 bit rand()) # 65536.0 (for 16 bit rand()) # 2147483648.0 (for 31 bit rand()) # ACCESS is fopen() access to open a file for writing, but no # clearing the file, e.g. "a", or "r+". (Use "r+" if you have it.) # define OK_TO_PLAY to restrict playing access. Also see function ok_to_play() # in main.c, and tailor to your own needs. # define ENEMY to include code for checking of a 'hit list' of resricted # accounts. The list of logins goes in the file 'enemy'. # define BSD41 for 4.1bsd # define BSD42 for 4.2bsd # define SYS3 for System III, or similar # define SYS5 for System V # define SMALL to save a little space (omits wormholes) # If you don't have 'strchr()', put '-Dstrchr=index' below. FLAGS = -DPATH=\"${DEST} \ -DWIZARD=\"aeb\" \ -DUID=193 \ -DRAND=2147483648.0 \ -DACCESS=\"r+\" \ -DOK_TO_PLAY \ -DENEMY \ -DBSD42 \ -Dstrchr=index OFILES = main.o fight.o func0.o func1.o func2.o func3.o all: phantasia setup phant.help # need separate i/d space on small machines phantasia: ${OFILES} strings.o pathdefs.o ${CC} ${OFILES} strings.o pathdefs.o ${LIBS} -o phantasia ${OFILES}: phant.h ${CC} -E ${CFLAGS} ${FLAGS} $*.c | ${XSTR} -c - ${CC} -c ${CFLAGS} x.c mv x.o $*.o pathdefs.o: phant.h ${CC} -c ${CFLAGS} ${FLAGS} pathdefs.c strings.o: strings ${XSTR} ${CC} -c xs.c mv xs.o strings.o setup: setup.c phant.h pathdefs.o ${CC} ${CFLAGS} ${FLAGS} setup.c -o setup pathdefs.o -lm lint: lint ${CFLAGS} ${FLAGS} func?.c main.c fight.c pathdefs.c ${LIBS} # the flags below on tbl and nroff are to make a line printable version phant.help: phant.nr tbl -TX phant.nr | nroff -man -Ttn300 > phant.help install: all cp phantasia monsters phant.help ${DEST} chmod 755 ${DEST} chmod 4711 ${DEST}/phantasia chmod 644 ${DEST}/phant.help setup clean: ${RM} -f *.o phantasia phant.help strings x.c xs.c