-include ../Makefile.cfg\r
\r
CPPFLAGS += \r
-CFLAGS += -Wall -Werror -Wextra\r
+CFLAGS += -nostdlib -Wall -Werror -Wextra\r
ASFLAGS +=\r
-LDFLAGS += -Map map.txt\r
+LDFLAGS += -nostdlib\r
+PRELINK := $(CRTI) $(CRTBEGIN) $(OUTPUTDIR)/Libs/crt0S.o\r
+LIBS += $(LIBGCC_PATH) $(CRTEND) $(CRTN)\r
\r
INCFILES := stdio.h stdlib.h\r
\r
-OBJ = stub.o heap.o stdlib.o env.o stdio.o string.o rand.o\r
-OBJ += scanf.o signals.o strtoi.o strtof.o\r
-OBJ += printf.o time.o errno.o\r
+OBJ = stub.o heap.o stdlib.o env.o string.o rand.o\r
+OBJ += scanf.o signals.o strtoi.o strtof.o \r
+OBJ += printf.o time.o timeconv.o errno.o ctype.o\r
+OBJ += stdio.o stdio_files.o\r
OBJ += arch/$(ARCHDIR).ao\r
# signals.o\r
DEPFILES := $(OBJ:%.o=%.d)\r
include ../Makefile.tpl\r
\r
EXP_%.txt: TEST_%.native\r
- ./TEST_printf.native > EXP_printf.txt\r
- rm TEST_printf.native\r
+ ./$< > $@\r
+ rm $<\r
+EXP_strtoi.txt:\r
+ echo -n "" > $@\r
\r
%.native: %.c\r
$(NCC) $< -o $@ -Wall -std=gnu99\r