shithub: bin.rc

ref: 3c724f5a03ba3846bce90e0fbc11e4f4e5b5e09a
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