shithub: bin.rc

ref: 49c1ea83f5e42094b933e462eee157063a0ae690
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