extract architecture independent gen.c
[neatcc/cc.git] / neatcc
blob1f838994bcae2d0550f828db908480bce163fd47
1 #!/bin/sh
2 NEAT="/path/to/neatlibc"
3 CC="/path/to/neatcc/ncc"
4 LD="/path/to/neatld/nld"
6 CPPFLAGS="-Dfloat=long -Ddouble=long -D__extension__="
8 for x in $*
9 do
10 if [ "$x" == "-c" ]
11 then
12 exec ${CC} ${CPPFLAGS} -I${NEAT} $*
14 done
16 exec ${LD} $* ${NEAT}/start.o ${NEAT}/libc.a