shithub: bin.rc

ref: e30bac13912ad2f9923542d9e72c327347005365
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