2 # System test minilib objects
4 # The system tests are very constrained in terms of the library they
5 # support but we are not savages. We provide a few helpful routines
6 # that can be shared with the tests for basic I/O.
8 # They assume each arch has provided a putc function.
11 SYSTEM_MINILIB_SRC=$(SRC_PATH)/tests/tcg/minilib
12 MINILIB_SRCS=$(wildcard $(SYSTEM_MINILIB_SRC)/*.c)
13 MINILIB_OBJS=$(patsubst $(SYSTEM_MINILIB_SRC)/%.c, %.o, $(MINILIB_SRCS))
15 MINILIB_CFLAGS+=-nostdlib -ggdb -O0
16 MINILIB_INC=-isystem $(SYSTEM_MINILIB_SRC)
18 .PRECIOUS: $(MINILIB_OBJS)
20 %.o: $(SYSTEM_MINILIB_SRC)/%.c
21 $(CC) $(CFLAGS) -c $< -o $@