Anthony Liguori | 562593a | 2009-08-04 08:24:23 -0500 | [diff] [blame] | 1 | # -*- Mode: makefile -*- |
| 2 | |
Paul Brook | a992fe3 | 2009-11-22 16:25:30 +0000 | [diff] [blame] | 3 | GENERATED_HEADERS = config-target.h |
Isaku Yamahata | b3a29fd | 2010-12-22 19:54:48 +0900 | [diff] [blame] | 4 | CONFIG_NO_PCI = $(if $(subst n,,$(CONFIG_PCI)),n,y) |
Paolo Bonzini | 98c8573 | 2010-04-19 18:59:30 +0000 | [diff] [blame] | 5 | CONFIG_NO_KVM = $(if $(subst n,,$(CONFIG_KVM)),n,y) |
Jan Kiszka | 6dbd588 | 2011-06-21 22:59:07 +0200 | [diff] [blame] | 6 | CONFIG_NO_XEN = $(if $(subst n,,$(CONFIG_XEN)),n,y) |
Juan Quintela | f527c57 | 2009-11-05 17:19:57 +0100 | [diff] [blame] | 7 | |
Juan Quintela | deed3cc | 2009-10-07 02:40:57 +0200 | [diff] [blame] | 8 | include ../config-host.mak |
Juan Quintela | 1f3d3c8 | 2009-10-07 02:41:02 +0200 | [diff] [blame] | 9 | include config-devices.mak |
Juan Quintela | 25be210f | 2009-10-07 02:41:00 +0200 | [diff] [blame] | 10 | include config-target.mak |
aliguori | 1775918 | 2009-01-21 18:12:52 +0000 | [diff] [blame] | 11 | include $(SRC_PATH)/rules.mak |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 12 | ifneq ($(HWDIR),) |
| 13 | include $(HWDIR)/config.mak |
| 14 | endif |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 15 | |
bellard | 0b0babc | 2005-01-03 23:38:40 +0000 | [diff] [blame] | 16 | TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH) |
Paolo Bonzini | 076d247 | 2009-12-21 10:06:55 +0100 | [diff] [blame] | 17 | $(call set-vpath, $(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw) |
Jan Kiszka | af2be20 | 2011-06-23 10:05:12 +0200 | [diff] [blame] | 18 | ifdef CONFIG_LINUX |
| 19 | QEMU_CFLAGS += -I../linux-headers |
| 20 | endif |
| 21 | QEMU_CFLAGS += -I.. -I$(TARGET_PATH) -DNEED_CPU_H |
bellard | 1e43adf | 2003-09-30 20:54:24 +0000 | [diff] [blame] | 22 | |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 23 | include $(SRC_PATH)/Makefile.objs |
| 24 | |
bellard | 16e9b7d | 2003-10-27 21:09:52 +0000 | [diff] [blame] | 25 | ifdef CONFIG_USER_ONLY |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 26 | # user emulator name |
| 27 | QEMU_PROG=qemu-$(TARGET_ARCH2) |
bellard | 16e9b7d | 2003-10-27 21:09:52 +0000 | [diff] [blame] | 28 | else |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 29 | # system emulator name |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 30 | QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF) |
bellard | de5eaa6 | 2003-11-16 23:18:17 +0000 | [diff] [blame] | 31 | endif |
bellard | 728c9fd | 2004-01-05 00:08:14 +0000 | [diff] [blame] | 32 | |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 33 | PROGS=$(QEMU_PROG) |
Peter Maydell | b884170 | 2010-11-16 20:07:07 +0000 | [diff] [blame] | 34 | STPFILES= |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 35 | |
Andreas Färber | aff447c | 2010-09-20 00:50:45 +0200 | [diff] [blame] | 36 | ifndef CONFIG_HAIKU |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 37 | LIBS+=-lm |
Andreas Färber | aff447c | 2010-09-20 00:50:45 +0200 | [diff] [blame] | 38 | endif |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 39 | |
Juan Quintela | 91880d9 | 2009-10-07 02:41:01 +0200 | [diff] [blame] | 40 | config-target.h: config-target.h-timestamp |
| 41 | config-target.h-timestamp: config-target.mak |
| 42 | |
Lluís | 6d8a764 | 2011-08-31 20:30:43 +0200 | [diff] [blame] | 43 | ifdef CONFIG_TRACE_SYSTEMTAP |
Daniel P. Berrange | c276b17 | 2010-11-12 13:20:25 +0000 | [diff] [blame] | 44 | stap: $(QEMU_PROG).stp |
| 45 | |
| 46 | ifdef CONFIG_USER_ONLY |
| 47 | TARGET_TYPE=user |
| 48 | else |
| 49 | TARGET_TYPE=system |
| 50 | endif |
| 51 | |
| 52 | $(QEMU_PROG).stp: |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 53 | $(call quiet-command,sh $(SRC_PATH)/scripts/tracetool \ |
Daniel P. Berrange | c276b17 | 2010-11-12 13:20:25 +0000 | [diff] [blame] | 54 | --$(TRACE_BACKEND) \ |
| 55 | --binary $(bindir)/$(QEMU_PROG) \ |
| 56 | --target-arch $(TARGET_ARCH) \ |
| 57 | --target-type $(TARGET_TYPE) \ |
| 58 | --stap < $(SRC_PATH)/trace-events > $(QEMU_PROG).stp," GEN $(QEMU_PROG).stp") |
| 59 | else |
| 60 | stap: |
| 61 | endif |
| 62 | |
| 63 | all: $(PROGS) stap |
Juan Quintela | 91880d9 | 2009-10-07 02:41:01 +0200 | [diff] [blame] | 64 | |
Paul Brook | c2fb263 | 2009-05-25 18:54:53 +0100 | [diff] [blame] | 65 | # Dummy command so that make thinks it has done something |
| 66 | @true |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 67 | |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 68 | ######################################################### |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 69 | # cpu emulator library |
Blue Swirl | c2b023b | 2009-09-20 19:20:05 +0000 | [diff] [blame] | 70 | libobj-y = exec.o translate-all.o cpu-exec.o translate.o |
Kirill Batuzov | 8f2e8c0 | 2011-07-07 16:37:12 +0400 | [diff] [blame] | 71 | libobj-y += tcg/tcg.o tcg/optimize.o |
Aurelien Jarno | cf67c6b | 2011-05-15 14:09:18 +0200 | [diff] [blame] | 72 | libobj-y += fpu/softfloat.o |
Juan Quintela | c9e0df7 | 2009-06-25 00:08:00 +0200 | [diff] [blame] | 73 | libobj-y += op_helper.o helper.o |
Andre Przywara | c6dc6f6 | 2010-03-11 14:38:55 +0100 | [diff] [blame] | 74 | ifeq ($(TARGET_BASE_ARCH), i386) |
| 75 | libobj-y += cpuid.o |
| 76 | endif |
Juan Quintela | 471857d | 2009-08-03 14:46:52 +0200 | [diff] [blame] | 77 | libobj-$(CONFIG_NEED_MMU) += mmu.o |
Juan Quintela | e18ea86 | 2009-08-03 14:47:04 +0200 | [diff] [blame] | 78 | libobj-$(TARGET_ARM) += neon_helper.o iwmmxt_helper.o |
j_mayer | cf6c1b1 | 2007-04-05 20:46:02 +0000 | [diff] [blame] | 79 | |
Juan Quintela | c9e0df7 | 2009-06-25 00:08:00 +0200 | [diff] [blame] | 80 | libobj-y += disas.o |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 81 | |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 82 | $(libobj-y): $(GENERATED_HEADERS) |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 83 | |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 84 | # libqemu |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 85 | |
aurel32 | 86e840e | 2008-12-07 15:21:23 +0000 | [diff] [blame] | 86 | translate.o: translate.c cpu.h |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 87 | |
aurel32 | 86e840e | 2008-12-07 15:21:23 +0000 | [diff] [blame] | 88 | translate-all.o: translate-all.c cpu.h |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 89 | |
aurel32 | 86e840e | 2008-12-07 15:21:23 +0000 | [diff] [blame] | 90 | tcg/tcg.o: cpu.h |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 91 | |
| 92 | # HELPER_CFLAGS is used for all the code compiled with static register |
| 93 | # variables |
Blue Swirl | a3ce366 | 2011-07-20 20:23:01 +0000 | [diff] [blame] | 94 | op_helper.o user-exec.o: QEMU_CFLAGS += $(HELPER_CFLAGS) |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 95 | |
Juan Quintela | c81da56 | 2009-08-03 14:46:24 +0200 | [diff] [blame] | 96 | # Note: this is a workaround. The real fix is to avoid compiling |
Blue Swirl | 42a623c | 2011-05-08 11:22:38 +0000 | [diff] [blame] | 97 | # cpu_signal_handler() in user-exec.c. |
Juan Quintela | c81da56 | 2009-08-03 14:46:24 +0200 | [diff] [blame] | 98 | signal.o: QEMU_CFLAGS += $(HELPER_CFLAGS) |
| 99 | |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 100 | ######################################################### |
| 101 | # Linux user emulator target |
| 102 | |
| 103 | ifdef CONFIG_LINUX_USER |
| 104 | |
Paolo Bonzini | 076d247 | 2009-12-21 10:06:55 +0100 | [diff] [blame] | 105 | $(call set-vpath, $(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)) |
| 106 | |
Mike Frysinger | c3109ba | 2011-02-07 01:05:54 -0500 | [diff] [blame] | 107 | QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR) -I$(SRC_PATH)/linux-user |
Blue Swirl | 3702208 | 2009-08-15 07:51:59 +0000 | [diff] [blame] | 108 | obj-y = main.o syscall.o strace.o mmap.o signal.o thunk.o \ |
Richard Henderson | 680c877 | 2010-05-21 10:37:52 -0700 | [diff] [blame] | 109 | elfload.o linuxload.o uaccess.o gdbstub.o cpu-uname.o \ |
Anthony Liguori | 41a7482 | 2011-08-20 22:23:03 -0500 | [diff] [blame] | 110 | user-exec.o $(oslib-obj-y) |
Blue Swirl | 5ba6531 | 2009-08-15 07:52:19 +0000 | [diff] [blame] | 111 | |
Juan Quintela | 943e0a3 | 2009-06-25 00:08:10 +0200 | [diff] [blame] | 112 | obj-$(TARGET_HAS_BFLT) += flatload.o |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 113 | |
Juan Quintela | e18ea86 | 2009-08-03 14:47:04 +0200 | [diff] [blame] | 114 | obj-$(TARGET_I386) += vm86.o |
Juan Quintela | 1c87267 | 2009-07-16 18:34:03 +0200 | [diff] [blame] | 115 | |
Blue Swirl | e27b27b | 2009-08-16 07:39:33 +0000 | [diff] [blame] | 116 | obj-i386-y += ioport-user.o |
Blue Swirl | 5ba6531 | 2009-08-15 07:52:19 +0000 | [diff] [blame] | 117 | |
Juan Quintela | ed69c30 | 2009-08-03 14:47:01 +0200 | [diff] [blame] | 118 | nwfpe-obj-y = fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o |
Juan Quintela | 9c1dd99 | 2009-07-16 17:57:04 +0200 | [diff] [blame] | 119 | nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o |
Juan Quintela | 1c87267 | 2009-07-16 18:34:03 +0200 | [diff] [blame] | 120 | obj-arm-y += $(addprefix nwfpe/, $(nwfpe-obj-y)) |
| 121 | obj-arm-y += arm-semi.o |
| 122 | |
| 123 | obj-m68k-y += m68k-sim.o m68k-semi.o |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 124 | |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 125 | $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS) |
| 126 | |
| 127 | obj-y += $(addprefix ../libuser/, $(user-obj-y)) |
Blue Swirl | 4d90453 | 2010-03-21 08:28:47 +0000 | [diff] [blame] | 128 | obj-y += $(addprefix ../libdis-user/, $(libdis-y)) |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 129 | obj-y += $(libobj-y) |
Blue Swirl | add1615 | 2009-09-27 16:26:02 +0000 | [diff] [blame] | 130 | |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 131 | endif #CONFIG_LINUX_USER |
| 132 | |
| 133 | ######################################################### |
| 134 | # Darwin user emulator target |
| 135 | |
| 136 | ifdef CONFIG_DARWIN_USER |
| 137 | |
Paolo Bonzini | 076d247 | 2009-12-21 10:06:55 +0100 | [diff] [blame] | 138 | $(call set-vpath, $(SRC_PATH)/darwin-user) |
| 139 | |
Juan Quintela | a558ee1 | 2009-08-03 14:46:21 +0200 | [diff] [blame] | 140 | QEMU_CFLAGS+=-I$(SRC_PATH)/darwin-user -I$(SRC_PATH)/darwin-user/$(TARGET_ARCH) |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 141 | |
| 142 | # Leave some space for the regular program loading zone |
| 143 | LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000 |
| 144 | |
| 145 | LIBS+=-lmx |
| 146 | |
Juan Quintela | a8e492c | 2009-06-25 00:08:01 +0200 | [diff] [blame] | 147 | obj-y = main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o \ |
Blue Swirl | 42a623c | 2011-05-08 11:22:38 +0000 | [diff] [blame] | 148 | gdbstub.o user-exec.o |
Blue Swirl | 5ba6531 | 2009-08-15 07:52:19 +0000 | [diff] [blame] | 149 | |
Blue Swirl | e27b27b | 2009-08-16 07:39:33 +0000 | [diff] [blame] | 150 | obj-i386-y += ioport-user.o |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 151 | |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 152 | $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS) |
| 153 | |
| 154 | obj-y += $(addprefix ../libuser/, $(user-obj-y)) |
Blue Swirl | 4d90453 | 2010-03-21 08:28:47 +0000 | [diff] [blame] | 155 | obj-y += $(addprefix ../libdis-user/, $(libdis-y)) |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 156 | obj-y += $(libobj-y) |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 157 | |
| 158 | endif #CONFIG_DARWIN_USER |
| 159 | |
| 160 | ######################################################### |
blueswir1 | 8477850 | 2008-10-26 20:33:16 +0000 | [diff] [blame] | 161 | # BSD user emulator target |
| 162 | |
| 163 | ifdef CONFIG_BSD_USER |
| 164 | |
Paolo Bonzini | 076d247 | 2009-12-21 10:06:55 +0100 | [diff] [blame] | 165 | $(call set-vpath, $(SRC_PATH)/bsd-user) |
| 166 | |
Juan Quintela | a558ee1 | 2009-08-03 14:46:21 +0200 | [diff] [blame] | 167 | QEMU_CFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ARCH) |
blueswir1 | 8477850 | 2008-10-26 20:33:16 +0000 | [diff] [blame] | 168 | |
Blue Swirl | 3702208 | 2009-08-15 07:51:59 +0000 | [diff] [blame] | 169 | obj-y = main.o bsdload.o elfload.o mmap.o signal.o strace.o syscall.o \ |
Blue Swirl | 42a623c | 2011-05-08 11:22:38 +0000 | [diff] [blame] | 170 | gdbstub.o uaccess.o user-exec.o |
Blue Swirl | 5ba6531 | 2009-08-15 07:52:19 +0000 | [diff] [blame] | 171 | |
Blue Swirl | e27b27b | 2009-08-16 07:39:33 +0000 | [diff] [blame] | 172 | obj-i386-y += ioport-user.o |
blueswir1 | 8477850 | 2008-10-26 20:33:16 +0000 | [diff] [blame] | 173 | |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 174 | $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS) |
| 175 | |
| 176 | obj-y += $(addprefix ../libuser/, $(user-obj-y)) |
Blue Swirl | 4d90453 | 2010-03-21 08:28:47 +0000 | [diff] [blame] | 177 | obj-y += $(addprefix ../libdis-user/, $(libdis-y)) |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 178 | obj-y += $(libobj-y) |
blueswir1 | 8477850 | 2008-10-26 20:33:16 +0000 | [diff] [blame] | 179 | |
| 180 | endif #CONFIG_BSD_USER |
| 181 | |
| 182 | ######################################################### |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 183 | # System emulator target |
Juan Quintela | 76dfdd2 | 2009-08-03 14:46:41 +0200 | [diff] [blame] | 184 | ifdef CONFIG_SOFTMMU |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 185 | |
Blue Swirl | 04c9a0c | 2010-04-19 19:46:13 +0000 | [diff] [blame] | 186 | obj-y = arch_init.o cpus.o monitor.o machine.o gdbstub.o balloon.o |
aliguori | 1fd31ad | 2008-12-18 01:56:22 +0000 | [diff] [blame] | 187 | # virtio has to be here due to weird dependency between PCI and virtio-net. |
| 188 | # need to fix this properly |
Isaku Yamahata | b3a29fd | 2010-12-22 19:54:48 +0900 | [diff] [blame] | 189 | obj-$(CONFIG_NO_PCI) += pci-stub.o |
Blue Swirl | 21673cd | 2011-07-14 15:22:20 +0000 | [diff] [blame] | 190 | obj-$(CONFIG_VIRTIO) += virtio.o virtio-blk.o virtio-balloon.o virtio-net.o virtio-serial-bus.o |
Michael S. Tsirkin | d597005 | 2010-03-17 13:08:17 +0200 | [diff] [blame] | 191 | obj-y += vhost_net.o |
| 192 | obj-$(CONFIG_VHOST_NET) += vhost.o |
Aneesh Kumar K.V | f4f61d2 | 2011-06-01 12:35:13 +0530 | [diff] [blame] | 193 | obj-$(CONFIG_REALLY_VIRTFS) += 9pfs/virtio-9p-device.o |
Juan Quintela | a8e492c | 2009-06-25 00:08:01 +0200 | [diff] [blame] | 194 | obj-$(CONFIG_KVM) += kvm.o kvm-all.o |
Paolo Bonzini | 98c8573 | 2010-04-19 18:59:30 +0000 | [diff] [blame] | 195 | obj-$(CONFIG_NO_KVM) += kvm-stub.o |
Avi Kivity | 093bc2c | 2011-07-26 14:26:01 +0300 | [diff] [blame] | 196 | obj-y += memory.o |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 197 | LIBS+=-lz |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 198 | |
Juan Quintela | a558ee1 | 2009-08-03 14:46:21 +0200 | [diff] [blame] | 199 | QEMU_CFLAGS += $(VNC_TLS_CFLAGS) |
Juan Quintela | a558ee1 | 2009-08-03 14:46:21 +0200 | [diff] [blame] | 200 | QEMU_CFLAGS += $(VNC_SASL_CFLAGS) |
Corentin Chary | 2f6f5c7 | 2010-07-07 20:57:49 +0200 | [diff] [blame] | 201 | QEMU_CFLAGS += $(VNC_JPEG_CFLAGS) |
Corentin Chary | efe556a | 2010-07-07 20:57:56 +0200 | [diff] [blame] | 202 | QEMU_CFLAGS += $(VNC_PNG_CFLAGS) |
Anthony Liguori | e18df14 | 2011-07-19 14:50:29 -0500 | [diff] [blame] | 203 | QEMU_CFLAGS += $(GLIB_CFLAGS) |
aliguori | 2f9606b | 2009-03-06 20:27:28 +0000 | [diff] [blame] | 204 | |
Anthony PERARD | 3285cf4 | 2010-08-19 12:27:56 +0100 | [diff] [blame] | 205 | # xen support |
Jan Kiszka | 868bb33 | 2011-06-21 22:59:09 +0200 | [diff] [blame] | 206 | obj-$(CONFIG_XEN) += xen-all.o xen_machine_pv.o xen_domainbuild.o xen-mapcache.o |
Anthony PERARD | 3285cf4 | 2010-08-19 12:27:56 +0100 | [diff] [blame] | 207 | obj-$(CONFIG_NO_XEN) += xen-stub.o |
| 208 | |
Steven Smith | 01195b7 | 2011-06-16 17:05:17 +0100 | [diff] [blame] | 209 | obj-i386-$(CONFIG_XEN) += xen_platform.o |
| 210 | |
Cam Macdonell | 6cbf4c8 | 2010-07-27 10:54:13 -0600 | [diff] [blame] | 211 | # Inter-VM PCI shared memory |
Alexander Graf | 1b01b4e | 2011-03-29 15:29:28 +0200 | [diff] [blame] | 212 | CONFIG_IVSHMEM = |
| 213 | ifeq ($(CONFIG_KVM), y) |
| 214 | ifeq ($(CONFIG_PCI), y) |
| 215 | CONFIG_IVSHMEM = y |
| 216 | endif |
| 217 | endif |
| 218 | obj-$(CONFIG_IVSHMEM) += ivshmem.o |
Cam Macdonell | 6cbf4c8 | 2010-07-27 10:54:13 -0600 | [diff] [blame] | 219 | |
bellard | a541f29 | 2004-04-12 20:39:29 +0000 | [diff] [blame] | 220 | # Hardware support |
Blue Swirl | 7f55c7c | 2010-03-21 19:47:03 +0000 | [diff] [blame] | 221 | obj-i386-y += vga.o |
Blue Swirl | 2d48377 | 2010-03-21 19:47:11 +0000 | [diff] [blame] | 222 | obj-i386-y += mc146818rtc.o i8259.o pc.o |
Glauber Costa | a90d469 | 2011-05-16 15:45:08 -0300 | [diff] [blame] | 223 | obj-i386-y += cirrus_vga.o sga.o apic.o ioapic.o piix_pci.o |
Blue Swirl | 1c9c5fc | 2011-02-13 12:31:28 +0000 | [diff] [blame] | 224 | obj-i386-y += vmport.o |
Markus Armbruster | 09aaa16 | 2009-08-21 10:31:34 +0200 | [diff] [blame] | 225 | obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o wdt_ib700.o |
Blue Swirl | d3ffc7a | 2010-03-21 19:47:10 +0000 | [diff] [blame] | 226 | obj-i386-y += debugcon.o multiboot.o |
Jan Kiszka | af2be20 | 2011-06-23 10:05:12 +0200 | [diff] [blame] | 227 | obj-i386-y += pc_piix.o |
| 228 | obj-i386-$(CONFIG_KVM) += kvmclock.o |
Gerd Hoffmann | a19cbfb | 2010-04-27 11:50:11 +0200 | [diff] [blame] | 229 | obj-i386-$(CONFIG_SPICE) += qxl.o qxl-logger.o qxl-render.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 230 | |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 231 | # shared objects |
Blue Swirl | 02c7c99 | 2010-03-29 19:23:57 +0000 | [diff] [blame] | 232 | obj-ppc-y = ppc.o |
Blue Swirl | 4556bd8 | 2010-05-22 08:00:52 +0000 | [diff] [blame] | 233 | obj-ppc-y += vga.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 234 | # PREP target |
Blue Swirl | 956a3e6 | 2010-05-22 07:59:01 +0000 | [diff] [blame] | 235 | obj-ppc-y += i8259.o mc146818rtc.o |
Blue Swirl | add85a7 | 2010-03-29 19:24:04 +0000 | [diff] [blame] | 236 | obj-ppc-y += ppc_prep.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 237 | # OldWorld PowerMac |
Blue Swirl | 2b5eb37 | 2010-03-30 17:36:23 +0000 | [diff] [blame] | 238 | obj-ppc-y += ppc_oldworld.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 239 | # NewWorld PowerMac |
Blue Swirl | 2b5eb37 | 2010-03-30 17:36:23 +0000 | [diff] [blame] | 240 | obj-ppc-y += ppc_newworld.o |
David Gibson | 4040ab7 | 2011-04-01 15:15:21 +1100 | [diff] [blame] | 241 | # IBM pSeries (sPAPR) |
David Gibson | 9fdf0c2 | 2011-04-01 15:15:20 +1100 | [diff] [blame] | 242 | ifeq ($(CONFIG_FDT)$(TARGET_PPC64),yy) |
David Gibson | 39ac845 | 2011-04-01 15:15:23 +1100 | [diff] [blame] | 243 | obj-ppc-y += spapr.o spapr_hcall.o spapr_rtas.o spapr_vio.o |
Ben Herrenschmidt | 6e27044 | 2011-04-01 15:15:31 +1100 | [diff] [blame] | 244 | obj-ppc-y += xics.o spapr_vty.o spapr_llan.o spapr_vscsi.o |
David Gibson | 9fdf0c2 | 2011-04-01 15:15:20 +1100 | [diff] [blame] | 245 | endif |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 246 | # PowerPC 4xx boards |
Blue Swirl | 5f9fc5a | 2010-03-29 19:23:55 +0000 | [diff] [blame] | 247 | obj-ppc-y += ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 248 | obj-ppc-y += ppc440.o ppc440_bamboo.o |
| 249 | # PowerPC E500 boards |
Alexander Graf | b0fb842 | 2011-06-02 13:53:40 +0200 | [diff] [blame] | 250 | obj-ppc-y += ppce500_mpc8544ds.o mpc8544_guts.o |
Edgar E. Iglesias | 2c50e26 | 2010-09-29 15:31:44 +0200 | [diff] [blame] | 251 | # PowerPC 440 Xilinx ML507 reference board. |
| 252 | obj-ppc-y += virtex_ml507.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 253 | obj-ppc-$(CONFIG_KVM) += kvm_ppc.o |
Juan Quintela | 3f0855b | 2009-07-27 16:12:52 +0200 | [diff] [blame] | 254 | obj-ppc-$(CONFIG_FDT) += device_tree.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 255 | |
Edgar E. Iglesias | 2c50e26 | 2010-09-29 15:31:44 +0200 | [diff] [blame] | 256 | # Xilinx PPC peripherals |
| 257 | obj-ppc-y += xilinx_intc.o |
| 258 | obj-ppc-y += xilinx_timer.o |
| 259 | obj-ppc-y += xilinx_uartlite.o |
| 260 | obj-ppc-y += xilinx_ethlite.o |
| 261 | |
Michael Walle | d821732 | 2011-02-17 23:45:14 +0100 | [diff] [blame] | 262 | # LM32 boards |
| 263 | obj-lm32-y += lm32_boards.o |
Michael Walle | 5052d22 | 2011-03-07 23:32:44 +0100 | [diff] [blame] | 264 | obj-lm32-y += milkymist.o |
Michael Walle | d821732 | 2011-02-17 23:45:14 +0100 | [diff] [blame] | 265 | |
Michael Walle | 81ea0e1 | 2011-02-17 23:45:02 +0100 | [diff] [blame] | 266 | # LM32 peripherals |
Michael Walle | 4ef66fa | 2011-02-17 23:45:07 +0100 | [diff] [blame] | 267 | obj-lm32-y += lm32_pic.o |
Michael Walle | 15d7dc4 | 2011-02-17 23:45:08 +0100 | [diff] [blame] | 268 | obj-lm32-y += lm32_juart.o |
Michael Walle | ea7924d | 2011-02-17 23:45:10 +0100 | [diff] [blame] | 269 | obj-lm32-y += lm32_timer.o |
Michael Walle | 770ae57 | 2011-02-17 23:45:11 +0100 | [diff] [blame] | 270 | obj-lm32-y += lm32_uart.o |
Michael Walle | f19410c | 2011-02-17 23:45:12 +0100 | [diff] [blame] | 271 | obj-lm32-y += lm32_sys.o |
Michael Walle | 25a8bb9 | 2011-03-07 23:32:32 +0100 | [diff] [blame] | 272 | obj-lm32-y += milkymist-ac97.o |
Michael Walle | e4dc6d2 | 2011-03-07 23:32:33 +0100 | [diff] [blame] | 273 | obj-lm32-y += milkymist-hpdmc.o |
Michael Walle | b4e37d9 | 2011-03-07 23:32:34 +0100 | [diff] [blame] | 274 | obj-lm32-y += milkymist-memcard.o |
Michael Walle | 57aa265 | 2011-04-13 00:29:36 +0200 | [diff] [blame] | 275 | obj-lm32-y += milkymist-minimac2.o |
Michael Walle | 5ee18b9 | 2011-03-07 23:32:36 +0100 | [diff] [blame] | 276 | obj-lm32-y += milkymist-pfpu.o |
Michael Walle | 87a381e | 2011-03-07 23:32:37 +0100 | [diff] [blame] | 277 | obj-lm32-y += milkymist-softusb.o |
Michael Walle | 9683242 | 2011-03-07 23:32:38 +0100 | [diff] [blame] | 278 | obj-lm32-y += milkymist-sysctl.o |
Michael Walle | 0670dad | 2011-03-07 23:32:40 +0100 | [diff] [blame] | 279 | obj-lm32-$(CONFIG_OPENGL) += milkymist-tmu2.o |
Michael Walle | 883de16 | 2011-03-07 23:32:41 +0100 | [diff] [blame] | 280 | obj-lm32-y += milkymist-uart.o |
Michael Walle | d23948b | 2011-03-07 23:32:42 +0100 | [diff] [blame] | 281 | obj-lm32-y += milkymist-vgafb.o |
| 282 | obj-lm32-y += framebuffer.o |
Michael Walle | 81ea0e1 | 2011-02-17 23:45:02 +0100 | [diff] [blame] | 283 | |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 284 | obj-mips-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o |
Aurelien Jarno | 409dbce | 2010-03-14 21:20:59 +0100 | [diff] [blame] | 285 | obj-mips-y += mips_addr.o mips_timer.o mips_int.o |
Blue Swirl | 4556bd8 | 2010-05-22 08:00:52 +0000 | [diff] [blame] | 286 | obj-mips-y += vga.o i8259.o |
Blue Swirl | 1213406 | 2011-09-04 20:51:28 +0000 | [diff] [blame] | 287 | obj-mips-y += jazz_led.o |
Blue Swirl | 956a3e6 | 2010-05-22 07:59:01 +0000 | [diff] [blame] | 288 | obj-mips-y += gt64xxx.o mc146818rtc.o |
Blue Swirl | 08af49d | 2010-07-03 06:49:47 +0000 | [diff] [blame] | 289 | obj-mips-y += cirrus_vga.o |
Huacai Chen | 051c190 | 2010-06-29 10:50:43 +0800 | [diff] [blame] | 290 | obj-mips-$(CONFIG_FULONG) += bonito.o vt82c686.o mips_fulong2e.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 291 | |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 292 | obj-microblaze-y = petalogix_s3adsp1800_mmu.o |
Michal Simek | 00914b7 | 2011-03-14 11:29:19 +0100 | [diff] [blame] | 293 | obj-microblaze-y += petalogix_ml605_mmu.o |
Edgar E. Iglesias | 72b675c | 2009-05-20 21:17:31 +0200 | [diff] [blame] | 294 | |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 295 | obj-microblaze-y += microblaze_pic_cpu.o |
| 296 | obj-microblaze-y += xilinx_intc.o |
| 297 | obj-microblaze-y += xilinx_timer.o |
| 298 | obj-microblaze-y += xilinx_uartlite.o |
| 299 | obj-microblaze-y += xilinx_ethlite.o |
Edgar E. Iglesias | 93f1e40 | 2011-03-14 11:13:55 +0100 | [diff] [blame] | 300 | obj-microblaze-y += xilinx_axidma.o |
| 301 | obj-microblaze-y += xilinx_axienet.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 302 | |
Juan Quintela | 3f0855b | 2009-07-27 16:12:52 +0200 | [diff] [blame] | 303 | obj-microblaze-$(CONFIG_FDT) += device_tree.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 304 | |
edgar_igl | 10c144e | 2009-01-07 12:19:50 +0000 | [diff] [blame] | 305 | # Boards |
Edgar E. Iglesias | 77d4f95 | 2010-06-10 14:45:46 +0200 | [diff] [blame] | 306 | obj-cris-y = cris_pic_cpu.o |
| 307 | obj-cris-y += cris-boot.o |
Edgar E. Iglesias | 77d4f95 | 2010-06-10 14:45:46 +0200 | [diff] [blame] | 308 | obj-cris-y += axis_dev88.o |
edgar_igl | 10c144e | 2009-01-07 12:19:50 +0000 | [diff] [blame] | 309 | |
| 310 | # IO blocks |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 311 | obj-cris-y += etraxfs_dma.o |
| 312 | obj-cris-y += etraxfs_pic.o |
| 313 | obj-cris-y += etraxfs_eth.o |
| 314 | obj-cris-y += etraxfs_timer.o |
| 315 | obj-cris-y += etraxfs_ser.o |
edgar_igl | e62b5b1 | 2008-03-14 01:04:24 +0000 | [diff] [blame] | 316 | |
bellard | 3475187 | 2005-07-02 14:31:34 +0000 | [diff] [blame] | 317 | ifeq ($(TARGET_ARCH), sparc64) |
Blue Swirl | 956a3e6 | 2010-05-22 07:59:01 +0000 | [diff] [blame] | 318 | obj-sparc-y = sun4u.o apb_pci.o |
Blue Swirl | 1afdfdd | 2010-03-21 19:47:00 +0000 | [diff] [blame] | 319 | obj-sparc-y += vga.o |
Blue Swirl | 2d48377 | 2010-03-21 19:47:11 +0000 | [diff] [blame] | 320 | obj-sparc-y += mc146818rtc.o |
Blue Swirl | b994504 | 2010-03-21 19:47:01 +0000 | [diff] [blame] | 321 | obj-sparc-y += cirrus_vga.o |
bellard | 3475187 | 2005-07-02 14:31:34 +0000 | [diff] [blame] | 322 | else |
Blue Swirl | 2405669 | 2010-04-03 07:35:50 +0000 | [diff] [blame] | 323 | obj-sparc-y = sun4m.o lance.o tcx.o sun4m_iommu.o slavio_intctl.o |
Blue Swirl | 35da37e | 2010-03-21 19:47:06 +0000 | [diff] [blame] | 324 | obj-sparc-y += slavio_timer.o slavio_misc.o sparc32_dma.o |
Fabien Chouteau | b04d989 | 2011-01-24 12:56:55 +0100 | [diff] [blame] | 325 | obj-sparc-y += cs4231.o eccmemctl.o sbi.o sun4c_intctl.o leon3.o |
| 326 | |
| 327 | # GRLIB |
| 328 | obj-sparc-y += grlib_gptimer.o grlib_irqmp.o grlib_apbuart.o |
bellard | 3475187 | 2005-07-02 14:31:34 +0000 | [diff] [blame] | 329 | endif |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 330 | |
Paul Brook | f165b53 | 2009-11-19 16:42:45 +0000 | [diff] [blame] | 331 | obj-arm-y = integratorcp.o versatilepb.o arm_pic.o arm_timer.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 332 | obj-arm-y += arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o |
| 333 | obj-arm-y += versatile_pci.o |
Paul Brook | f7c7032 | 2009-11-19 16:45:21 +0000 | [diff] [blame] | 334 | obj-arm-y += realview_gic.o realview.o arm_sysctl.o arm11mpcore.o a9mpcore.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 335 | obj-arm-y += armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o |
| 336 | obj-arm-y += pl061.o |
| 337 | obj-arm-y += arm-semi.o |
| 338 | obj-arm-y += pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o |
| 339 | obj-arm-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o |
Blue Swirl | 3d08ff6 | 2010-03-29 19:23:56 +0000 | [diff] [blame] | 340 | obj-arm-y += gumstix.o |
Blue Swirl | f7736b9 | 2010-03-27 06:20:53 +0000 | [diff] [blame] | 341 | obj-arm-y += zaurus.o ide/microdrive.o spitz.o tosa.o tc6393xb.o |
cmchao | 02d7434 | 2010-05-31 23:54:23 +0800 | [diff] [blame] | 342 | obj-arm-y += omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o \ |
| 343 | omap_gpio.o omap_intc.o omap_uart.o |
cmchao | 2c1d9ec | 2010-05-31 23:54:22 +0800 | [diff] [blame] | 344 | obj-arm-y += omap2.o omap_dss.o soc_dma.o omap_gptimer.o omap_synctimer.o \ |
| 345 | omap_gpmc.o omap_sdrc.o omap_spi.o omap_tap.o omap_l4.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 346 | obj-arm-y += omap_sx1.o palm.o tsc210x.o |
| 347 | obj-arm-y += nseries.o blizzard.o onenand.o vga.o cbus.o tusb6010.o usb-musb.o |
| 348 | obj-arm-y += mst_fpga.o mainstone.o |
Vasily Khoruzhick | 3bf1120 | 2011-07-06 16:52:49 +0300 | [diff] [blame] | 349 | obj-arm-y += z2.o |
Blue Swirl | 5f9fc5a | 2010-03-29 19:23:55 +0000 | [diff] [blame] | 350 | obj-arm-y += musicpal.o bitbang_i2c.o marvell_88w8618_audio.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 351 | obj-arm-y += framebuffer.o |
| 352 | obj-arm-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o |
| 353 | obj-arm-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o |
| 354 | obj-arm-y += syborg_virtio.o |
Peter Maydell | 2055283 | 2011-03-07 11:10:32 +0000 | [diff] [blame] | 355 | obj-arm-y += vexpress.o |
Dmitry Eremin-Solenikov | 5bc95aa | 2011-04-19 18:56:45 +0400 | [diff] [blame] | 356 | obj-arm-y += strongarm.o |
Dmitry Eremin-Solenikov | c64b21d | 2011-04-19 18:56:46 +0400 | [diff] [blame] | 357 | obj-arm-y += collie.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 358 | |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 359 | obj-sh4-y = shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o |
Blue Swirl | 2d48377 | 2010-03-21 19:47:11 +0000 | [diff] [blame] | 360 | obj-sh4-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o |
Blue Swirl | f7736b9 | 2010-03-27 06:20:53 +0000 | [diff] [blame] | 361 | obj-sh4-y += ide/mmio.o |
Juan Quintela | 9637443 | 2009-07-16 18:33:58 +0200 | [diff] [blame] | 362 | |
| 363 | obj-m68k-y = an5206.o mcf5206.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o |
| 364 | obj-m68k-y += m68k-semi.o dummy_m68k.o |
| 365 | |
Alexander Graf | 8cb310e | 2009-12-05 12:44:28 +0100 | [diff] [blame] | 366 | obj-s390x-y = s390-virtio-bus.o s390-virtio.o |
Alexander Graf | f3304ee | 2009-12-05 12:44:27 +0100 | [diff] [blame] | 367 | |
Richard Henderson | b758aca | 2011-05-20 14:02:28 -0700 | [diff] [blame] | 368 | obj-alpha-y = i8259.o mc146818rtc.o |
| 369 | obj-alpha-y += vga.o cirrus_vga.o |
Richard Henderson | 6049f4f | 2009-12-27 18:30:03 -0800 | [diff] [blame] | 370 | |
Max Filippov | 2328826 | 2011-09-06 03:55:25 +0400 | [diff] [blame] | 371 | obj-xtensa-y += xtensa_pic.o |
Max Filippov | 7b039f7 | 2011-09-06 03:55:30 +0400 | [diff] [blame] | 372 | obj-xtensa-y += xtensa_sample.o |
Max Filippov | 47d05a8 | 2011-09-06 03:55:55 +0400 | [diff] [blame] | 373 | obj-xtensa-y += xtensa_dc232b.o |
Max Filippov | 1ddeaa5 | 2011-09-06 03:55:47 +0400 | [diff] [blame] | 374 | obj-xtensa-y += xtensa-semi.o |
Max Filippov | 2328826 | 2011-09-06 03:55:25 +0400 | [diff] [blame] | 375 | |
Blue Swirl | ad96090 | 2010-03-29 19:23:52 +0000 | [diff] [blame] | 376 | main.o: QEMU_CFLAGS+=$(GPROF_CFLAGS) |
blueswir1 | 5824d65 | 2009-03-28 06:44:27 +0000 | [diff] [blame] | 377 | |
Luiz Capitulino | acd0a09 | 2010-09-30 16:00:22 -0300 | [diff] [blame] | 378 | monitor.o: hmp-commands.h qmp-commands.h |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 379 | |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 380 | $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS) |
| 381 | |
| 382 | obj-y += $(addprefix ../, $(common-obj-y)) |
Blue Swirl | 4d90453 | 2010-03-21 08:28:47 +0000 | [diff] [blame] | 383 | obj-y += $(addprefix ../libdis/, $(libdis-y)) |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 384 | obj-y += $(libobj-y) |
| 385 | obj-y += $(addprefix $(HWDIR)/, $(hw-obj-y)) |
Lluís Vilanova | 937b125 | 2011-09-15 22:45:42 +0200 | [diff] [blame] | 386 | obj-y += $(addprefix ../, $(trace-obj-y)) |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 387 | |
Juan Quintela | 76dfdd2 | 2009-08-03 14:46:41 +0200 | [diff] [blame] | 388 | endif # CONFIG_SOFTMMU |
bellard | 00a67ba | 2006-10-28 12:19:07 +0000 | [diff] [blame] | 389 | |
Robert Relyea | 111a38b | 2010-11-28 16:36:38 +0200 | [diff] [blame] | 390 | ifndef CONFIG_LINUX_USER |
Brad | 0fc6b58 | 2011-08-22 16:39:59 -0400 | [diff] [blame] | 391 | ifndef CONFIG_BSD_USER |
Robert Relyea | 111a38b | 2010-11-28 16:36:38 +0200 | [diff] [blame] | 392 | # libcacard needs qemu-thread support, and besides is only needed by devices |
Brad | 0fc6b58 | 2011-08-22 16:39:59 -0400 | [diff] [blame] | 393 | # so not requires with linux-user / bsd-user targets |
Robert Relyea | 111a38b | 2010-11-28 16:36:38 +0200 | [diff] [blame] | 394 | obj-$(CONFIG_SMARTCARD_NSS) += $(addprefix ../libcacard/, $(libcacard-y)) |
Brad | 0fc6b58 | 2011-08-22 16:39:59 -0400 | [diff] [blame] | 395 | endif # CONFIG_BSD_USER |
Robert Relyea | 111a38b | 2010-11-28 16:36:38 +0200 | [diff] [blame] | 396 | endif # CONFIG_LINUX_USER |
| 397 | |
Juan Quintela | 3d0f151 | 2009-10-07 02:41:04 +0200 | [diff] [blame] | 398 | obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o |
| 399 | |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 400 | $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) |
Lluís | e03b41d | 2011-08-31 20:30:30 +0200 | [diff] [blame] | 401 | $(call LINK,$^) |
Juan Quintela | 1639448 | 2009-07-16 18:34:04 +0200 | [diff] [blame] | 402 | |
| 403 | |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 404 | gdbstub-xml.c: $(TARGET_XML_FILES) $(SRC_PATH)/scripts/feature_to_c.sh |
| 405 | $(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] | 406 | |
Luiz Capitulino | acd0a09 | 2010-09-30 16:00:22 -0300 | [diff] [blame] | 407 | hmp-commands.h: $(SRC_PATH)/hmp-commands.hx |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 408 | $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 409 | |
Luiz Capitulino | f36b4af | 2010-09-15 17:17:45 -0300 | [diff] [blame] | 410 | qmp-commands.h: $(SRC_PATH)/qmp-commands.hx |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 411 | $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@") |
blueswir1 | 5824d65 | 2009-03-28 06:44:27 +0000 | [diff] [blame] | 412 | |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 413 | clean: |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 414 | rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o |
Aneesh Kumar K.V | 353ac78 | 2011-01-28 18:09:08 +0530 | [diff] [blame] | 415 | rm -f *.d */*.d tcg/*.o ide/*.o 9pfs/*.o |
Luiz Capitulino | acd0a09 | 2010-09-30 16:00:22 -0300 | [diff] [blame] | 416 | rm -f hmp-commands.h qmp-commands.h gdbstub-xml.c |
Lluís | 6d8a764 | 2011-08-31 20:30:43 +0200 | [diff] [blame] | 417 | ifdef CONFIG_TRACE_SYSTEMTAP |
Daniel P. Berrange | c276b17 | 2010-11-12 13:20:25 +0000 | [diff] [blame] | 418 | rm -f *.stp |
| 419 | endif |
bellard | 1e43adf | 2003-09-30 20:54:24 +0000 | [diff] [blame] | 420 | |
ths | 5fafdf2 | 2007-09-16 21:08:06 +0000 | [diff] [blame] | 421 | install: all |
bellard | 9b14bb0 | 2004-03-26 22:43:34 +0000 | [diff] [blame] | 422 | ifneq ($(PROGS),) |
Hollis Blanchard | 52ba784 | 2010-08-04 17:21:34 -0700 | [diff] [blame] | 423 | $(INSTALL) -m 755 $(PROGS) "$(DESTDIR)$(bindir)" |
| 424 | ifneq ($(STRIP),) |
| 425 | $(STRIP) $(patsubst %,"$(DESTDIR)$(bindir)/%",$(PROGS)) |
| 426 | endif |
bellard | 9b14bb0 | 2004-03-26 22:43:34 +0000 | [diff] [blame] | 427 | endif |
Lluís | 6d8a764 | 2011-08-31 20:30:43 +0200 | [diff] [blame] | 428 | ifdef CONFIG_TRACE_SYSTEMTAP |
Daniel P. Berrange | c276b17 | 2010-11-12 13:20:25 +0000 | [diff] [blame] | 429 | $(INSTALL_DIR) "$(DESTDIR)$(datadir)/../systemtap/tapset" |
| 430 | $(INSTALL_DATA) $(QEMU_PROG).stp "$(DESTDIR)$(datadir)/../systemtap/tapset" |
| 431 | endif |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 432 | |
j_mayer | 2f96c28 | 2007-10-28 13:07:12 +0000 | [diff] [blame] | 433 | # Include automatically generated dependency files |
| 434 | -include $(wildcard *.d */*.d) |