root / Makefile @ 581d45f0
History | View | Annotate | Download (12.7 kB)
1 | 0cb3fb1e | pbrook | # Makefile for QEMU. |
---|---|---|---|
2 | 0cb3fb1e | pbrook | |
3 | 55d7e8f6 | aurel32 | ifneq ($(wildcard config-host.mak),) |
4 | 1ad2134f | Paul Brook | # Put the all: rule here so that config-host.mak can contain dependencies. |
5 | 1ad2134f | Paul Brook | all: build-all |
6 | ad064840 | pbrook | include config-host.mak |
7 | 17759187 | aliguori | include $(SRC_PATH)/rules.mak |
8 | e5efe7f5 | Juan Quintela | config-host.mak: configure |
9 | e5efe7f5 | Juan Quintela | @echo $@ is out-of-date, running configure |
10 | e5efe7f5 | Juan Quintela | @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh |
11 | 55d7e8f6 | aurel32 | else |
12 | 55d7e8f6 | aurel32 | config-host.mak: |
13 | 55d7e8f6 | aurel32 | @echo "Please call configure before running make!" |
14 | 55d7e8f6 | aurel32 | @exit 1 |
15 | 55d7e8f6 | aurel32 | endif |
16 | 766a487a | bellard | |
17 | d9ace8b3 | Juan Quintela | # Don't try to regenerate Makefile or configure |
18 | d9ace8b3 | Juan Quintela | # We don't generate any of them |
19 | d9ace8b3 | Juan Quintela | Makefile: ; |
20 | d9ace8b3 | Juan Quintela | configure: ; |
21 | d9ace8b3 | Juan Quintela | |
22 | 818220f5 | aliguori | .PHONY: all clean cscope distclean dvi html info install install-doc \ |
23 | 9c927650 | Juan Quintela | recurse-all speed tar tarbin test build-all |
24 | 0cb3fb1e | pbrook | |
25 | 8c462f8f | pbrook | VPATH=$(SRC_PATH):$(SRC_PATH)/hw |
26 | 8c462f8f | pbrook | |
27 | 3e2e0e6b | Juan Quintela | LIBS+=-lz $(LIBS_TOOLS) |
28 | 67c0f08d | Juan Quintela | |
29 | cc8ae6de | pbrook | ifdef BUILD_DOCS |
30 | 7a5ca864 | bellard | DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 |
31 | cc8ae6de | pbrook | else |
32 | cc8ae6de | pbrook | DOCS= |
33 | cc8ae6de | pbrook | endif |
34 | aa05ae6f | bellard | |
35 | 1215c6e7 | Juan Quintela | SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) |
36 | 1f3d3c8f | Juan Quintela | SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS)) |
37 | 1f3d3c8f | Juan Quintela | |
38 | 1f3d3c8f | Juan Quintela | config-all-devices.mak: $(SUBDIR_DEVICES_MAK) |
39 | 1f3d3c8f | Juan Quintela | $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep "=y$$" | sort -u > $@," GEN $@") |
40 | 1f3d3c8f | Juan Quintela | |
41 | 1f3d3c8f | Juan Quintela | -include config-all-devices.mak |
42 | 1215c6e7 | Juan Quintela | |
43 | 581d45f0 | Stefan Weil | build-all: config-host.h config-all-devices.h $(DOCS) $(TOOLS) |
44 | 581d45f0 | Stefan Weil | $(call quiet-command, $(MAKE) $(SUBDIR_MAKEFLAGS) recurse-all,) |
45 | b9dea4fb | pbrook | |
46 | 1215c6e7 | Juan Quintela | config-host.h: config-host.h-timestamp |
47 | 1215c6e7 | Juan Quintela | config-host.h-timestamp: config-host.mak |
48 | 1215c6e7 | Juan Quintela | |
49 | fe0d4d3f | Juan Quintela | config-all-devices.h: config-all-devices.h-timestamp |
50 | fe0d4d3f | Juan Quintela | config-all-devices.h-timestamp: config-all-devices.mak |
51 | fe0d4d3f | Juan Quintela | |
52 | cec7d0b6 | pbrook | SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) |
53 | cec7d0b6 | pbrook | |
54 | fe0d4d3f | Juan Quintela | subdir-%: config-host.h config-all-devices.h |
55 | 0087375e | Paul Brook | $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,) |
56 | 4aa42531 | pbrook | |
57 | cec7d0b6 | pbrook | $(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a |
58 | c05ac895 | Paul Brook | |
59 | add16157 | Blue Swirl | $(filter %-user,$(SUBDIR_RULES)): libuser.a |
60 | add16157 | Blue Swirl | |
61 | add16157 | Blue Swirl | libuser.a: |
62 | 6a8a2803 | Blue Swirl | $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libuser V="$(V)" TARGET_DIR="libuser/" all,) |
63 | add16157 | Blue Swirl | |
64 | c05ac895 | Paul Brook | ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS)) |
65 | c05ac895 | Paul Brook | romsubdir-%: |
66 | c05ac895 | Paul Brook | $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pc-bios/$* V="$(V)" TARGET_DIR="$*/",) |
67 | c05ac895 | Paul Brook | |
68 | c05ac895 | Paul Brook | ALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS)) |
69 | c05ac895 | Paul Brook | |
70 | c05ac895 | Paul Brook | recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES) |
71 | 83f64091 | bellard | |
72 | faf07963 | pbrook | ####################################################################### |
73 | 319f08ea | Juan Quintela | # block-obj-y is code used by both qemu system emulation and qemu-img |
74 | faf07963 | pbrook | |
75 | 319f08ea | Juan Quintela | block-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o |
76 | a25a0ef5 | Anthony Liguori | block-obj-y += nbd.o block.o aio.o aes.o osdep.o |
77 | 4dd75c70 | Christoph Hellwig | block-obj-$(CONFIG_POSIX) += posix-aio-compat.o |
78 | 5c6c3a6c | Christoph Hellwig | block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o |
79 | 1a65ba76 | Juan Quintela | |
80 | 9aebd98a | Stefan Weil | block-nested-y += cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o |
81 | 1a65ba76 | Juan Quintela | block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o |
82 | 1a65ba76 | Juan Quintela | block-nested-y += parallels.o nbd.o |
83 | eeb6d45b | Juan Quintela | block-nested-$(CONFIG_WIN32) += raw-win32.o |
84 | eeb6d45b | Juan Quintela | block-nested-$(CONFIG_POSIX) += raw-posix.o |
85 | 1a65ba76 | Juan Quintela | block-nested-$(CONFIG_CURL) += curl.o |
86 | 1a65ba76 | Juan Quintela | |
87 | 1a65ba76 | Juan Quintela | block-obj-y += $(addprefix block/, $(block-nested-y)) |
88 | 769ce76d | Alexander Graf | |
89 | 4fb240a4 | bellard | ###################################################################### |
90 | 2e2ea909 | bellard | # libqemu_common.a: Target independent part of system emulation. The |
91 | 4fb240a4 | bellard | # long term path is to suppress *all* target specific code in case of |
92 | 4fb240a4 | bellard | # system emulation, i.e. a single QEMU executable should support all |
93 | 4fb240a4 | bellard | # CPUs and machines. |
94 | 47cea614 | bellard | |
95 | 6ef859b3 | Juan Quintela | obj-y = $(block-obj-y) |
96 | 34005a00 | Kirill A. Shutemov | obj-y += readline.o console.o |
97 | 6ef859b3 | Juan Quintela | |
98 | c2b023b6 | Blue Swirl | obj-y += tcg-runtime.o host-utils.o |
99 | 5f74377c | Juan Quintela | obj-y += irq.o ioport.o |
100 | 5f74377c | Juan Quintela | obj-$(CONFIG_PTIMER) += ptimer.o |
101 | ae573db3 | Juan Quintela | obj-$(CONFIG_MAX7310) += max7310.o |
102 | 976ca9ab | Juan Quintela | obj-$(CONFIG_WM8750) += wm8750.o |
103 | 92eb6b4e | Juan Quintela | obj-$(CONFIG_TWL92230) += twl92230.o |
104 | 3c848e2a | Juan Quintela | obj-$(CONFIG_TSC2005) += tsc2005.o |
105 | 03aba0e3 | Juan Quintela | obj-$(CONFIG_LM832X) += lm832x.o |
106 | d9b44620 | Juan Quintela | obj-$(CONFIG_TMP105) += tmp105.o |
107 | 4aa5b83f | Juan Quintela | obj-$(CONFIG_STELLARIS_INPUT) += stellaris_input.o |
108 | 6a559be5 | Juan Quintela | obj-$(CONFIG_SSD0303) += ssd0303.o |
109 | 54bcf074 | Juan Quintela | obj-$(CONFIG_SSD0323) += ssd0323.o |
110 | 20a4afc4 | Juan Quintela | obj-$(CONFIG_ADS7846) += ads7846.o |
111 | ee99ca01 | Juan Quintela | obj-$(CONFIG_MAX111X) += max111x.o |
112 | ee99ca01 | Juan Quintela | obj-y += i2c.o smbus.o smbus_eeprom.o |
113 | d9b44620 | Juan Quintela | obj-y += eeprom93xx.o |
114 | 6ef859b3 | Juan Quintela | obj-y += scsi-disk.o cdrom.o |
115 | d52affa7 | Gerd Hoffmann | obj-y += scsi-generic.o scsi-bus.o |
116 | 6ef859b3 | Juan Quintela | obj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o |
117 | 806b6024 | Gerd Hoffmann | obj-y += usb-serial.o usb-net.o usb-bus.o |
118 | c62c4551 | Juan Quintela | obj-$(CONFIG_SSI) += ssi.o |
119 | 93a60400 | Juan Quintela | obj-$(CONFIG_SSI_SD) += ssi-sd.o |
120 | b21fd8e6 | Juan Quintela | obj-$(CONFIG_SD) += sd.o |
121 | 6ef859b3 | Juan Quintela | obj-y += bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o usb-bt.o |
122 | 6ef859b3 | Juan Quintela | obj-y += bt-hci-csr.o |
123 | f7105843 | Mark McLoughlin | obj-y += buffered_file.o migration.o migration-tcp.o qemu-sockets.o |
124 | f7105843 | Mark McLoughlin | obj-y += net.o net-queue.o |
125 | 3b47612b | Juan Quintela | obj-y += qemu-char.o aio.o net-checksum.o savevm.o |
126 | 6ef859b3 | Juan Quintela | obj-y += msmouse.o ps2.o |
127 | c62c4551 | Juan Quintela | obj-y += qdev.o qdev-properties.o |
128 | a6fd08eb | Luiz Capitulino | obj-y += qint.o qstring.o qdict.o qlist.o qemu-config.o |
129 | 87ecb68b | pbrook | |
130 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_BRLAPI) += baum.o |
131 | eeb6d45b | Juan Quintela | obj-$(CONFIG_WIN32) += tap-win32.o |
132 | 5ac1fad3 | Paolo Bonzini | obj-$(CONFIG_POSIX) += migration-exec.o migration-unix.o migration-fd.o |
133 | 4fb240a4 | bellard | |
134 | 98b068a9 | Juan Quintela | audio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS) |
135 | 0e22fd2f | Juan Quintela | |
136 | 0e22fd2f | Juan Quintela | audio-obj-y = audio.o noaudio.o wavaudio.o mixeng.o |
137 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_SDL) += sdlaudio.o |
138 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_OSS) += ossaudio.o |
139 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_COREAUDIO) += coreaudio.o |
140 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_ALSA) += alsaaudio.o |
141 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_DSOUND) += dsoundaudio.o |
142 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_FMOD) += fmodaudio.o |
143 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_ESD) += esdaudio.o |
144 | 0e22fd2f | Juan Quintela | audio-obj-$(CONFIG_PA) += paaudio.o |
145 | d5631638 | malc | audio-obj-$(CONFIG_WINWAVE) += winwaveaudio.o |
146 | 67f86e8e | Juan Quintela | audio-obj-$(CONFIG_AUDIO_PT_INT) += audio_pt_int.o |
147 | d5631638 | malc | audio-obj-$(CONFIG_AUDIO_WIN_INT) += audio_win_int.o |
148 | eda959bd | Juan Quintela | audio-obj-y += wavcapture.o |
149 | 6ef859b3 | Juan Quintela | obj-y += $(addprefix audio/, $(audio-obj-y)) |
150 | 4fb240a4 | bellard | |
151 | 6ef859b3 | Juan Quintela | obj-y += keymaps.o |
152 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o |
153 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_CURSES) += curses.o |
154 | 6ef859b3 | Juan Quintela | obj-y += vnc.o acl.o d3des.o |
155 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o |
156 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o |
157 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_COCOA) += cocoa.o |
158 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_IOTHREAD) += qemu-thread.o |
159 | e5d355d1 | aliguori | |
160 | f835ed1c | Juan Quintela | slirp-obj-y = cksum.o if.o ip_icmp.o ip_input.o ip_output.o |
161 | f835ed1c | Juan Quintela | slirp-obj-y += slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o |
162 | f835ed1c | Juan Quintela | slirp-obj-y += tcp_subr.o tcp_timer.o udp.o bootp.o tftp.o |
163 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y)) |
164 | 4fb240a4 | bellard | |
165 | 2567f579 | Blue Swirl | # xen backend driver support |
166 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_XEN) += xen_backend.o xen_devconfig.o |
167 | 0e22fd2f | Juan Quintela | obj-$(CONFIG_XEN) += xen_console.o xenfb.o xen_disk.o xen_nic.o |
168 | 2567f579 | Blue Swirl | |
169 | a558ee17 | Juan Quintela | QEMU_CFLAGS+=$(CURL_CFLAGS) |
170 | 769ce76d | Alexander Graf | |
171 | 4fb240a4 | bellard | cocoa.o: cocoa.m |
172 | 4fb240a4 | bellard | |
173 | 0483755a | aliguori | keymaps.o: keymaps.c keymaps.h |
174 | 0483755a | aliguori | |
175 | c18a2c36 | Stefano Stabellini | sdl_zoom.o: sdl_zoom.c sdl_zoom.h sdl_zoom_template.h |
176 | c18a2c36 | Stefano Stabellini | |
177 | c18a2c36 | Stefano Stabellini | sdl.o: sdl.c keymaps.h sdl_keysym.h sdl_zoom.h |
178 | 807544e2 | aliguori | |
179 | a558ee17 | Juan Quintela | sdl.o audio/sdlaudio.o sdl_zoom.o baum.o: QEMU_CFLAGS += $(SDL_CFLAGS) |
180 | 4fb240a4 | bellard | |
181 | 76655d6d | aliguori | acl.o: acl.h acl.c |
182 | 76655d6d | aliguori | |
183 | 2f9606b3 | aliguori | vnc.h: vnc-tls.h vnc-auth-vencrypt.h vnc-auth-sasl.h keymaps.h |
184 | 5fb6c7a8 | aliguori | |
185 | 76655d6d | aliguori | vnc.o: vnc.c vnc.h vnc_keysym.h vnchextile.h d3des.c d3des.h acl.h |
186 | 4fb240a4 | bellard | |
187 | a558ee17 | Juan Quintela | vnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS) |
188 | 4d3b6f6e | balrog | |
189 | 5fb6c7a8 | aliguori | vnc-tls.o: vnc-tls.c vnc.h |
190 | 5fb6c7a8 | aliguori | |
191 | 5fb6c7a8 | aliguori | vnc-auth-vencrypt.o: vnc-auth-vencrypt.c vnc.h |
192 | 5fb6c7a8 | aliguori | |
193 | 2f9606b3 | aliguori | vnc-auth-sasl.o: vnc-auth-sasl.c vnc.h |
194 | 2f9606b3 | aliguori | |
195 | 0483755a | aliguori | curses.o: curses.c keymaps.h curses_keys.h |
196 | fb599c9a | balrog | |
197 | a558ee17 | Juan Quintela | bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS) |
198 | 4fb240a4 | bellard | |
199 | 6ef859b3 | Juan Quintela | libqemu_common.a: $(obj-y) |
200 | 4fb240a4 | bellard | |
201 | 4fb240a4 | bellard | ###################################################################### |
202 | 4fb240a4 | bellard | |
203 | 153859be | Stuart Brady | qemu-img.o: qemu-img-cmds.h |
204 | 153859be | Stuart Brady | |
205 | a25a0ef5 | Anthony Liguori | qemu-img$(EXESUF): qemu-img.o qemu-tool.o $(block-obj-y) |
206 | 4fb240a4 | bellard | |
207 | a25a0ef5 | Anthony Liguori | qemu-nbd$(EXESUF): qemu-nbd.o qemu-tool.o $(block-obj-y) |
208 | 3aa892d7 | aliguori | |
209 | a25a0ef5 | Anthony Liguori | qemu-io$(EXESUF): qemu-io.o qemu-tool.o cmd.o $(block-obj-y) |
210 | 0a8e1acd | aliguori | |
211 | 153859be | Stuart Brady | qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx |
212 | 153859be | Stuart Brady | $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $@") |
213 | 153859be | Stuart Brady | |
214 | 33837ba6 | Luiz Capitulino | check-qint: check-qint.o qint.o qemu-malloc.o |
215 | 5de65a07 | Luiz Capitulino | check-qstring: check-qstring.o qstring.o qemu-malloc.o |
216 | 7b8c51ad | Luiz Capitulino | check-qdict: check-qdict.o qdict.o qint.o qstring.o qemu-malloc.o |
217 | 3aa3dcff | Luiz Capitulino | check-qlist: check-qlist.o qlist.o qint.o qemu-malloc.o |
218 | 33837ba6 | Luiz Capitulino | |
219 | 31e31b8a | bellard | clean: |
220 | 2d80ae89 | bellard | # avoid old build problems by removing potentially incorrect old files |
221 | 25be210f | Juan Quintela | rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h |
222 | 86e840ee | aurel32 | rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~ |
223 | 019d6b8f | Anthony Liguori | rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d |
224 | 07b44ce9 | Blue Swirl | rm -f qemu-img-cmds.h |
225 | 7d3505c5 | bellard | $(MAKE) -C tests clean |
226 | add16157 | Blue Swirl | for d in $(ALL_SUBDIRS) libhw32 libhw64 libuser; do \ |
227 | 7d3505c5 | bellard | $(MAKE) -C $$d $@ || exit 1 ; \ |
228 | 626df76a | bellard | done |
229 | 31e31b8a | bellard | |
230 | 7d13299d | bellard | distclean: clean |
231 | 1215c6e7 | Juan Quintela | rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi |
232 | 1f3d3c8f | Juan Quintela | rm -f config-all-devices.mak config-all-devices.h* |
233 | 0cb3fb1e | pbrook | rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr} |
234 | add16157 | Blue Swirl | for d in $(TARGET_DIRS) libhw32 libhw64 libuser; do \ |
235 | bc1b050d | bellard | rm -rf $$d || exit 1 ; \ |
236 | 76bc6838 | bellard | done |
237 | 7d13299d | bellard | |
238 | fed4a9ad | bellard | KEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \ |
239 | fed4a9ad | bellard | ar de en-us fi fr-be hr it lv nl pl ru th \ |
240 | fed4a9ad | bellard | common de-ch es fo fr-ca hu ja mk nl-be pt sl tr |
241 | fed4a9ad | bellard | |
242 | 77755340 | ths | ifdef INSTALL_BLOBS |
243 | 77755340 | ths | BLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \ |
244 | e5d01b06 | aurel32 | video.x openbios-sparc32 openbios-sparc64 openbios-ppc \ |
245 | e5d01b06 | aurel32 | pxe-ne2k_pci.bin pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin \ |
246 | 253d0942 | Alexander Graf | bamboo.dtb petalogix-s3adsp1800.dtb \ |
247 | 253d0942 | Alexander Graf | multiboot.bin |
248 | 77755340 | ths | else |
249 | 77755340 | ths | BLOBS= |
250 | 77755340 | ths | endif |
251 | 77755340 | ths | |
252 | 38954dca | pbrook | install-doc: $(DOCS) |
253 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(docdir)" |
254 | 58f8aead | aliguori | $(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)" |
255 | 96d409eb | Juan Quintela | ifdef CONFIG_POSIX |
256 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1" |
257 | 58f8aead | aliguori | $(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1" |
258 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8" |
259 | 58f8aead | aliguori | $(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8" |
260 | 38954dca | pbrook | endif |
261 | 38954dca | pbrook | |
262 | 38954dca | pbrook | install: all $(if $(BUILD_DOCS),install-doc) |
263 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(bindir)" |
264 | 932a79df | ths | ifneq ($(TOOLS),) |
265 | 58f8aead | aliguori | $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)" |
266 | 932a79df | ths | endif |
267 | 77755340 | ths | ifneq ($(BLOBS),) |
268 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(datadir)" |
269 | 77755340 | ths | set -e; for x in $(BLOBS); do \ |
270 | 58f8aead | aliguori | $(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \ |
271 | ad064840 | pbrook | done |
272 | 77755340 | ths | endif |
273 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps" |
274 | 18be8d77 | blueswir1 | set -e; for x in $(KEYMAPS); do \ |
275 | 79fd42aa | Anthony Liguori | $(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \ |
276 | ad064840 | pbrook | done |
277 | 626df76a | bellard | for d in $(TARGET_DIRS); do \ |
278 | 7d3505c5 | bellard | $(MAKE) -C $$d $@ || exit 1 ; \ |
279 | 626df76a | bellard | done |
280 | 612384d7 | bellard | |
281 | 367e86e8 | bellard | # various test targets |
282 | 9b0b8203 | bellard | test speed: all |
283 | 7d3505c5 | bellard | $(MAKE) -C tests $@ |
284 | 31e31b8a | bellard | |
285 | 21d4e8e3 | Alexandre Bique | .PHONY: TAGS |
286 | 5fafdf24 | ths | TAGS: |
287 | 21d4e8e3 | Alexandre Bique | find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags |
288 | 31e31b8a | bellard | |
289 | 6688bc6d | bellard | cscope: |
290 | 6688bc6d | bellard | rm -f ./cscope.* |
291 | ede46085 | aurel32 | find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files |
292 | 6688bc6d | bellard | cscope -b |
293 | 6688bc6d | bellard | |
294 | 3ef693a0 | bellard | # documentation |
295 | 1f673135 | bellard | %.html: %.texi |
296 | 0d00e563 | aliguori | $(call quiet-command,texi2html -I=. -monolithic -number $<," GEN $@") |
297 | 3ef693a0 | bellard | |
298 | f3548328 | bellard | %.info: %.texi |
299 | 0d00e563 | aliguori | $(call quiet-command,makeinfo -I . $< -o $@," GEN $@") |
300 | f3548328 | bellard | |
301 | f3548328 | bellard | %.dvi: %.texi |
302 | 0d00e563 | aliguori | $(call quiet-command,texi2dvi -I . $<," GEN $@") |
303 | 5824d651 | blueswir1 | |
304 | 5824d651 | blueswir1 | qemu-options.texi: $(SRC_PATH)/qemu-options.hx |
305 | 0d00e563 | aliguori | $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@") |
306 | f3548328 | bellard | |
307 | 2313086a | Blue Swirl | qemu-monitor.texi: $(SRC_PATH)/qemu-monitor.hx |
308 | 2313086a | Blue Swirl | $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@") |
309 | 2313086a | Blue Swirl | |
310 | 153859be | Stuart Brady | qemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx |
311 | 153859be | Stuart Brady | $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@") |
312 | 153859be | Stuart Brady | |
313 | 2313086a | Blue Swirl | qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi |
314 | 0d00e563 | aliguori | $(call quiet-command, \ |
315 | 0d00e563 | aliguori | perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \ |
316 | 0d00e563 | aliguori | pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \ |
317 | 0d00e563 | aliguori | " GEN $@") |
318 | 5a67135a | bellard | |
319 | 153859be | Stuart Brady | qemu-img.1: qemu-img.texi qemu-img-cmds.texi |
320 | 0d00e563 | aliguori | $(call quiet-command, \ |
321 | 0d00e563 | aliguori | perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \ |
322 | 0d00e563 | aliguori | pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \ |
323 | 0d00e563 | aliguori | " GEN $@") |
324 | acd935ef | bellard | |
325 | 7a5ca864 | bellard | qemu-nbd.8: qemu-nbd.texi |
326 | 0d00e563 | aliguori | $(call quiet-command, \ |
327 | 0d00e563 | aliguori | perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod && \ |
328 | 0d00e563 | aliguori | pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \ |
329 | 0d00e563 | aliguori | " GEN $@") |
330 | 7a5ca864 | bellard | |
331 | 0cb3fb1e | pbrook | info: qemu-doc.info qemu-tech.info |
332 | 0cb3fb1e | pbrook | |
333 | 0cb3fb1e | pbrook | dvi: qemu-doc.dvi qemu-tech.dvi |
334 | 0cb3fb1e | pbrook | |
335 | 0cb3fb1e | pbrook | html: qemu-doc.html qemu-tech.html |
336 | 0cb3fb1e | pbrook | |
337 | 153859be | Stuart Brady | qemu-doc.dvi qemu-doc.html qemu-doc.info: qemu-img.texi qemu-nbd.texi qemu-options.texi qemu-monitor.texi qemu-img-cmds.texi |
338 | 818220f5 | aliguori | |
339 | df5cf721 | ths | VERSION ?= $(shell cat VERSION) |
340 | df5cf721 | ths | FILE = qemu-$(VERSION) |
341 | 586314f2 | bellard | |
342 | 1e43adfc | bellard | # tar release (use 'make -k tar' on a checkouted tree) |
343 | 586314f2 | bellard | tar: |
344 | 586314f2 | bellard | rm -rf /tmp/$(FILE) |
345 | 1e43adfc | bellard | cp -r . /tmp/$(FILE) |
346 | 99c6c082 | aurel32 | cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .git --exclude .svn |
347 | 586314f2 | bellard | rm -rf /tmp/$(FILE) |
348 | 586314f2 | bellard | |
349 | 76b62fd0 | bellard | # generate a binary distribution |
350 | d691f669 | bellard | tarbin: |
351 | 18be8d77 | blueswir1 | cd / && tar zcvf ~/qemu-$(VERSION)-$(ARCH).tar.gz \ |
352 | 43095f31 | bellard | $(bindir)/qemu \ |
353 | 43095f31 | bellard | $(bindir)/qemu-system-x86_64 \ |
354 | 40e8a53b | aurel32 | $(bindir)/qemu-system-arm \ |
355 | 40e8a53b | aurel32 | $(bindir)/qemu-system-cris \ |
356 | 40e8a53b | aurel32 | $(bindir)/qemu-system-m68k \ |
357 | bc6291a1 | Edgar E. Iglesias | $(bindir)/qemu-system-microblaze \ |
358 | 93856aac | bellard | $(bindir)/qemu-system-mips \ |
359 | 38260998 | pbrook | $(bindir)/qemu-system-mipsel \ |
360 | fbe4f65b | ths | $(bindir)/qemu-system-mips64 \ |
361 | fbe4f65b | ths | $(bindir)/qemu-system-mips64el \ |
362 | 40e8a53b | aurel32 | $(bindir)/qemu-system-ppc \ |
363 | 40e8a53b | aurel32 | $(bindir)/qemu-system-ppcemb \ |
364 | 40e8a53b | aurel32 | $(bindir)/qemu-system-ppc64 \ |
365 | ff1aaf65 | ths | $(bindir)/qemu-system-sh4 \ |
366 | 85ffbdfc | ths | $(bindir)/qemu-system-sh4eb \ |
367 | 40e8a53b | aurel32 | $(bindir)/qemu-system-sparc \ |
368 | 7efa4387 | bellard | $(bindir)/qemu-i386 \ |
369 | f0403c03 | bellard | $(bindir)/qemu-x86_64 \ |
370 | 40e8a53b | aurel32 | $(bindir)/qemu-alpha \ |
371 | 40e8a53b | aurel32 | $(bindir)/qemu-arm \ |
372 | 40e8a53b | aurel32 | $(bindir)/qemu-armeb \ |
373 | 40e8a53b | aurel32 | $(bindir)/qemu-cris \ |
374 | 40e8a53b | aurel32 | $(bindir)/qemu-m68k \ |
375 | bc6291a1 | Edgar E. Iglesias | $(bindir)/qemu-microblaze \ |
376 | 40e8a53b | aurel32 | $(bindir)/qemu-mips \ |
377 | 40e8a53b | aurel32 | $(bindir)/qemu-mipsel \ |
378 | 40e8a53b | aurel32 | $(bindir)/qemu-ppc \ |
379 | 40e8a53b | aurel32 | $(bindir)/qemu-ppc64 \ |
380 | 40e8a53b | aurel32 | $(bindir)/qemu-ppc64abi32 \ |
381 | 40e8a53b | aurel32 | $(bindir)/qemu-sh4 \ |
382 | 40e8a53b | aurel32 | $(bindir)/qemu-sh4eb \ |
383 | 40e8a53b | aurel32 | $(bindir)/qemu-sparc \ |
384 | 40e8a53b | aurel32 | $(bindir)/qemu-sparc64 \ |
385 | 40e8a53b | aurel32 | $(bindir)/qemu-sparc32plus \ |
386 | 40e8a53b | aurel32 | $(bindir)/qemu-img \ |
387 | 40e8a53b | aurel32 | $(bindir)/qemu-nbd \ |
388 | 7efa4387 | bellard | $(datadir)/bios.bin \ |
389 | 7efa4387 | bellard | $(datadir)/vgabios.bin \ |
390 | de9258a8 | bellard | $(datadir)/vgabios-cirrus.bin \ |
391 | 637f6cd7 | bellard | $(datadir)/ppc_rom.bin \ |
392 | d5295253 | bellard | $(datadir)/video.x \ |
393 | 0986ac3b | bellard | $(datadir)/openbios-sparc32 \ |
394 | 938255d2 | blueswir1 | $(datadir)/openbios-sparc64 \ |
395 | e5d01b06 | aurel32 | $(datadir)/openbios-ppc \ |
396 | 40e8a53b | aurel32 | $(datadir)/pxe-ne2k_pci.bin \ |
397 | 19c80e50 | bellard | $(datadir)/pxe-rtl8139.bin \ |
398 | 40e8a53b | aurel32 | $(datadir)/pxe-pcnet.bin \ |
399 | 2991990b | aliguori | $(datadir)/pxe-e1000.bin \ |
400 | 1f50f8d1 | bellard | $(docdir)/qemu-doc.html \ |
401 | 1f50f8d1 | bellard | $(docdir)/qemu-tech.html \ |
402 | 40e8a53b | aurel32 | $(mandir)/man1/qemu.1 \ |
403 | 40e8a53b | aurel32 | $(mandir)/man1/qemu-img.1 \ |
404 | 7a5ca864 | bellard | $(mandir)/man8/qemu-nbd.8 |
405 | d691f669 | bellard | |
406 | 4fb240a4 | bellard | # Include automatically generated dependency files |
407 | 019d6b8f | Anthony Liguori | -include $(wildcard *.d audio/*.d slirp/*.d block/*.d) |