1 # Acess2 Basic C Library
\r
4 -include ../Makefile.cfg
\r
7 CFLAGS += -nostdlib -Wall -Werror -Wextra
\r
10 PRELINK := $(CRTI) $(CRTBEGINS) $(CRTS)
\r
11 LIBS += $(LIBGCC_PATH) $(CRTENDS) $(CRTN)
\r
13 INCFILES := stdio.h stdlib.h
\r
15 OBJ = stub.o heap.o stdlib.o env.o string.o rand.o
\r
16 OBJ += scanf.o signals.o strtoi.o strtof.o
\r
17 OBJ += printf.o time.o timeconv.o errno.o ctype.o
\r
18 OBJ += stdio.o stdio_files.o
\r
19 OBJ += arch/$(ARCHDIR).ao
\r
21 DEPFILES := $(OBJ:%.o=%.d)
\r
23 ifeq ($(ARCHDIR),native)
\r
24 OBJ := $(filter-out heap.o,$(OBJ))
\r
29 include ../Makefile.tpl
\r
31 EXP_%.txt: TEST_%.native
\r
38 $(NCC) $< -o $@ -Wall -std=gnu99
\r