aboutsummaryrefslogtreecommitdiff
path: root/unix/boot/spp/xpp/mkpkg.sh
blob: d6972000eebf9085de370926fa8b2e4294bf3e73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Make the first pass (XPP) of the SPP language compiler.

find xpp.l -newer lexyy.c -exec rm lexyy.c \;
if test -f lexyy.c; then\
    $CC -c $HSI_CF lexyy.c;\
else\
    lex	xpp.l;\
    sed -f lex.sed lex.yy.c > lexyy.c;  rm lex.yy.c;\
    $CC -c $HSI_CF lexyy.c;\
fi

$CC -c $HSI_CF	xppmain.c xppcode.c decl.c
$CC $HSI_LF	xppmain.o lexyy.o xppcode.o decl.o $HSI_LIBS -o xpp.e
mv -f		xpp.e ../../../hlib
rm		*.o