Implement user space's printf stuff
[thunix.git] / lib / Makefile
blob967f2610052652f8ff163cf7bfee71122c604453
1 CC = gcc -g -nostdinc -I../include -Wall -Wno-unused
2 LD = ld
3 LDFLAGS = -m elf_i386 -N
5 DIRNAME = lib
8 OBJS = string.o bitopts.o vsprintf.o
10 .PHONY: all clean
12 all: lib.a
14 lib.a: ${OBJS}
15 @printf "%8s %s\n" "AR" ${DIRNAME}/$@
16 rm -f $@
17 ar cq $@ ${OBJS}
19 %.o: %.c
20 @printf '%8s %s\n' 'CC' ${DIRNAME}/$@
21 ${CC} -c -o $*.o $<
23 clean:
24 rm -f *.o *~ lib.a