Skip to content

Commit 22fb2ab

Browse files
huthbonzini
authored andcommitted
pc-bios/s390-ccw: do not use rules.mak
Signed-off-by: Paolo Bonzini <[email protected]>
1 parent bf708f3 commit 22fb2ab

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

pc-bios/s390-ccw/Makefile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,26 @@ all: build-all
33
@true
44

55
include ../../config-host.mak
6-
include $(SRC_PATH)/rules.mak
76

7+
quiet-command = $(if $(V),$1,$(if $(2),@printf " %-7s %s\n" $2 $3 && $1, @$1))
8+
cc-option = $(if $(shell $(CC) $1 -S -o /dev/null -xc /dev/null > /dev/null \
9+
2>&1 && echo OK), $1, $2)
10+
11+
VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.sh %.rc Kconfig% %.json.in
12+
set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1)))
813
$(call set-vpath, $(SRC_PATH)/pc-bios/s390-ccw)
914

15+
# Flags for dependency generation
16+
QEMU_DGFLAGS = -MMD -MP -MT $@ -MF $(@D)/$(*F).d
17+
18+
%.o: %.c
19+
$(call quiet-command,$(CC) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) \
20+
-c -o $@ $<,"CC","$(TARGET_DIR)$@")
21+
22+
%.o: %.S
23+
$(call quiet-command,$(CCAS) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) \
24+
-c -o $@ $<,"CCAS","$(TARGET_DIR)$@")
25+
1026
.PHONY : all clean build-all
1127

1228
OBJECTS = start.o main.o bootmap.o jump2ipl.o sclp.o menu.o \

0 commit comments

Comments
 (0)