shithub: bin.rc

ref: 858601ce88f1dc0d9758d101fc7ac26cfcf1c2fb
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