shithub: util

ref: 783f6d8fcd85aaa04d843d3ac282b7dc238b4c2c
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].*