1 CC
= gcc
-g
-nostdinc
-I..
/include -Wall
-Wno-unused
-fno-builtin
3 LDFLAGS
= -m elf_i386
-N
--oformat binary
7 LIB
= usys.o printf.o vsprintf.o string.o
15 user-test
: ${LIB} ${OBJS}
16 @printf
'%8s %s\n' 'LD' ${DIRNAME}/$@
17 ${LD} ${LDFLAGS} -e main
-Ttext
0x1600000 -o
$@ user-test.o
${LIB} -M
> user.map
21 @printf
'%8s %s\n' 'CC' ${DIRNAME}/$@
25 rm -f
*.o
*.map user-test
*~