ref: f801657f77f3923ec2388c25bdcb036c8019ba89
dir: /libkern/mkfile/
</sys/src/mkfile.proto
<../mkconfig
LIB=libkern.a
OFILES=\
abort.$O\
abs.$O\
atol.$O\
charstod.$O\
cistrcmp.$O\
cistrncmp.$O\
cistrstr.$O\
cleanname.$O\
convD2M.$O\
convM2D.$O\
convM2S.$O\
convS2M.$O\
dofmt.$O\
exp.$O\
floor.$O\
fmt.$O\
fmtprint.$O\
fmtquote.$O\
fmtstr.$O\
fmtvprint.$O\
frexp-thumb.$O\
getfcr-thumb.$O\
getfields.$O\
log.$O\
memccpy.$O\
memchr.$O\
memcmp.$O\
memmove.$O\
memset.$O\
nan-thumb.$O\
pow.$O\
pow10.$O\
qsort.$O\
rune.$O\
runestrlen.$O\
seprint.$O\
sin.$O\
smprint.$O\
snprint.$O\
sqrt.$O\
strcat.$O\
strchr.$O\
strcmp.$O\
strcpy.$O\
strdup.$O\
strecpy.$O\
strlen.$O\
strncmp.$O\
strncpy.$O\
strrchr.$O\
strstr.$O\
strtod.$O\
strtol.$O\
strtoll.$O\
strtoul.$O\
strtoull.$O\
tokenize.$O\
toupper.$O\
u16.$O\
u32.$O\
u64.$O\
utfecpy.$O\
utflen.$O\
utfnlen.$O\
utfrrune.$O\
utfrune.$O\
vlop-thumb.$O\
vlrt-thumb.$O\
vseprint.$O\
vsmprint.$O\
vsnprint.$O\
HFILES=\
fmtdef.h\
fcall.h\
kern.h\
LIBDIR=../bin
LIBRARY=$LIBDIR/$LIB
LIBOBJ=${OFILES:%=$LIBRARY(%)}
%.$O: $HFILES # don't combine with following %.$O rules
%.$O: %.c
$CC $CFLAGS $stem.c
%.$O: %.s
$AS $ASFLAGS $stem.s
default:V: all
all install:V: $LIBRARY
$LIBRARY: $LIBOBJ
$AR $ARFLAGS $target $newmember
$LIBRARY(%.$O):N: %.$O
clean:V:
rm *.t