X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc.so_src%2FMakefile;h=bcc369c642b65c14eee4a13902176efcc92a2948;hb=1cf5d4d187852cbe85fb41ae7b23f3e44e197afa;hp=c29e0e5fb597ea8c6ddc7a8c9b0a126afb2cbf85;hpb=c18c6fea968e72403f9a7b75d6f7f8e3f9e8757f;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libc.so_src/Makefile b/Usermode/Libraries/libc.so_src/Makefile index c29e0e5f..bcc369c6 100644 --- a/Usermode/Libraries/libc.so_src/Makefile +++ b/Usermode/Libraries/libc.so_src/Makefile @@ -12,6 +12,7 @@ INCFILES := stdio.h stdlib.h OBJ = stub.o heap.o stdlib.o env.o stdio.o string.o rand.o OBJ += perror.o scanf.o signals.o strtoi.o strtof.o +OBJ += printf.o OBJ += arch/$(ARCHDIR).ao # signals.o DEPFILES := $(OBJ:%.o=%.d) @@ -19,3 +20,15 @@ BIN = libc.so include ../Makefile.tpl +.PHONY: generate_exp + +utest-run: generate_exp + +generate_exp: EXP_printf.txt + +EXP_%.txt: TEST_%.native + ./TEST_printf.native > EXP_printf.txt + rm TEST_printf.native + +%.native: %.c + $(NCC) $< -o $@ -Wall -Werror