Makefile.target (639B)
1 # 2 # System test minilib objects 3 # 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. 7 # 8 # They assume each arch has provided a putc function. 9 # 10 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)) 14 15 MINILIB_CFLAGS+=-nostdlib -ggdb -O0 16 MINILIB_INC=-isystem $(SYSTEM_MINILIB_SRC) 17 18 .PRECIOUS: $(MINILIB_OBJS) 19 20 %.o: $(SYSTEM_MINILIB_SRC)/%.c 21 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@