shithub: monome

ref: d7a085bcf19f164fbd667db398ad698a9fca3ec4
dir: /mkfile/

View raw version
</$objtype/mkfile

TARG=`{ls *.c | sed 's,\.c$,,'}
PROGS=${TARG:%=%}
BINDIR=$home/bin/$objtype/

all:V: $PROGS

install: $PROGS
	cp $PROGS $BINDIR

%: %.$O
	$O^l -o $target $stem.$O

%.$O: %.c
	$O^c $stem.c

clean:V:
	rm -f *.$O $PROGS