6
.SOURCE.h : ../ast /home/erg/src/gviz/build/sgi.mips3/include
8
CCFLAGS = $(CC.OPTIMIZE) $(CC.SUFFIX.DYNAMIC:@?$(CC.DLL)??)
10
/* NOTE: -o mam bug in -I for exparse.c if exparse.y not first */
12
expr 2.0 :LIBRARY: RELEASE expr.h exlib.h exgram.h exparse.y \
13
excc.c excontext.c exdata.c exeval.c exexpr.c \
14
exerror.c exopen.c exrewind.c extoken.c extype.c \
17
if CC.HOSTTYPE == "*.i386" || "$(-mam)" == "static*"
18
exeval.o : .CC.NOOPTIMIZE
23
echo "static const char* exop[] = {"
24
$(SED) -e '/^[ ]*#[ ]*define[ ][ ]*[A-Z]/!d' -e 's/^[ ]*#[ ]*define[ ]*\([A-Z0-9_]*\).*/ "\1",/'
28
$(INCLUDEDIR) :INSTALLPROTO: expr.h
30
$(INCLUDEDIR) :INSTALLDIR: exparse.h
35
* NOTE: the solaris yacc botches the yyact[] indices (large positive)
38
YACC.BOTCH.PATTERN = ',[0-9][0-9][0-9][0-9][0-9]*,'
40
YACC.BOTCH.FIX : .VIRTUAL .FORCE .AFTER
41
if $(GREP) -c $(YACC.BOTCH.PATTERN) $(<<:N=*.c) >/dev/null
42
then : $(YACC) is botched : yyact indices are bogus :
43
$(CP) $(<<:N=*.c:/^/O/:T=F) $(<<:N=*.c)
44
$(CP) $(<<:N=*.h:/^/O/:T=F) $(<<:N=*.h)
45
else for i in $(<<:N=*.h) $(<<:N=*.c)
47
/* : : generated by a yacc that works -- solaris take note : : */' -e '/^[ ]*#[ ]*[il][di][en][ne][t]*[ ]["0-9].*/s,,/* & */,' -e '/^[ ]*#[ ]*include[ ]*"exlib\.h"/i\
49
#define gettxt(h,t) (t)\
54
%.c %.h : %.y YACC.BOTCH.FIX
56
:SAVE: Oexparse.c Oexparse.h