shithub: bin.rc

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