shithub: util

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