home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 2
/
FFMCD02.bin
/
new
/
dev
/
misc
/
p2c
/
gcc
/
pcompile.gcc
< prev
next >
Wrap
AmigaDOS Script File
|
1993-12-21
|
313b
|
25 lines
.key source/a,dest/a
.bra {
.ket }
FailAt 21
P2C {source} -a -o t:P2Ctmpfile.c
IF ERROR
QUIT 20
ENDIF
;insert the compiler options you want
gcc -O2 t:P2Ctmpfile.c -lp2c -o {dest}
IF ERROR
delete >NIL: t:P2Ctmpfile.c
echo "Fatal error: could not compile."
QUIT 20
ENDIF
delete >NIL: t:P2Ctmpfile.c