4
# create subdirectories holding generated files if they don't exist
5
for subdir in img gen inc prj ; do
6
[ -d ${subdir} ] || mkdir ${subdir}
9
INCLUDES="-I./inc -I${prefix}/include"
11
# For static linking, you may need to uncomment these 2 lines
13
# LIBS="-ldl -lrt -lpthread"
15
#destination directory for parser and scanner table image files
17
#destination directory for parser and scanner table and term interface source files
19
#source directory of language specification file
22
export BINSTYX GENSTYX SPESTYX
25
styx calc -makeC -makeINT -verbose
27
#create header files for generated c-sources
28
ctoh -ct -CPATH=./gen -HPATH=./inc -PRJ=./prj
30
#compile sources to program 'calctut'
31
gcc ${CFLAGS} ${INCLUDES} ${LDFLAGS} \
32
calctut.c ./gen/calc_pim.c ./gen/calc_lim.c ./gen/calc_int.c \