home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
MM1
/
TELECOM
/
vt100.lha
/
makefile
next >
Wrap
Makefile
|
1993-06-10
|
2KB
|
68 lines
-bo
******************************************************************************
**
** C Programs -- MakeFile
**
SDIR = /H1/USER/BRIAN/C # Directory where source files can be found
ODIR = /R0 # Directory where output files are kept
LIB = /DD/LIB # Directory where library files are kept
RDIR = /H2/RELS/BRIAN/C # Directory where .r files are to be kept
TDIR = /R0 # Directory where temp files are kept
CC = gcc -c # Use GCC
CDEBUG = -fomit-frame-pointer -mnostack-check # Debug flags
#CDEBUG = -DDEBUG -g -W # Debug flags
CINCL = # Extra header file dir
COPTS = # 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 -v # Pascal proprocessor
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
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" flags
*----------------------------------------------------------------------------*
vt100: vt100.r
l68 $(LIB)/cstart.r $(RDIR)/$*.r $(STDLIBS) \
-e=1 -p=0555 -o=$(ODIR)/$@
cleantdir: always
@dir $(TDIR) >-$(TDIR)/mydir
del $(TDIR)/*
*----------------------------------------------------------------------------*
.c.r:
$(CC) $*.c -o $(RDIR)/$*.r $(CFLAGS)
.c.a:
$(CC) $*.c -o $(TDIR)/$*.a $(CFLAGS) -S
.a.r:
r68 $*.a -o=$(RDIR)/$*.r
vt100.r: vt100.c