-include ../Makefile.cfg\r
\r
CPPFLAGS += \r
-CFLAGS += \r
+CFLAGS += -Werror -Wextra\r
ASFLAGS +=\r
-LDFLAGS += -soname libc.so -Map map.txt -lgcc\r
+LDFLAGS += -soname libc.so -Map map.txt\r
\r
INCFILES := stdio.h stdlib.h\r
\r
-OBJ = stub.o heap.o stdlib.o env.o fileIO.o string.o select.o rand.o\r
-OBJ += perror.o scanf.o\r
+OBJ = stub.o heap.o stdlib.o env.o stdio.o string.o rand.o\r
+OBJ += perror.o scanf.o signals.o strtoi.o strtof.o\r
+OBJ += printf.o\r
OBJ += arch/$(ARCHDIR).ao\r
# signals.o\r
DEPFILES := $(OBJ:%.o=%.d)\r
\r
include ../Makefile.tpl\r
\r
+.PHONY: generate_exp\r
+\r
+utest-run: generate_exp\r
+\r
+generate_exp: EXP_printf.txt\r
+\r
+EXP_%.txt: TEST_%.native\r
+ ./TEST_printf.native > EXP_printf.txt\r
+ rm TEST_printf.native\r
+\r
+%.native: %.c\r
+ $(NCC) $< -o $@ -Wall -Werror\r