shithub: util

ref: c1de28b3dc2aaed08580ea1595a85cd168be27b3
dir: /mkfile/

View raw version
</$objtype/mkfile

LDFLAGS=
ALL=`{ ls *.c | sed 's,.c$,,' | sed 's,^,'^$O^'.,' }

install:V: all
	for(i in $ALL) {
		cp $i $home/bin/$objtype/^`{ echo $i | sed 's,^'^$O^'.,,' }
	}

all:V: $ALL

$O.%: %.$O
	$LD $LDFLAGS -o $O.$stem $stem.$O

%.$O: %.c
	$CC $CFLAGS $stem.c

clean:V:
	rm -f *.[$OS] [$OS].*