ref: 6c763c3e080811bd94b75d92e9aa7908d3321fc1
dir: /sys/src/libc/port/mkfile/
</$objtype/mkfile
LIB=/$objtype/lib/libc.a
CFILES=\
_assert.c\
abs.c\
asin.c\
atan.c\
atan2.c\
atexit.c\
atnotify.c\
atof.c\
atol.c\
atoll.c\
calloc.c\
cistrcmp.c\
cistrncmp.c\
cistrstr.c\
charstod.c\
cleanname.c\
crypt.c\
ctype.c\
cycles.c\
date.c\
encodefmt.c\
execl.c\
exits.c\
exp.c\
fabs.c\
floor.c\
fmod.c\
frand.c\
frexp.c\
getcallerpc.c\
getfields.c\
hangup.c\
hypot.c\
lnrand.c\
lock.c\
log.c\
lrand.c\
malloc.c\
memccpy.c\
memchr.c\
memcmp.c\
memmove.c\
memset.c\
mktemp.c\
muldiv.c\
nan.c\
needsrcquote.c\
netcrypt.c\
netmkaddr.c\
nrand.c\
ntruerand.c\
perror.c\
pool.c\
pow.c\
pow10.c\
profile.c\
qsort.c\
quote.c\
rand.c\
readn.c\
rune.c\
runestrcat.c\
runestrchr.c\
runestrcmp.c\
runestrcpy.c\
runestrecpy.c\
runestrdup.c\
runestrncat.c\
runestrncmp.c\
runestrncpy.c\
runestrrchr.c\
runestrlen.c\
runestrstr.c\
sin.c\
sinh.c\
sqrt.c\
strcat.c\
strchr.c\
strcmp.c\
strcpy.c\
strecpy.c\
strcspn.c\
strdup.c\
strlen.c\
strncat.c\
strncmp.c\
strncpy.c\
strpbrk.c\
strrchr.c\
strspn.c\
strstr.c\
strtod.c\
strtok.c\
strtol.c\
strtoll.c\
strtoul.c\
strtoull.c\
tan.c\
tanh.c\
tokenize.c\
toupper.c\
utfecpy.c\
utflen.c\
utfnlen.c\
utfrune.c\
utfrrune.c\
utfutf.c\
u16.c\
u32.c\
u64.c\
ALLOFILES=${CFILES:%.c=%.$O}
# cull things in the per-machine directories from this list
OFILES= `{rc ./reduce $O $objtype $ALLOFILES}
HFILES=/sys/include/libc.h
</sys/src/cmd/mksyslib
profile.$O: /sys/include/tos.h
malloc.$O pool.$O: /sys/include/pool.h
runenorm.$O: runenormdata runenorm.c
runetotype.$O: runetotypedata runetotype.c
runeistype.$O: runeistypedata runeistype.c
runebreak.$O: runebreakdata runebreak.c
UCD=\
/lib/ucd/CompositionExclusions.txt\
/lib/ucd/DerivedNormalizationProps.txt\
/lib/ucd/GraphemeBreakProperty.txt\
/lib/ucd/UnicodeData.txt\
/lib/ucd/WordBreakProperty.txt\
/lib/ucd/emoji-data.txt\
EXTRA=\
runebreak.$O\
runeistype.$O\
runenorm.$O\
runetotype.$O\
GEN=\
runenormdata\
runetotypedata\
runeistypedata\
runebreakdata\
$GEN: $UCD
@{
eval `{grep '^[A-Z]' /$cputype/mkfile}
$CC $CFLAGS -o mkrunetype.$O mkrunetype.c
$LD $LDFLAGS -o $O.mkrunetype mkrunetype.$O
./$O.mkrunetype
}
$EXTRA: $GEN
extra:V: $EXTRA
ar vu $LIB $prereq
regen:V: $GEN