#!/bin/sh
# the one below gives a segmentation error when compiled with -O
testcompiler  ../isrce/rs6p104.i map,maxwork,maxdict
testcompiler  ../isrce/rs6p206.1.i map,maxwork,maxdict
testcompiler  ../isrce/rs6p304.i map,maxwork,maxdict
testcompiler  ../isrce/rs6p422.i map,maxwork,maxdict
testcompiler  ../isrce/ftncomp65.5c.i map,maxwork,maxdict
# the one below does not compile from inside an exec script,
# but does work if you issue this command by hand before
# running this script
# later note: not if maxdict is given!
#testcompiler  ../isrce/cserv.i map,list
gcc -Wall -g -c celfput17.6.c
gcc -Wall -g -c cprocs08.2.c
gcc -Wall -g -c eprocs15.1.c
gcc -Wall -g -c mprocs18.1.c
gcc -Wall -g -c bprocs20.c
gcc -Wall -g -c p5procs06.5.2.c
gcc -Wall -g -c p5rprocs4.c
gcc -Wall -g -c p5code05.6.c
gcc -Wall -g -c impsup.c
gcc -Wall -g -c dum.c
gcc -Wall -g -c getstat1.c
gcc -o testcompiler  ../csrce/rs6p104.o ../csrce/rs6p206.1.o \
	../csrce/rs6p304.o ../csrce/rs6p422.o ../csrce/ftncomp65.5c.o \
	../csrce/cserv.o ./celfput17.6.o ./cprocs08.2.o ./eprocs15.1.o \
	./mprocs18.1.o ./bprocs20.o ./p5procs06.5.2.o ./p5rprocs4.o \
	./p5code05.6.o ./impsup.o ./dum.o ../implib/bmove.o \
	../csrce/getstat1.o /usr/lib/libimp2.a
ls -l testcompiler
