linux-user, scripts: add a script to update syscall.tbl
[qemu.git] / target / s390x / Makefile.objs
1 obj-y += cpu.o cpu_models.o cpu_features.o gdbstub.o interrupt.o helper.o
2 obj-$(CONFIG_TCG) += translate.o cc_helper.o excp_helper.o fpu_helper.o
3 obj-$(CONFIG_TCG) += int_helper.o mem_helper.o misc_helper.o crypto_helper.o
4 obj-$(CONFIG_TCG) += vec_helper.o vec_int_helper.o vec_string_helper.o
5 obj-$(CONFIG_TCG) += vec_fpu_helper.o
6 obj-$(CONFIG_SOFTMMU) += machine.o ioinst.o arch_dump.o mmu_helper.o diag.o
7 obj-$(CONFIG_SOFTMMU) += sigp.o
8 obj-$(CONFIG_KVM) += kvm.o
9 obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o
10 obj-$(call lnot,$(CONFIG_TCG)) += tcg-stub.o
11
12 # build and run feature list generator
13 feat-src = $(SRC_PATH)/target/$(TARGET_BASE_ARCH)/
14 feat-dst = $(BUILD_DIR)/$(TARGET_DIR)
15 ifneq ($(MAKECMDGOALS),clean)
16 generated-files-y += $(feat-dst)gen-features.h
17 endif
18
19 $(feat-dst)gen-features.h: $(feat-dst)gen-features.h-timestamp
20         @cmp $< $@ >/dev/null 2>&1 || cp $< $@
21 $(feat-dst)gen-features.h-timestamp: $(feat-dst)gen-features
22         $(call quiet-command,$< >$@,"GEN","$(TARGET_DIR)gen-features.h")
23
24 $(feat-dst)gen-features: $(feat-src)gen-features.c
25         $(call quiet-command,$(HOST_CC) $(QEMU_INCLUDES) -o $@ $<,"CC","$(TARGET_DIR)gen-features")
26
27 clean-target:
28         rm -f gen-features.h-timestamp
29         rm -f gen-features.h
30         rm -f gen-features