[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 003/150] pc-bios/s390-ccw: do not use rules.mak
From: |
Paolo Bonzini |
Subject: |
[PATCH 003/150] pc-bios/s390-ccw: do not use rules.mak |
Date: |
Mon, 17 Aug 2020 16:34:56 +0200 |
From: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
pc-bios/s390-ccw/Makefile | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/pc-bios/s390-ccw/Makefile b/pc-bios/s390-ccw/Makefile
index 50bc880272..cc0f77baa6 100644
--- a/pc-bios/s390-ccw/Makefile
+++ b/pc-bios/s390-ccw/Makefile
@@ -3,10 +3,26 @@ all: build-all
@true
include ../../config-host.mak
-include $(SRC_PATH)/rules.mak
+quiet-command = $(if $(V),$1,$(if $(2),@printf " %-7s %s\n" $2 $3 && $1, @$1))
+cc-option = $(if $(shell $(CC) $1 -S -o /dev/null -xc /dev/null > /dev/null \
+ 2>&1 && echo OK), $1, $2)
+
+VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.sh %.rc Kconfig% %.json.in
+set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath
$(PATTERN) $1)))
$(call set-vpath, $(SRC_PATH)/pc-bios/s390-ccw)
+# Flags for dependency generation
+QEMU_DGFLAGS = -MMD -MP -MT $@ -MF $(@D)/$(*F).d
+
+%.o: %.c
+ $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) \
+ -c -o $@ $<,"CC","$(TARGET_DIR)$@")
+
+%.o: %.S
+ $(call quiet-command,$(CCAS) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) \
+ -c -o $@ $<,"CCAS","$(TARGET_DIR)$@")
+
.PHONY : all clean build-all
OBJECTS = start.o main.o bootmap.o jump2ipl.o sclp.o menu.o \
--
2.26.2
- [PATCH v3 000/150] Meson integration for 5.2, Paolo Bonzini, 2020/08/17
- [PATCH 001/150] oss-fuzz/build: remove LIB_FUZZING_ENGINE, Paolo Bonzini, 2020/08/17
- [PATCH 002/150] optionrom: simplify Makefile, Paolo Bonzini, 2020/08/17
- [PATCH 003/150] pc-bios/s390-ccw: do not use rules.mak,
Paolo Bonzini <=
- [PATCH 004/150] trace: switch position of headers to what Meson requires, Paolo Bonzini, 2020/08/17
- [PATCH 006/150] build-sys hack: ensure target directory is there, Paolo Bonzini, 2020/08/17
- [PATCH 008/150] tests/vm: check for Python YAML parser in the Makefile, Paolo Bonzini, 2020/08/17
- [PATCH 007/150] tests/vm: do not pollute configure with --efi-aarch64, Paolo Bonzini, 2020/08/17
- [PATCH 005/150] meson: rename .inc.c files to .inc, Paolo Bonzini, 2020/08/17
- [PATCH 009/150] tests/docker: add test script for static linux-user builds, Paolo Bonzini, 2020/08/17
- [PATCH 011/150] configure: do not include $(...) variables in config-host.mak, Paolo Bonzini, 2020/08/17
- [PATCH 010/150] nsis: use "make DESTDIR=" instead of "make prefix=", Paolo Bonzini, 2020/08/17
- [PATCH 012/150] configure: expand path variables for meson configure, Paolo Bonzini, 2020/08/17
- [PATCH 013/150] configure: prepare CFLAGS/CXXFLAGS/LDFLAGS for Meson, Paolo Bonzini, 2020/08/17