home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
GAMES
/
infocom_src.lha
/
Makefile
< prev
next >
Wrap
Makefile
|
1993-07-15
|
4KB
|
104 lines
-bo
******************************************************************************
**
** Infocom -- MakeFile
**
SDIR = /H1/PROJECT/INFOCOM # Directory where source files can be found
ODIR = /R0 # Directory where output files are to be kept
LIB = /DD/LIB # Directory where library files can be found
DDIR = /DD/DEFS # Directory where .h files can be found
RDIR = /H2/RELS/INFOCOM # Directory where .r files are to be kept
TDIR = /R0 # Directory where temp files are to be kept
CC = gcc # Use GCC
CDEBUG = -mnostack-check -fomit-frame-pointer # Debug flags
#CDEBUG = -DDEBUG -g -w # Debug flags
CINCL = # Extra header file dir
COPTS = -DKWINDOWS -DRCFILE=".infocomrc" # Compiler options
COPTMZ1 = -o68 -O -fstrength-reduce -fforce-mem # Compiler optimization
COPTMZ2 = -fcombine-regs -fdefer-pop # Compiler optimization
COPTMZ = $(COPTMZ1) $(COPTMZ2) # Compiler optimization
#COPTMZ = # Compiler optimization
CFLAGS = $(CDEBUG) $(COPTS) $(COPTMZ) $(CINCL) # All flags together
ASM = r68 # Assembler program
AFLAGS = -q # Assembler flags
LMODULE = -e=1 -p=0555 # Module settings
LOPTS = # Link options
LLIBS = -L$(LIB)/GCC -L$(LIB)/USR # More lib dirs
LFLAGS = $(LOPTS)
P2C = p2c # Pascal preprocessor
STDLIBS = -l=$(LIB)/GCC/gnulib.l -l=$(LIB)/clibn.l -l=$(LIB)/math.l -l=$(LIB)/usr.l
CPPLIBS = -l=$(LIB)/GCC/libgpp.l -l=$(LIB)/GCC/gpp.l # C++ libraries
CIO = -l=$(LIB)/cio.l # Use CIO
CGFX = -l=$(LIB)/USR/cgfx.l # Graphic routines
PLIB = -l=$(LIB)/P2C/libp2c.l # Pascal (p2c)
RAND = -l=$(LIB)/USR/rand.l # Random numbers
CURSES = -l=$(LIB)/USR/effocurses.l # Curses
#CURSES = -l=$(LIB)/USR/ncurses.l # Curses
TERMCAP = -l=$(LIB)/termlib.l # Termcap
BLARSLIB= -l=$(LIB)/USR/blarslib.l # B.Larson Unix stuff
OS9LIB = -l=$(LIB)/USR/os9lib.l # OS9 Unix stuff
OFLAGS = $(CPPLIBS) # "Collect" (GPP) flags
*----------------------------------------------------------------------------*
OBJECTS = enhanced.r file.r fns.r globals.r infocom.r init.r input.r\
interp.r io.r jump.r message.r object.r options.r\
page.r plus_fns.r print.r property.r status.r\
support.r variable.r
infocom: $(OBJECTS)
chd $(RDIR);\
l68 $(LIB)/cstart.r $(OBJECTS) $(RAND) $(CGFX)\
$(STDLIBS) -g -M=13k -a -e=1 -p=0555 -o=$(ODIR)/$@
.infocomrc: makefile
@echo "* Default initialization file for UNIX machines" >-$@
@echo "* This overrides the number of screen rows" >+$@
@echo "* height 25" >+$@
@echo "* This overrides the number of screen columns" >+$@
@echo "* width 80" >+$@
@echo "* This allows use of ANSI save/restore cursor features" >+$@
@echo "* save" >+$@
@echo "* Attributes are specified in this order:" >+$@
@echo "* normal, inverse, bold, inverse&bold, underline, inverse&underline," >+$@
@echo "* bold&underline, inverse&bold&underline" >+$@
@echo "* The following attributes may be specified:" >+$@
@echo "* normal, high, low, italic, underline, blink, fastblink, reverse" >+$@
@echo "* f_black, f_red, f_green, f_yellow, f_blue, f_magenta, f_cyan, f_white" >+$@
@echo "* b_black, b_red, b_green, b_yellow, b_blue, b_magenta, b_cyan, b_white" >+$@
@echo "* Not all attributes may be supported" >+$@
@echo "attr b_blue f_white" >+$@
@echo "attr b_white f_blue" >+$@
@echo "attr b_blue f_white high" >+$@
@echo "attr b_white f_white high" >+$@
@echo "attr b_blue f_red blink" >+$@
@echo "attr b_white f_red" >+$@
@echo "attr b_blue f_red high" >+$@
@echo "attr b_white f_red high" >+$@
cleantdir: always
@dir $(TDIR) >-$(TDIR)/mydir
del $(TDIR)/*
*----------------------------------------------------------------------------*
.c.r:
$(CC) $*.c -c -o $(RDIR)/$*.r $(CFLAGS)
.c.a:
$(CC) $*.c -c -o $(TDIR)/$*.a $(CFLAGS) -S
.a.r:
r68 $*.a -o=$(RDIR)/$*.r $(AFLAGS)
.p.r:
$(P2C) $*.p -v -o $(TDIR)/$*.c #16k
$(CC) $(TDIR)/$*.c -c -o $(RDIR)/$*.r $(CFLAGS)
$(OBJECTS): infocom.h machine.h #makefile