xref: /openbmc/qemu/tests/tcg/minilib/Makefile.target (revision a68694cd)
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
11SYSTEM_MINILIB_SRC=$(SRC_PATH)/tests/tcg/minilib
12MINILIB_SRCS=$(wildcard $(SYSTEM_MINILIB_SRC)/*.c)
13MINILIB_OBJS=$(patsubst $(SYSTEM_MINILIB_SRC)/%.c, %.o, $(MINILIB_SRCS))
14
15MINILIB_CFLAGS+=-nostdlib -ggdb -O0
16MINILIB_INC=-isystem $(SYSTEM_MINILIB_SRC)
17
18.PRECIOUS: $(MINILIB_OBJS)
19
20%.o: $(SYSTEM_MINILIB_SRC)/%.c
21	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@
22