1 # Acess2 Basic C Library
\r
4 -include ../Makefile.cfg
\r
7 CFLAGS += -Wall -Werror -Wextra
\r
9 LDFLAGS += -Map map.txt
\r
11 INCFILES := stdio.h stdlib.h
\r
13 OBJ = stub.o heap.o stdlib.o env.o stdio.o string.o rand.o
\r
14 OBJ += scanf.o signals.o strtoi.o strtof.o
\r
15 OBJ += printf.o time.o errno.o
\r
16 OBJ += arch/$(ARCHDIR).ao
\r
18 DEPFILES := $(OBJ:%.o=%.d)
\r
20 ifeq ($(ARCHDIR),native)
\r
21 OBJ := $(filter-out heap.o,$(OBJ))
\r
26 include ../Makefile.tpl
\r
28 EXP_%.txt: TEST_%.native
\r
35 $(NCC) $< -o $@ -Wall -std=gnu99
\r