kbd: use a better get_key method
[thunix.git] / user / Makefile
blob539bb9f9aed67dae941289c4e2b857aa383b9faa
1 CC = gcc -g -nostdinc -I../include -Wall -Wno-unused -fno-builtin
2 LD = ld
3 LDFLAGS = -m elf_i386 -N --oformat binary
5 DIRNAME = user
7 LIB = usys.o printf.o vsprintf.o string.o
9 OBJS = user-test.o
11 .PHONY: all clean
13 all: user-test
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
18 cp user-test ../
20 %.o: %.c
21 @printf '%8s %s\n' 'CC' ${DIRNAME}/$@
22 ${CC} -c -o $*.o $<
24 clean:
25 rm -f *.o *.map user-test *~