remove Makefile.target
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
8000047e99
commit
5e6d1573b4
53
Makefile
53
Makefile
@ -179,17 +179,6 @@ include $(SRC_PATH)/tests/Makefile.include
|
|||||||
|
|
||||||
all: $(DOCS) $(if $(BUILD_DOCS),sphinxdocs) recurse-all modules
|
all: $(DOCS) $(if $(BUILD_DOCS),sphinxdocs) recurse-all modules
|
||||||
|
|
||||||
config-host.h: config-host.h-timestamp
|
|
||||||
config-host.h-timestamp: config-host.mak
|
|
||||||
|
|
||||||
TARGET_DIRS_RULES := $(foreach t, all fuzz clean install, $(addsuffix /$(t), $(TARGET_DIRS)))
|
|
||||||
|
|
||||||
.PHONY: $(TARGET_DIRS_RULES)
|
|
||||||
# The $(TARGET_DIRS_RULES) are of the form SUBDIR/GOAL, so that
|
|
||||||
# $(dir $@) yields the sub-directory, and $(notdir $@) yields the sub-goal
|
|
||||||
$(TARGET_DIRS_RULES): $(TARGET_DEPS)
|
|
||||||
$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $(dir $@) V="$(V)" TARGET_DIR="$(dir $@)" $(notdir $@),)
|
|
||||||
|
|
||||||
# LIBFDT_lib="": avoid breaking existing trees with objects requiring -fPIC
|
# LIBFDT_lib="": avoid breaking existing trees with objects requiring -fPIC
|
||||||
DTC_MAKE_ARGS=-I$(SRC_PATH)/dtc VPATH=$(SRC_PATH)/dtc -C dtc V="$(V)" LIBFDT_lib=""
|
DTC_MAKE_ARGS=-I$(SRC_PATH)/dtc VPATH=$(SRC_PATH)/dtc -C dtc V="$(V)" LIBFDT_lib=""
|
||||||
DTC_CFLAGS=$(CFLAGS) $(QEMU_CFLAGS)
|
DTC_CFLAGS=$(CFLAGS) $(QEMU_CFLAGS)
|
||||||
@ -226,8 +215,6 @@ slirp/all: .git-submodule-status
|
|||||||
CC="$(CC)" AR="$(AR)" LD="$(LD)" RANLIB="$(RANLIB)" \
|
CC="$(CC)" AR="$(AR)" LD="$(LD)" RANLIB="$(RANLIB)" \
|
||||||
CFLAGS="$(QEMU_CFLAGS) $(CFLAGS)" LDFLAGS="$(QEMU_LDFLAGS)")
|
CFLAGS="$(QEMU_CFLAGS) $(CFLAGS)" LDFLAGS="$(QEMU_LDFLAGS)")
|
||||||
|
|
||||||
$(filter %/all, $(TARGET_DIRS_RULES)):
|
|
||||||
|
|
||||||
ROM_DIRS = $(addprefix pc-bios/, $(ROMS))
|
ROM_DIRS = $(addprefix pc-bios/, $(ROMS))
|
||||||
ROM_DIRS_RULES=$(foreach t, all clean, $(addsuffix /$(t), $(ROM_DIRS)))
|
ROM_DIRS_RULES=$(foreach t, all clean, $(addsuffix /$(t), $(ROM_DIRS)))
|
||||||
# Only keep -O and -g cflags
|
# Only keep -O and -g cflags
|
||||||
@ -235,11 +222,9 @@ ROM_DIRS_RULES=$(foreach t, all clean, $(addsuffix /$(t), $(ROM_DIRS)))
|
|||||||
$(ROM_DIRS_RULES):
|
$(ROM_DIRS_RULES):
|
||||||
$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $(dir $@) V="$(V)" TARGET_DIR="$(dir $@)" CFLAGS="$(filter -O% -g%,$(CFLAGS))" $(notdir $@),)
|
$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $(dir $@) V="$(V)" TARGET_DIR="$(dir $@)" CFLAGS="$(filter -O% -g%,$(CFLAGS))" $(notdir $@),)
|
||||||
|
|
||||||
.PHONY: recurse-all recurse-clean recurse-install
|
.PHONY: recurse-all recurse-clean
|
||||||
recurse-all: $(addsuffix /all, $(TARGET_DIRS) $(ROM_DIRS))
|
recurse-all: $(ROM_DIRS)
|
||||||
recurse-clean: $(addsuffix /clean, $(TARGET_DIRS) $(ROM_DIRS))
|
recurse-clean: $(addsuffix /clean, $(ROM_DIRS))
|
||||||
recurse-install: $(addsuffix /install, $(TARGET_DIRS))
|
|
||||||
$(addsuffix /install, $(TARGET_DIRS)): all
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
@ -294,9 +279,6 @@ distclean: clean ninja-distclean
|
|||||||
$(call clean-manual,system)
|
$(call clean-manual,system)
|
||||||
$(call clean-manual,tools)
|
$(call clean-manual,tools)
|
||||||
$(call clean-manual,user)
|
$(call clean-manual,user)
|
||||||
for d in $(TARGET_DIRS); do \
|
|
||||||
rm -rf $$d || exit 1 ; \
|
|
||||||
done
|
|
||||||
rm -Rf .sdk
|
rm -Rf .sdk
|
||||||
|
|
||||||
KEYMAPS=da en-gb et fr fr-ch is lt no pt-br sv \
|
KEYMAPS=da en-gb et fr fr-ch is lt no pt-br sv \
|
||||||
@ -400,8 +382,7 @@ ICON_SIZES=16x16 24x24 32x32 48x48 64x64 128x128 256x256 512x512
|
|||||||
# Needed by "meson install"
|
# Needed by "meson install"
|
||||||
export DESTDIR
|
export DESTDIR
|
||||||
install: all $(if $(BUILD_DOCS),install-doc) \
|
install: all $(if $(BUILD_DOCS),install-doc) \
|
||||||
install-datadir install-localstatedir \
|
install-datadir install-localstatedir
|
||||||
recurse-install
|
|
||||||
ifdef CONFIG_TRACE_SYSTEMTAP
|
ifdef CONFIG_TRACE_SYSTEMTAP
|
||||||
$(INSTALL_PROG) "scripts/qemu-trace-stap" $(DESTDIR)$(bindir)
|
$(INSTALL_PROG) "scripts/qemu-trace-stap" $(DESTDIR)$(bindir)
|
||||||
endif
|
endif
|
||||||
@ -431,9 +412,6 @@ endif
|
|||||||
set -e; for x in $(KEYMAPS); do \
|
set -e; for x in $(KEYMAPS); do \
|
||||||
$(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(qemu_datadir)/keymaps"; \
|
$(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(qemu_datadir)/keymaps"; \
|
||||||
done
|
done
|
||||||
for d in $(TARGET_DIRS); do \
|
|
||||||
$(MAKE) $(SUBDIR_MAKEFLAGS) TARGET_DIR=$$d/ -C $$d $@ || exit 1 ; \
|
|
||||||
done
|
|
||||||
|
|
||||||
# documentation
|
# documentation
|
||||||
MAKEINFO=makeinfo
|
MAKEINFO=makeinfo
|
||||||
@ -548,20 +526,6 @@ docs/interop/qemu-qmp-ref.dvi docs/interop/qemu-qmp-ref.html \
|
|||||||
|
|
||||||
$(filter %.1 %.7 %.8,$(DOCS)): scripts/texi2pod.pl
|
$(filter %.1 %.7 %.8,$(DOCS)): scripts/texi2pod.pl
|
||||||
|
|
||||||
# Reports/Analysis
|
|
||||||
|
|
||||||
%/coverage-report.html:
|
|
||||||
@mkdir -p $*
|
|
||||||
$(call quiet-command,\
|
|
||||||
gcovr -r $(SRC_PATH) \
|
|
||||||
$(foreach t, $(TARGET_DIRS), --object-directory $(BUILD_DIR)/$(t)) \
|
|
||||||
--object-directory $(BUILD_DIR) \
|
|
||||||
-p --html --html-details -o $@, \
|
|
||||||
"GEN", "coverage-report.html")
|
|
||||||
|
|
||||||
.PHONY: coverage-report
|
|
||||||
coverage-report: $(CURDIR)/reports/coverage/coverage-report.html
|
|
||||||
|
|
||||||
ifdef CONFIG_WIN32
|
ifdef CONFIG_WIN32
|
||||||
|
|
||||||
INSTALLER = qemu-setup-$(VERSION)$(EXESUF)
|
INSTALLER = qemu-setup-$(VERSION)$(EXESUF)
|
||||||
@ -649,15 +613,6 @@ endif
|
|||||||
$(call print-help,cscope,Generate cscope index)
|
$(call print-help,cscope,Generate cscope index)
|
||||||
$(call print-help,sparse,Run sparse on the QEMU source)
|
$(call print-help,sparse,Run sparse on the QEMU source)
|
||||||
@echo ''
|
@echo ''
|
||||||
@$(if $(TARGET_DIRS), \
|
|
||||||
echo 'Architecture specific targets:'; \
|
|
||||||
$(foreach t, $(TARGET_DIRS), \
|
|
||||||
$(call print-help-run,$(t)/all,Build for $(t)); \
|
|
||||||
$(if $(CONFIG_FUZZ), \
|
|
||||||
$(if $(findstring softmmu,$(t)), \
|
|
||||||
$(call print-help-run,$(t)/fuzz,Build fuzzer for $(t)); \
|
|
||||||
))) \
|
|
||||||
echo '')
|
|
||||||
@echo 'Cleaning targets:'
|
@echo 'Cleaning targets:'
|
||||||
$(call print-help,clean,Remove most generated files but keep the config)
|
$(call print-help,clean,Remove most generated files but keep the config)
|
||||||
$(call print-help,distclean,Remove all generated files)
|
$(call print-help,distclean,Remove all generated files)
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
# -*- Mode: makefile -*-
|
|
||||||
|
|
||||||
BUILD_DIR?=$(CURDIR)/..
|
|
||||||
|
|
||||||
include ../config-host.mak
|
|
||||||
include config-target.mak
|
|
||||||
include $(SRC_PATH)/rules.mak
|
|
||||||
|
|
||||||
all:
|
|
||||||
install: all
|
|
||||||
|
|
||||||
.PHONY: all clean install
|
|
15
configure
vendored
15
configure
vendored
@ -362,7 +362,6 @@ audio_drv_list=""
|
|||||||
block_drv_rw_whitelist=""
|
block_drv_rw_whitelist=""
|
||||||
block_drv_ro_whitelist=""
|
block_drv_ro_whitelist=""
|
||||||
host_cc="cc"
|
host_cc="cc"
|
||||||
libs_softmmu=""
|
|
||||||
libs_tools=""
|
libs_tools=""
|
||||||
audio_win_int=""
|
audio_win_int=""
|
||||||
libs_qga=""
|
libs_qga=""
|
||||||
@ -911,7 +910,6 @@ Darwin)
|
|||||||
audio_drv_list="coreaudio try-sdl"
|
audio_drv_list="coreaudio try-sdl"
|
||||||
audio_possible_drivers="coreaudio sdl"
|
audio_possible_drivers="coreaudio sdl"
|
||||||
QEMU_LDFLAGS="-framework CoreFoundation -framework IOKit $QEMU_LDFLAGS"
|
QEMU_LDFLAGS="-framework CoreFoundation -framework IOKit $QEMU_LDFLAGS"
|
||||||
libs_softmmu="-F/System/Library/Frameworks -framework Cocoa -framework IOKit $libs_softmmu"
|
|
||||||
# Disable attempts to use ObjectiveC features in os/object.h since they
|
# Disable attempts to use ObjectiveC features in os/object.h since they
|
||||||
# won't work when we're compiling with gcc as a C compiler.
|
# won't work when we're compiling with gcc as a C compiler.
|
||||||
QEMU_CFLAGS="-DOS_OBJECT_USE_OBJC=0 $QEMU_CFLAGS"
|
QEMU_CFLAGS="-DOS_OBJECT_USE_OBJC=0 $QEMU_CFLAGS"
|
||||||
@ -2604,7 +2602,6 @@ if test "$lzo" != "no" ; then
|
|||||||
int main(void) { lzo_version(); return 0; }
|
int main(void) { lzo_version(); return 0; }
|
||||||
EOF
|
EOF
|
||||||
if compile_prog "" "-llzo2" ; then
|
if compile_prog "" "-llzo2" ; then
|
||||||
libs_softmmu="$libs_softmmu -llzo2"
|
|
||||||
lzo_libs="-llzo2"
|
lzo_libs="-llzo2"
|
||||||
lzo="yes"
|
lzo="yes"
|
||||||
else
|
else
|
||||||
@ -2624,7 +2621,6 @@ if test "$snappy" != "no" ; then
|
|||||||
int main(void) { snappy_max_compressed_length(4096); return 0; }
|
int main(void) { snappy_max_compressed_length(4096); return 0; }
|
||||||
EOF
|
EOF
|
||||||
if compile_prog "" "-lsnappy" ; then
|
if compile_prog "" "-lsnappy" ; then
|
||||||
libs_softmmu="$libs_softmmu -lsnappy"
|
|
||||||
snappy_libs='-lsnappy'
|
snappy_libs='-lsnappy'
|
||||||
snappy="yes"
|
snappy="yes"
|
||||||
else
|
else
|
||||||
@ -2724,7 +2720,6 @@ if test "$xen" != "no" ; then
|
|||||||
xen_pc="$xen_pc xentoolcore"
|
xen_pc="$xen_pc xentoolcore"
|
||||||
fi
|
fi
|
||||||
QEMU_CFLAGS="$QEMU_CFLAGS $($pkg_config --cflags $xen_pc)"
|
QEMU_CFLAGS="$QEMU_CFLAGS $($pkg_config --cflags $xen_pc)"
|
||||||
libs_softmmu="$($pkg_config --libs $xen_pc) $libs_softmmu"
|
|
||||||
xen_cflags="$($pkg_config --cflags $xen_pc)"
|
xen_cflags="$($pkg_config --cflags $xen_pc)"
|
||||||
xen_libs="$($pkg_config --libs $xen_pc)"
|
xen_libs="$($pkg_config --libs $xen_pc)"
|
||||||
else
|
else
|
||||||
@ -3469,7 +3464,6 @@ EOF
|
|||||||
rdma_libs="-lrdmacm -libverbs -libumad"
|
rdma_libs="-lrdmacm -libverbs -libumad"
|
||||||
if compile_prog "" "$rdma_libs" ; then
|
if compile_prog "" "$rdma_libs" ; then
|
||||||
rdma="yes"
|
rdma="yes"
|
||||||
libs_softmmu="$libs_softmmu $rdma_libs"
|
|
||||||
else
|
else
|
||||||
if test "$rdma" = "yes" ; then
|
if test "$rdma" = "yes" ; then
|
||||||
error_exit \
|
error_exit \
|
||||||
@ -4500,8 +4494,6 @@ EOF
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
libs_softmmu="$libs_softmmu $fdt_libs"
|
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# opengl probe (for sdl2, gtk, milkymist-tmu2)
|
# opengl probe (for sdl2, gtk, milkymist-tmu2)
|
||||||
|
|
||||||
@ -4725,7 +4717,6 @@ EOF
|
|||||||
|
|
||||||
if compile_prog "" "-lnuma" ; then
|
if compile_prog "" "-lnuma" ; then
|
||||||
numa=yes
|
numa=yes
|
||||||
libs_softmmu="-lnuma $libs_softmmu"
|
|
||||||
numa_libs="-lnuma"
|
numa_libs="-lnuma"
|
||||||
else
|
else
|
||||||
if test "$numa" = "yes" ; then
|
if test "$numa" = "yes" ; then
|
||||||
@ -5267,7 +5258,6 @@ if compile_prog "" "" ; then
|
|||||||
have_openpty="yes"
|
have_openpty="yes"
|
||||||
else
|
else
|
||||||
if compile_prog "" "-lutil" ; then
|
if compile_prog "" "-lutil" ; then
|
||||||
libs_softmmu="-lutil $libs_softmmu"
|
|
||||||
libs_tools="-lutil $libs_tools"
|
libs_tools="-lutil $libs_tools"
|
||||||
have_openpty="yes"
|
have_openpty="yes"
|
||||||
fi
|
fi
|
||||||
@ -5286,7 +5276,6 @@ EOF
|
|||||||
$pkg_config --atleast-version=0.12.3 spice-protocol && \
|
$pkg_config --atleast-version=0.12.3 spice-protocol && \
|
||||||
compile_prog "$spice_cflags" "$spice_libs" ; then
|
compile_prog "$spice_cflags" "$spice_libs" ; then
|
||||||
spice="yes"
|
spice="yes"
|
||||||
libs_softmmu="$libs_softmmu $spice_libs"
|
|
||||||
QEMU_CFLAGS="$QEMU_CFLAGS $spice_cflags"
|
QEMU_CFLAGS="$QEMU_CFLAGS $spice_cflags"
|
||||||
else
|
else
|
||||||
if test "$spice" = "yes" ; then
|
if test "$spice" = "yes" ; then
|
||||||
@ -6439,7 +6428,6 @@ if test "$libpmem" != "no"; then
|
|||||||
libpmem="yes"
|
libpmem="yes"
|
||||||
libpmem_libs=$($pkg_config --libs libpmem)
|
libpmem_libs=$($pkg_config --libs libpmem)
|
||||||
libpmem_cflags=$($pkg_config --cflags libpmem)
|
libpmem_cflags=$($pkg_config --cflags libpmem)
|
||||||
libs_softmmu="$libs_softmmu $libpmem_libs"
|
|
||||||
QEMU_CFLAGS="$QEMU_CFLAGS $libpmem_cflags"
|
QEMU_CFLAGS="$QEMU_CFLAGS $libpmem_cflags"
|
||||||
else
|
else
|
||||||
if test "$libpmem" = "yes" ; then
|
if test "$libpmem" = "yes" ; then
|
||||||
@ -6457,7 +6445,6 @@ if test "$libdaxctl" != "no"; then
|
|||||||
libdaxctl="yes"
|
libdaxctl="yes"
|
||||||
libdaxctl_libs=$($pkg_config --libs libdaxctl)
|
libdaxctl_libs=$($pkg_config --libs libdaxctl)
|
||||||
libdaxctl_cflags=$($pkg_config --cflags libdaxctl)
|
libdaxctl_cflags=$($pkg_config --cflags libdaxctl)
|
||||||
libs_softmmu="$libs_softmmu $libdaxctl_libs"
|
|
||||||
QEMU_CFLAGS="$QEMU_CFLAGS $libdaxctl_cflags"
|
QEMU_CFLAGS="$QEMU_CFLAGS $libdaxctl_cflags"
|
||||||
else
|
else
|
||||||
if test "$libdaxctl" = "yes" ; then
|
if test "$libdaxctl" = "yes" ; then
|
||||||
@ -6886,7 +6873,6 @@ echo_version() {
|
|||||||
# prepend pixman and ftd flags after all config tests are done
|
# prepend pixman and ftd flags after all config tests are done
|
||||||
QEMU_CFLAGS="$pixman_cflags $fdt_cflags $QEMU_CFLAGS"
|
QEMU_CFLAGS="$pixman_cflags $fdt_cflags $QEMU_CFLAGS"
|
||||||
QEMU_LDFLAGS="$fdt_ldflags $QEMU_LDFLAGS"
|
QEMU_LDFLAGS="$fdt_ldflags $QEMU_LDFLAGS"
|
||||||
libs_softmmu="$pixman_libs $libs_softmmu"
|
|
||||||
|
|
||||||
config_host_mak="config-host.mak"
|
config_host_mak="config-host.mak"
|
||||||
|
|
||||||
@ -6915,7 +6901,6 @@ echo "qemu_helperdir=$libexecdir" >> $config_host_mak
|
|||||||
echo "qemu_localedir=$qemu_localedir" >> $config_host_mak
|
echo "qemu_localedir=$qemu_localedir" >> $config_host_mak
|
||||||
echo "qemu_icondir=$qemu_icondir" >> $config_host_mak
|
echo "qemu_icondir=$qemu_icondir" >> $config_host_mak
|
||||||
echo "qemu_desktopdir=$qemu_desktopdir" >> $config_host_mak
|
echo "qemu_desktopdir=$qemu_desktopdir" >> $config_host_mak
|
||||||
echo "libs_softmmu=$libs_softmmu" >> $config_host_mak
|
|
||||||
echo "GIT=$git" >> $config_host_mak
|
echo "GIT=$git" >> $config_host_mak
|
||||||
echo "GIT_SUBMODULES=$git_submodules" >> $config_host_mak
|
echo "GIT_SUBMODULES=$git_submodules" >> $config_host_mak
|
||||||
echo "GIT_UPDATE=$git_update" >> $config_host_mak
|
echo "GIT_UPDATE=$git_update" >> $config_host_mak
|
||||||
|
Loading…
Reference in New Issue
Block a user