mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-28 05:50:37 +00:00
6a9e0ef32a
For i386 specifically, this allows using the host GCC to compile the i386 tests. But, it should really be done for all targets, unless we want to pass $(EXTRA_CFLAGS) directly as part of $(CC). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20190807143523.15917-2-pbonzini@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
22 lines
639 B
Makefile
22 lines
639 B
Makefile
#
|
|
# System test minilib objects
|
|
#
|
|
# The system tests are very constrained in terms of the library they
|
|
# support but we are not savages. We provide a few helpful routines
|
|
# that can be shared with the tests for basic I/O.
|
|
#
|
|
# They assume each arch has provided a putc function.
|
|
#
|
|
|
|
SYSTEM_MINILIB_SRC=$(SRC_PATH)/tests/tcg/minilib
|
|
MINILIB_SRCS=$(wildcard $(SYSTEM_MINILIB_SRC)/*.c)
|
|
MINILIB_OBJS=$(patsubst $(SYSTEM_MINILIB_SRC)/%.c, %.o, $(MINILIB_SRCS))
|
|
|
|
MINILIB_CFLAGS+=-nostdlib -ggdb -O0
|
|
MINILIB_INC=-isystem $(SYSTEM_MINILIB_SRC)
|
|
|
|
.PRECIOUS: $(MINILIB_OBJS)
|
|
|
|
%.o: $(SYSTEM_MINILIB_SRC)/%.c
|
|
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@
|