shithub: util

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