Anthony Liguori | 562593a | 2009-08-04 08:24:23 -0500 | [diff] [blame] | 1 | # -*- Mode: makefile -*- |
| 2 | |
Peter Crosthwaite | 6b4ad3b | 2015-05-25 22:38:06 -0700 | [diff] [blame] | 3 | BUILD_DIR?=$(CURDIR)/.. |
| 4 | |
Juan Quintela | deed3cc | 2009-10-07 02:40:57 +0200 | [diff] [blame] | 5 | include ../config-host.mak |
Juan Quintela | 25be210f | 2009-10-07 02:41:00 +0200 | [diff] [blame] | 6 | include config-target.mak |
Paolo Bonzini | f3aa844 | 2013-04-16 10:50:38 +0200 | [diff] [blame] | 7 | include config-devices.mak |
aliguori | 1775918 | 2009-01-21 18:12:52 +0000 | [diff] [blame] | 8 | include $(SRC_PATH)/rules.mak |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 9 | |
Paolo Bonzini | fec90ff | 2012-05-29 11:49:50 +0200 | [diff] [blame] | 10 | $(call set-vpath, $(SRC_PATH)) |
Jan Kiszka | af2be20 | 2011-06-23 10:05:12 +0200 | [diff] [blame] | 11 | ifdef CONFIG_LINUX |
| 12 | QEMU_CFLAGS += -I../linux-headers |
| 13 | endif |
Paolo Bonzini | fec90ff | 2012-05-29 11:49:50 +0200 | [diff] [blame] | 14 | QEMU_CFLAGS += -I.. -I$(SRC_PATH)/target-$(TARGET_BASE_ARCH) -DNEED_CPU_H |
bellard | 1e43adf | 2003-09-30 20:54:24 +0000 | [diff] [blame] | 15 | |
Anthony Liguori | 2f28d2f | 2011-12-03 17:10:08 -0600 | [diff] [blame] | 16 | QEMU_CFLAGS+=-I$(SRC_PATH)/include |
| 17 | |
bellard | 16e9b7d | 2003-10-27 21:09:52 +0000 | [diff] [blame] | 18 | ifdef CONFIG_USER_ONLY |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 19 | # user emulator name |
Paolo Bonzini | c1799a8 | 2013-06-14 15:19:07 +0100 | [diff] [blame] | 20 | QEMU_PROG=qemu-$(TARGET_NAME) |
Michael Tokarev | 5c40c73 | 2014-04-28 11:03:03 +0400 | [diff] [blame] | 21 | QEMU_PROG_BUILD = $(QEMU_PROG) |
bellard | 16e9b7d | 2003-10-27 21:09:52 +0000 | [diff] [blame] | 22 | else |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 23 | # system emulator name |
Michael Tokarev | 5c40c73 | 2014-04-28 11:03:03 +0400 | [diff] [blame] | 24 | QEMU_PROG=qemu-system-$(TARGET_NAME)$(EXESUF) |
Paolo Bonzini | c12915e | 2013-04-24 22:57:59 +0200 | [diff] [blame] | 25 | ifneq (,$(findstring -mwindows,$(libs_softmmu))) |
Stefan Weil | 0fa5491 | 2011-12-22 11:18:53 +0100 | [diff] [blame] | 26 | # Terminate program name with a 'w' because the linker builds a windows executable. |
Paolo Bonzini | c1799a8 | 2013-06-14 15:19:07 +0100 | [diff] [blame] | 27 | QEMU_PROGW=qemu-system-$(TARGET_NAME)w$(EXESUF) |
Michael Tokarev | 5c40c73 | 2014-04-28 11:03:03 +0400 | [diff] [blame] | 28 | $(QEMU_PROG): $(QEMU_PROGW) |
| 29 | $(call quiet-command,$(OBJCOPY) --subsystem console $(QEMU_PROGW) $(QEMU_PROG)," GEN $(TARGET_DIR)$(QEMU_PROG)") |
| 30 | QEMU_PROG_BUILD = $(QEMU_PROGW) |
| 31 | else |
| 32 | QEMU_PROG_BUILD = $(QEMU_PROG) |
| 33 | endif |
bellard | de5eaa6 | 2003-11-16 23:18:17 +0000 | [diff] [blame] | 34 | endif |
bellard | 728c9fd | 2004-01-05 00:08:14 +0000 | [diff] [blame] | 35 | |
Michael Tokarev | 5c40c73 | 2014-04-28 11:03:03 +0400 | [diff] [blame] | 36 | PROGS=$(QEMU_PROG) $(QEMU_PROGW) |
Peter Maydell | b884170 | 2010-11-16 20:07:07 +0000 | [diff] [blame] | 37 | STPFILES= |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 38 | |
Juan Quintela | 91880d9 | 2009-10-07 02:41:01 +0200 | [diff] [blame] | 39 | config-target.h: config-target.h-timestamp |
| 40 | config-target.h-timestamp: config-target.mak |
| 41 | |
Lluís | 6d8a764 | 2011-08-31 20:30:43 +0200 | [diff] [blame] | 42 | ifdef CONFIG_TRACE_SYSTEMTAP |
Stefan Hajnoczi | e0b2fd0 | 2014-06-22 21:46:07 +0800 | [diff] [blame] | 43 | stap: $(QEMU_PROG).stp-installed $(QEMU_PROG).stp $(QEMU_PROG)-simpletrace.stp |
Daniel P. Berrange | c276b17 | 2010-11-12 13:20:25 +0000 | [diff] [blame] | 44 | |
| 45 | ifdef CONFIG_USER_ONLY |
| 46 | TARGET_TYPE=user |
| 47 | else |
| 48 | TARGET_TYPE=system |
| 49 | endif |
| 50 | |
Alon Levy | c14518e | 2013-06-14 15:19:07 +0100 | [diff] [blame] | 51 | $(QEMU_PROG).stp-installed: $(SRC_PATH)/trace-events |
Lluís Vilanova | c042493 | 2012-04-18 20:15:45 +0200 | [diff] [blame] | 52 | $(call quiet-command,$(TRACETOOL) \ |
Lluís Vilanova | 650ab98 | 2012-04-03 20:47:39 +0200 | [diff] [blame] | 53 | --format=stap \ |
Lluís Vilanova | 5b80827 | 2014-05-27 15:02:14 +0200 | [diff] [blame] | 54 | --backends=$(TRACE_BACKENDS) \ |
Lluís Vilanova | 650ab98 | 2012-04-03 20:47:39 +0200 | [diff] [blame] | 55 | --binary=$(bindir)/$(QEMU_PROG) \ |
Paolo Bonzini | b9a7b74 | 2013-06-04 14:45:26 +0200 | [diff] [blame] | 56 | --target-name=$(TARGET_NAME) \ |
Lluís Vilanova | 650ab98 | 2012-04-03 20:47:39 +0200 | [diff] [blame] | 57 | --target-type=$(TARGET_TYPE) \ |
Alon Levy | c14518e | 2013-06-14 15:19:07 +0100 | [diff] [blame] | 58 | < $< > $@," GEN $(TARGET_DIR)$(QEMU_PROG).stp-installed") |
| 59 | |
| 60 | $(QEMU_PROG).stp: $(SRC_PATH)/trace-events |
| 61 | $(call quiet-command,$(TRACETOOL) \ |
| 62 | --format=stap \ |
Lluís Vilanova | 5b80827 | 2014-05-27 15:02:14 +0200 | [diff] [blame] | 63 | --backends=$(TRACE_BACKENDS) \ |
Alon Levy | c14518e | 2013-06-14 15:19:07 +0100 | [diff] [blame] | 64 | --binary=$(realpath .)/$(QEMU_PROG) \ |
Paolo Bonzini | b9a7b74 | 2013-06-04 14:45:26 +0200 | [diff] [blame] | 65 | --target-name=$(TARGET_NAME) \ |
Alon Levy | c14518e | 2013-06-14 15:19:07 +0100 | [diff] [blame] | 66 | --target-type=$(TARGET_TYPE) \ |
Paolo Bonzini | aaf821f | 2012-12-21 10:45:20 +0100 | [diff] [blame] | 67 | < $< > $@," GEN $(TARGET_DIR)$(QEMU_PROG).stp") |
Alon Levy | c14518e | 2013-06-14 15:19:07 +0100 | [diff] [blame] | 68 | |
Stefan Hajnoczi | e0b2fd0 | 2014-06-22 21:46:07 +0800 | [diff] [blame] | 69 | $(QEMU_PROG)-simpletrace.stp: $(SRC_PATH)/trace-events |
| 70 | $(call quiet-command,$(TRACETOOL) \ |
| 71 | --format=simpletrace-stap \ |
| 72 | --backends=$(TRACE_BACKENDS) \ |
| 73 | --probe-prefix=qemu.$(TARGET_TYPE).$(TARGET_NAME) \ |
| 74 | < $< > $@," GEN $(TARGET_DIR)$(QEMU_PROG)-simpletrace.stp") |
| 75 | |
Daniel P. Berrange | c276b17 | 2010-11-12 13:20:25 +0000 | [diff] [blame] | 76 | else |
| 77 | stap: |
| 78 | endif |
| 79 | |
| 80 | all: $(PROGS) stap |
Juan Quintela | 91880d9 | 2009-10-07 02:41:01 +0200 | [diff] [blame] | 81 | |
Paul Brook | c2fb263 | 2009-05-25 18:54:53 +0100 | [diff] [blame] | 82 | # Dummy command so that make thinks it has done something |
| 83 | @true |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 84 | |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 85 | ######################################################### |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 86 | # cpu emulator library |
Paolo Bonzini | fbe37ef | 2012-05-29 11:48:59 +0200 | [diff] [blame] | 87 | obj-y = exec.o translate-all.o cpu-exec.o |
Richard Henderson | 951c630 | 2014-09-19 11:39:20 -0700 | [diff] [blame] | 88 | obj-y += tcg/tcg.o tcg/tcg-op.o tcg/optimize.o |
Paolo Bonzini | 9cdc8df | 2012-05-29 10:55:47 +0200 | [diff] [blame] | 89 | obj-$(CONFIG_TCG_INTERPRETER) += tci.o |
Stefan Weil | 5034833 | 2013-01-01 18:43:56 +0100 | [diff] [blame] | 90 | obj-$(CONFIG_TCG_INTERPRETER) += disas/tci.o |
Paolo Bonzini | 9cdc8df | 2012-05-29 10:55:47 +0200 | [diff] [blame] | 91 | obj-y += fpu/softfloat.o |
Paolo Bonzini | 5e8861a | 2012-05-29 10:23:15 +0200 | [diff] [blame] | 92 | obj-y += target-$(TARGET_BASE_ARCH)/ |
Paolo Bonzini | 76cad71 | 2012-10-24 11:12:21 +0200 | [diff] [blame] | 93 | obj-y += disas.o |
Ákos Kovács | b77abd9 | 2013-09-13 18:25:54 +0100 | [diff] [blame] | 94 | obj-$(call notempty,$(TARGET_XML_FILES)) += gdbstub-xml.o |
Ákos Kovács | cf01ba9 | 2013-09-13 18:25:53 +0100 | [diff] [blame] | 95 | obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o |
Paolo Bonzini | 5e8861a | 2012-05-29 10:23:15 +0200 | [diff] [blame] | 96 | |
Tom Musta | e58f8d1 | 2014-04-21 15:54:52 -0500 | [diff] [blame] | 97 | obj-$(CONFIG_LIBDECNUMBER) += libdecnumber/decContext.o |
| 98 | obj-$(CONFIG_LIBDECNUMBER) += libdecnumber/decNumber.o |
| 99 | obj-$(CONFIG_LIBDECNUMBER) += libdecnumber/dpd/decimal32.o |
| 100 | obj-$(CONFIG_LIBDECNUMBER) += libdecnumber/dpd/decimal64.o |
| 101 | obj-$(CONFIG_LIBDECNUMBER) += libdecnumber/dpd/decimal128.o |
| 102 | |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 103 | ######################################################### |
| 104 | # Linux user emulator target |
| 105 | |
| 106 | ifdef CONFIG_LINUX_USER |
| 107 | |
Mike Frysinger | c3109ba | 2011-02-07 01:05:54 -0500 | [diff] [blame] | 108 | QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR) -I$(SRC_PATH)/linux-user |
Blue Swirl | 5ba6531 | 2009-08-15 07:52:19 +0000 | [diff] [blame] | 109 | |
Paolo Bonzini | 7fc5152 | 2012-05-29 09:33:59 +0200 | [diff] [blame] | 110 | obj-y += linux-user/ |
Paolo Bonzini | 8a09070 | 2012-12-20 15:40:20 +0100 | [diff] [blame] | 111 | obj-y += gdbstub.o thunk.o user-exec.o |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 112 | |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 113 | endif #CONFIG_LINUX_USER |
| 114 | |
| 115 | ######################################################### |
blueswir1 | 8477850 | 2008-10-26 20:33:16 +0000 | [diff] [blame] | 116 | # BSD user emulator target |
| 117 | |
| 118 | ifdef CONFIG_BSD_USER |
| 119 | |
Stacey Son | adfc3e9 | 2014-06-08 09:57:22 -0700 | [diff] [blame] | 120 | QEMU_CFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ABI_DIR) \ |
| 121 | -I$(SRC_PATH)/bsd-user/$(HOST_VARIANT_DIR) |
blueswir1 | 8477850 | 2008-10-26 20:33:16 +0000 | [diff] [blame] | 122 | |
Paolo Bonzini | 7fc5152 | 2012-05-29 09:33:59 +0200 | [diff] [blame] | 123 | obj-y += bsd-user/ |
Paolo Bonzini | 8a09070 | 2012-12-20 15:40:20 +0100 | [diff] [blame] | 124 | obj-y += gdbstub.o user-exec.o |
blueswir1 | 8477850 | 2008-10-26 20:33:16 +0000 | [diff] [blame] | 125 | |
blueswir1 | 8477850 | 2008-10-26 20:33:16 +0000 | [diff] [blame] | 126 | endif #CONFIG_BSD_USER |
| 127 | |
| 128 | ######################################################### |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 129 | # System emulator target |
Juan Quintela | 76dfdd2 | 2009-08-03 14:46:41 +0200 | [diff] [blame] | 130 | ifdef CONFIG_SOFTMMU |
Wanlong Gao | 96d0e26 | 2014-05-14 17:43:05 +0800 | [diff] [blame] | 131 | obj-y += arch_init.o cpus.o monitor.o gdbstub.o balloon.o ioport.o numa.o |
Gonglei | bc74112 | 2014-10-07 16:00:05 +0800 | [diff] [blame] | 132 | obj-y += qtest.o bootdevice.o |
Paolo Bonzini | c353f26 | 2012-05-29 11:49:34 +0200 | [diff] [blame] | 133 | obj-y += hw/ |
Paolo Bonzini | fbe37ef | 2012-05-29 11:48:59 +0200 | [diff] [blame] | 134 | obj-$(CONFIG_KVM) += kvm-all.o |
Juan Quintela | c3049a5 | 2015-05-08 12:49:01 +0200 | [diff] [blame] | 135 | obj-y += memory.o cputlb.o |
Andreas Färber | c22d8e0 | 2013-05-28 14:53:32 +0200 | [diff] [blame] | 136 | obj-y += memory_mapping.o |
Andreas Färber | 2a78636 | 2013-05-17 11:54:40 +0200 | [diff] [blame] | 137 | obj-y += dump.o |
Juan Quintela | c3049a5 | 2015-05-08 12:49:01 +0200 | [diff] [blame] | 138 | obj-y += migration/ram.o migration/savevm.o |
Wei Liu | 7398dfc | 2015-03-09 14:54:33 +0000 | [diff] [blame] | 139 | LIBS := $(libs_softmmu) $(LIBS) |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 140 | |
Anthony PERARD | 3285cf4 | 2010-08-19 12:27:56 +0100 | [diff] [blame] | 141 | # xen support |
Wei Liu | 04b0de0 | 2014-05-07 16:16:43 +0000 | [diff] [blame] | 142 | obj-$(CONFIG_XEN) += xen-common.o |
| 143 | obj-$(CONFIG_XEN_I386) += xen-hvm.o xen-mapcache.o |
| 144 | obj-$(call lnot,$(CONFIG_XEN)) += xen-common-stub.o |
| 145 | obj-$(call lnot,$(CONFIG_XEN_I386)) += xen-hvm-stub.o |
Anthony PERARD | 3285cf4 | 2010-08-19 12:27:56 +0100 | [diff] [blame] | 146 | |
bellard | a541f29 | 2004-04-12 20:39:29 +0000 | [diff] [blame] | 147 | # Hardware support |
Paolo Bonzini | b9a7b74 | 2013-06-04 14:45:26 +0200 | [diff] [blame] | 148 | ifeq ($(TARGET_NAME), sparc64) |
Paolo Bonzini | 5e8861a | 2012-05-29 10:23:15 +0200 | [diff] [blame] | 149 | obj-y += hw/sparc64/ |
bellard | 3475187 | 2005-07-02 14:31:34 +0000 | [diff] [blame] | 150 | else |
Paolo Bonzini | 5e8861a | 2012-05-29 10:23:15 +0200 | [diff] [blame] | 151 | obj-y += hw/$(TARGET_BASE_ARCH)/ |
bellard | 3475187 | 2005-07-02 14:31:34 +0000 | [diff] [blame] | 152 | endif |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 153 | |
Paolo Bonzini | 4115852 | 2012-05-29 12:41:34 +0200 | [diff] [blame] | 154 | GENERATED_HEADERS += hmp-commands.h qmp-commands-old.h |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 155 | |
Juan Quintela | 76dfdd2 | 2009-08-03 14:46:41 +0200 | [diff] [blame] | 156 | endif # CONFIG_SOFTMMU |
bellard | 00a67ba | 2006-10-28 12:19:07 +0000 | [diff] [blame] | 157 | |
Paolo Bonzini | cbdd199 | 2012-11-28 09:40:23 +0100 | [diff] [blame] | 158 | # Workaround for http://gcc.gnu.org/PR55489, see configure. |
| 159 | %/translate.o: QEMU_CFLAGS += $(TRANSLATE_OPT_CFLAGS) |
| 160 | |
Fam Zheng | ba1183d | 2014-02-10 14:48:52 +0800 | [diff] [blame] | 161 | dummy := $(call unnest-vars,,obj-y) |
Paolo Bonzini | d608cc5 | 2014-04-29 17:49:25 +0200 | [diff] [blame] | 162 | all-obj-y := $(obj-y) |
Fam Zheng | ba1183d | 2014-02-10 14:48:52 +0800 | [diff] [blame] | 163 | |
Lluís Vilanova | 341ea69 | 2014-05-30 14:11:56 +0200 | [diff] [blame] | 164 | target-obj-y := |
Fam Zheng | ba1183d | 2014-02-10 14:48:52 +0800 | [diff] [blame] | 165 | block-obj-y := |
| 166 | common-obj-y := |
Paolo Bonzini | 99100dc | 2012-05-22 13:41:27 +0200 | [diff] [blame] | 167 | include $(SRC_PATH)/Makefile.objs |
Lluís Vilanova | 341ea69 | 2014-05-30 14:11:56 +0200 | [diff] [blame] | 168 | dummy := $(call unnest-vars,,target-obj-y) |
| 169 | target-obj-y-save := $(target-obj-y) |
Fam Zheng | cc47569 | 2014-02-10 14:48:59 +0800 | [diff] [blame] | 170 | dummy := $(call unnest-vars,.., \ |
| 171 | block-obj-y \ |
| 172 | block-obj-m \ |
| 173 | common-obj-y \ |
| 174 | common-obj-m) |
Lluís Vilanova | 341ea69 | 2014-05-30 14:11:56 +0200 | [diff] [blame] | 175 | target-obj-y := $(target-obj-y-save) |
Paolo Bonzini | d608cc5 | 2014-04-29 17:49:25 +0200 | [diff] [blame] | 176 | all-obj-y += $(common-obj-y) |
Lluís Vilanova | 341ea69 | 2014-05-30 14:11:56 +0200 | [diff] [blame] | 177 | all-obj-y += $(target-obj-y) |
Fam Zheng | ba1183d | 2014-02-10 14:48:52 +0800 | [diff] [blame] | 178 | all-obj-$(CONFIG_SOFTMMU) += $(block-obj-y) |
Paolo Bonzini | 7fc5152 | 2012-05-29 09:33:59 +0200 | [diff] [blame] | 179 | |
Michael S. Tsirkin | a9ad5e1 | 2015-02-19 08:48:52 +0100 | [diff] [blame] | 180 | $(QEMU_PROG_BUILD): config-devices.mak |
| 181 | |
Michael Tokarev | 5c40c73 | 2014-04-28 11:03:03 +0400 | [diff] [blame] | 182 | # build either PROG or PROGW |
| 183 | $(QEMU_PROG_BUILD): $(all-obj-y) ../libqemuutil.a ../libqemustub.a |
Michael S. Tsirkin | a9ad5e1 | 2015-02-19 08:48:52 +0100 | [diff] [blame] | 184 | $(call LINK, $(filter-out %.mak, $^)) |
Programmingkid | 4e34017 | 2015-05-19 09:11:17 +0100 | [diff] [blame] | 185 | ifdef CONFIG_DARWIN |
| 186 | $(call quiet-command,Rez -append $(SRC_PATH)/pc-bios/qemu.rsrc -o $@," REZ $(TARGET_DIR)$@") |
| 187 | $(call quiet-command,SetFile -a C $@," SETFILE $(TARGET_DIR)$@") |
| 188 | endif |
Juan Quintela | 1639448 | 2009-07-16 18:34:04 +0200 | [diff] [blame] | 189 | |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 190 | gdbstub-xml.c: $(TARGET_XML_FILES) $(SRC_PATH)/scripts/feature_to_c.sh |
| 191 | $(call quiet-command,rm -f $@ && $(SHELL) $(SRC_PATH)/scripts/feature_to_c.sh $@ $(TARGET_XML_FILES)," GEN $(TARGET_DIR)$@") |
pbrook | 56aebc8 | 2008-10-11 17:55:29 +0000 | [diff] [blame] | 192 | |
Luiz Capitulino | acd0a09 | 2010-09-30 16:00:22 -0300 | [diff] [blame] | 193 | hmp-commands.h: $(SRC_PATH)/hmp-commands.hx |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 194 | $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 195 | |
Anthony Liguori | e319360 | 2011-09-02 12:34:47 -0500 | [diff] [blame] | 196 | qmp-commands-old.h: $(SRC_PATH)/qmp-commands.hx |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 197 | $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") |
blueswir1 | 5824d65 | 2009-03-28 06:44:27 +0000 | [diff] [blame] | 198 | |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 199 | clean: |
Peter Maydell | b54fa7d | 2012-06-20 18:02:33 +0100 | [diff] [blame] | 200 | rm -f *.a *~ $(PROGS) |
| 201 | rm -f $(shell find . -name '*.[od]') |
Anthony Liguori | e319360 | 2011-09-02 12:34:47 -0500 | [diff] [blame] | 202 | rm -f hmp-commands.h qmp-commands-old.h gdbstub-xml.c |
Lluís | 6d8a764 | 2011-08-31 20:30:43 +0200 | [diff] [blame] | 203 | ifdef CONFIG_TRACE_SYSTEMTAP |
Daniel P. Berrange | c276b17 | 2010-11-12 13:20:25 +0000 | [diff] [blame] | 204 | rm -f *.stp |
| 205 | endif |
bellard | 1e43adf | 2003-09-30 20:54:24 +0000 | [diff] [blame] | 206 | |
ths | 5fafdf2 | 2007-09-16 21:08:06 +0000 | [diff] [blame] | 207 | install: all |
bellard | 9b14bb0 | 2004-03-26 22:43:34 +0000 | [diff] [blame] | 208 | ifneq ($(PROGS),) |
Michael Tokarev | 0d65942 | 2014-06-22 10:55:23 +0400 | [diff] [blame] | 209 | $(call install-prog,$(PROGS),$(DESTDIR)$(bindir)) |
bellard | 9b14bb0 | 2004-03-26 22:43:34 +0000 | [diff] [blame] | 210 | endif |
Lluís | 6d8a764 | 2011-08-31 20:30:43 +0200 | [diff] [blame] | 211 | ifdef CONFIG_TRACE_SYSTEMTAP |
Eduardo Habkost | 6aae2a2 | 2012-04-18 16:55:41 -0300 | [diff] [blame] | 212 | $(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)/../systemtap/tapset" |
Alon Levy | c14518e | 2013-06-14 15:19:07 +0100 | [diff] [blame] | 213 | $(INSTALL_DATA) $(QEMU_PROG).stp-installed "$(DESTDIR)$(qemu_datadir)/../systemtap/tapset/$(QEMU_PROG).stp" |
Stefan Hajnoczi | e0b2fd0 | 2014-06-22 21:46:07 +0800 | [diff] [blame] | 214 | $(INSTALL_DATA) $(QEMU_PROG)-simpletrace.stp "$(DESTDIR)$(qemu_datadir)/../systemtap/tapset/$(QEMU_PROG)-simpletrace.stp" |
Daniel P. Berrange | c276b17 | 2010-11-12 13:20:25 +0000 | [diff] [blame] | 215 | endif |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 216 | |
Paolo Bonzini | 4115852 | 2012-05-29 12:41:34 +0200 | [diff] [blame] | 217 | GENERATED_HEADERS += config-target.h |
| 218 | Makefile: $(GENERATED_HEADERS) |