1a113ec98SAlex Bennée# 2a113ec98SAlex Bennée# System test minilib objects 3a113ec98SAlex Bennée# 4a113ec98SAlex Bennée# The system tests are very constrained in terms of the library they 5a113ec98SAlex Bennée# support but we are not savages. We provide a few helpful routines 6a113ec98SAlex Bennée# that can be shared with the tests for basic I/O. 7a113ec98SAlex Bennée# 8a113ec98SAlex Bennée# They assume each arch has provided a putc function. 9a113ec98SAlex Bennée# 10a113ec98SAlex Bennée 11a113ec98SAlex BennéeSYSTEM_MINILIB_SRC=$(SRC_PATH)/tests/tcg/minilib 12a113ec98SAlex BennéeMINILIB_SRCS=$(wildcard $(SYSTEM_MINILIB_SRC)/*.c) 13a113ec98SAlex BennéeMINILIB_OBJS=$(patsubst $(SYSTEM_MINILIB_SRC)/%.c, %.o, $(MINILIB_SRCS)) 14a113ec98SAlex Bennée 15*580731dcSAkihiko OdakiMINILIB_CFLAGS+=-nostdlib -fno-stack-protector -ggdb -O0 16a113ec98SAlex BennéeMINILIB_INC=-isystem $(SYSTEM_MINILIB_SRC) 17a113ec98SAlex Bennée 18a113ec98SAlex Bennée.PRECIOUS: $(MINILIB_OBJS) 19a113ec98SAlex Bennée 20a113ec98SAlex Bennée%.o: $(SYSTEM_MINILIB_SRC)/%.c 216a9e0ef3SPaolo Bonzini $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@ 22