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