home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
TOP
/
USR
/
SRC
/
scpp.t.Z
/
scpp.t
/
makefile
< prev
next >
Wrap
Makefile
|
2009-11-06
|
1KB
|
47 lines
# Makefile for the selective C preprocessor, scpp.
#
# Copyright (c) 1985 by
# Tektronix, Incorporated Beaverton, Oregon 97077
# All rights reserved.
#
# Permission is hereby granted for personal, non-commercial
# reproduction and use of this program, provided that this
# notice and all copyright notices are included in any copy.
CC = cc
DEFS=
CFLAGS= -ix -t=/r0 $(DEFS)
HDRS= scpp.h
SOURCES= ctrl.c io.c lex.l parse.y scpp.c
OBJECTS= ctrl.r io.r lex.r parse.r scpp.r
#all: scpp scpp.cat
scpp: $(OBJECTS)
$(CC) $(CFLAGS) -fd=scpp $(OBJECTS) -l=/h0/lib/lex.l -g
#scpp.cat: scpp.1
# nroff -man scpp.1 >scpp.cat
scpp.r: scpp.c y.tab.h scpp.h
ctrl.r: ctrl.c y.tab.h scpp.h
io.r: io.c scpp.h
lex.r: lex.c y.tab.h scpp.h
parse.r: parse.c scpp.h
lex.c: lex.l
lex lex.l
sed -e '/yylex/s//xxlex/g' <lex.yy.c >lex.c
del lex.yy.c
y.tab.h parse.c: parse.y
yacc -d parse.y
copy y.tab.c parse.c -r;del y.tab.c
#clean:
# -rm -f lex.yy.c lex.c y.tab.c y.tab.h y.output parse.c
# -rm -f $(OBJECTS)
#
#tags: $(SOURCES)
# ctags $(SOURCES)
#mail:
# shar -a scpp.1 Makefile lex.l ctrl.c interp io.c >scpp.shar1
# shar -a parse.y scpp.c scpp.h >scpp.shar2