home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
EFFO
/
pd7.lzh
/
SRC
/
makefile
< prev
next >
Wrap
Makefile
|
1990-05-06
|
3KB
|
117 lines
# Specify the name of the program.
# All documentation and installation keys on this value.
#
name=sc
NAME=SC
# This is where the install step puts it.
EXDIR=/dd/cmds
# This is where the man page goes.
MANDIR=/usr/man/man1
# Set SIMPLE for lex.c if you don't want arrow keys or lex.c blows up
#SIMPLE=-DSIMPLE
SIMPLE=
# Set INTERNATIONAL if you need 8 bit characters. You should
# not set this if you are running 5.3.0. I think it is OK in 5.3.1.
INTERNATIONAL=-DINTERNATIONAL
#INTERNATIONAL=
# Set SIGVOID if signal routines are type void. System 5.3, VMS and ANSI C
# Compliant systems use this. Most BSD systems do not.
#SIGVOID=-DSIGVOID
SIGVOID=
# This is the name of a pager like "more" If the line is commented out
# then "more" will be used. "pg" may be appropriate for SYSV
#PAGER=-DDFLT_PAGER="less"
PAGER=
# Use this for system V.2
# CFLAGS= -O -DSYSV2 $(SIGVOID)
# LDFLAGS=
# LIB=-lm -lcurses -lPW
# Use this for system V.3
# CFLAGS= -O -DSYSV3 -DSIGVOID
# LDFLAGS=
# LIB=-lm -lcurses -lPW
# Use this for BSD 4.2
#CFLAGS= -O -DBSD42 $(SIGVOID)
#LDFLAGS=
#LIB=-lm -lcurses -ltermcap
# Use this for BSD 4.3
#CFLAGS= -O -DBSD43 $(SIGVOID)
#LDFLAGS=
#LIB=-lm -lcurses -ltermcap
# Use this for system III (XENIX)
#CFLAGS= -O -DSYSIII $(SIGVOID)
#LDFLAGS= -i
#LIB=-lm -lcurses -ltermcap
# Use this for VENIX
#CFLAGS= -DVENIX -DBSD42 -DV7 $(SIGVOID)
#LDFLAGS= -z -i
#LIB=-lm -lcurses -ltermcap
# Use this for OSK
CFLAGS= -t=/r0 -qix $(SIMPLE) $(INTERNATIONAL) $(PAGER)
LDFLAGS= $(CFLAGS) -fd=sc -M=20K
LIB= -l=/dd/lib/os9lib.l -l=/dd/lib/curses.l -l=/dd/lib/termlib.l
RDIR=rels
#YACC=bison
YACC=yacc
CC=cc
# All of the source files
SRC=sc.h sc.c lex.c gram.y interp.c crypt.c xmalloc.c cmds.c range.c help.c \
eres.sed sres.sed Makefile psc.c
# The objects
#OBJS=sc.r interp.r cmds.r crypt.r xmalloc.r range.r help.r lex.r gram.r
OBJS=sc.r interp.r cmds.r xmalloc.r range.r help.r lex.r gram.r
# The documents in the Archive
DOCS=README CHANGES sc.doc psc.doc tutorial.sc VMS_NOTES BSD_BUGS
.md : $(name) p$(name)
@touch .md
install: $(name) p$(name)
copy $(name) p$(name) -rw=$(EXDIR)
gram.c: gram.y
$(YACC) -d gram.y; grep -v \23line y.tab.c >-gram.c
$(name): $(OBJS)
chd $(RDIR);$(CC) $(LDFLAGS) $(OBJS) $(LIB) -fd=../$(name)
p$(name): getopt.r psc.r
chd $(RDIR);$(CC) $(CFLAGS) -fd=../p$(name) psc.r getopt.r
experres.h: gram.y eres.sed
sed<gram.y >experres.h -f eres.sed
statres.h: gram.y sres.sed
sed < gram.y > statres.h -f sres.sed
clean:
-del $(RDIR)/*.r *res.h y.tab.h $(name) p$(name) gram.c\
$(name).stb $(name).dbg p$(name).stb p$(name).dbg
gram.r: sc.h
interp.r: interp.c sc.h
cmds.r: cmds.c sc.h
crypt.r: crypt.c sc.h
range.r: range.c sc.h
help.r: help.c sc.h
y.tab.h: gram.y
lex.r: sc.h y.tab.h experres.h statres.h
sc.r: sc.h sc.c