# mkhdr bits
OBJTYPE=33FJ128GP206
O=o
# pic30 buildutils
AS=pic30-as
CC=pic30-gcc
LD=pic30-ld
AR=pic30-ar
HX=pic30-bin2hex
RM=rm
BUILDDIR=../build/$OBJTYPE
# important build options
HEAP=1536
STACK=2048
CFLAGS="-mcpu=$OBJTYPE -x c -c -g -Wall -I."
LIB=lib9.a
FMTOFILES=\
charstod.$O\
dofmt.$O\
dorfmt.$O\
errfmt.$O\
fltfmt.$O\
fmt.$O\
fmtfd.$O\
fmtfdflush.$O\
fmtlocale.$O\
fmtlock.$O\
fmtnull.$O\
fmtprint.$O\
fmtquote.$O\
fmtrune.$O\
fmtstr.$O\
fmtvprint.$O\
fprint.$O\
nan64.$O\
pow10.$O\
print.$O\
seprint.$O\
smprint.$O\
snprint.$O\
sprint.$O\
strtod.$O\
vfprint.$O\
vseprint.$O\
vsmprint.$O\
vsnprint.$O\
UTFOFILES=\
rune.$O\
utflen.$O\
utfnlen.$O\
LIB9OFILES=\
convD2M.$O\
convM2D.$O\
convM2S.$O\
convS2M.$O\
OFILES=\
$LIB9OFILES\
$FMTOFILES\
$UTFOFILES\
HFILES=\
../u.h\
../libc.h\
# stub
%.$O: fmt/%.c
$CC $CFLAGS -Ifmt fmt/$stem.c
|