shithub: bin.rc

ref: 2b61ac07407f664888705b5584b0ff04afb1dcda
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