shithub: util

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