shithub: bin.rc

ref: 25f9e2963d99c77c9c6c259820474c89076e0921
dir: /bin/cc/

View raw version
#!/bin/rc

rfork e

O=`{sed 's/^O=//; t end; D; :end; q' /$objtype/mkfile}
CFLAGS=`{sed 's/^CFLAGS=//; t end; D; :end; q' /sys/src/mkfile.proto}

$O^c $CFLAGS $1.c && $O^l -o $1 $1.$O