shithub: bin.rc

ref: c240c428481aa4cd9aadeb95833161b52efc1e96
dir: /bin/cc/

View raw version
#!/bin/rc -e
rfork e

. /$objtype/mkfile

while(~ $1 -* && ! ~ $1 --){
	CFLAGS=($CFLAGS $1)
	shift
}
if(~ $1 --) shift

$CC $CFLAGS $1.c
$LD -o $1 $1.$O