Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 414 lines (330 sloc) 13.174 kb
0cb3fb1 Add doc, html, dvi and .PHONY Makefile targets.
pbrook authored
1 # Makefile for QEMU.
2
55d7e8f Call configure automatically when needed
aurel32 authored
3 ifneq ($(wildcard config-host.mak),)
1ad2134 Paul Brook Hardware convenience library
pbrook authored
4 # Put the all: rule here so that config-host.mak can contain dependencies.
5 all: build-all
ad06484 Fix out of tree builds.
pbrook authored
6 include config-host.mak
1775918 Introduce rules.mak (Avi Kivity)
aliguori authored
7 include $(SRC_PATH)/rules.mak
e5efe7f Juan Quintela Remove useless check for config-host.mak
juanquintela authored
8 config-host.mak: configure
9 @echo $@ is out-of-date, running configure
10 @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh
55d7e8f Call configure automatically when needed
aurel32 authored
11 else
12 config-host.mak:
13 @echo "Please call configure before running make!"
14 @exit 1
15 endif
766a487 ppc build
bellard authored
16
d9ace8b Juan Quintela configure and Makefile are not generated in qemu
juanquintela authored
17 # Don't try to regenerate Makefile or configure
18 # We don't generate any of them
19 Makefile: ;
20 configure: ;
21
818220f Add missing dependencies for qemu-doc.* (Stefan Weil)
aliguori authored
22 .PHONY: all clean cscope distclean dvi html info install install-doc \
9c92765 Juan Quintela add build-all to .PHONY rules
juanquintela authored
23 recurse-all speed tar tarbin test build-all
0cb3fb1 Add doc, html, dvi and .PHONY Makefile targets.
pbrook authored
24
8c462f8 Fix out of tree builds.
pbrook authored
25 VPATH=$(SRC_PATH):$(SRC_PATH)/hw
26
3e2e0e6 Juan Quintela Add libs_tools support
juanquintela authored
27 LIBS+=-lz $(LIBS_TOOLS)
67c0f08 Juan Quintela Add -static in configure if needed
juanquintela authored
28
cc8ae6d Autodetect tools neccessary for building documentation.
pbrook authored
29 ifdef BUILD_DOCS
7a5ca86 qemu-nbd tool (Anthony Liguori)
bellard authored
30 DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8
cc8ae6d Autodetect tools neccessary for building documentation.
pbrook authored
31 else
32 DOCS=
33 endif
aa05ae6 added exec.h
bellard authored
34
1215c6e Juan Quintela Move generation of config-host.h to Makefile from configure
juanquintela authored
35 SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory)
1f3d3c8 Juan Quintela Add new config-devices.mak for each target
juanquintela authored
36 SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS))
37
38 config-all-devices.mak: $(SUBDIR_DEVICES_MAK)
39 $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep "=y$$" | sort -u > $@," GEN $@")
40
41 -include config-all-devices.mak
1215c6e Juan Quintela Move generation of config-host.h to Makefile from configure
juanquintela authored
42
581d45f Makefile: Change make to be quiet again when doing nothing
Stefan Weil authored
43 build-all: config-host.h config-all-devices.h $(DOCS) $(TOOLS)
44 $(call quiet-command, $(MAKE) $(SUBDIR_MAKEFLAGS) recurse-all,)
b9dea4f Move all: target first.
pbrook authored
45
1215c6e Juan Quintela Move generation of config-host.h to Makefile from configure
juanquintela authored
46 config-host.h: config-host.h-timestamp
47 config-host.h-timestamp: config-host.mak
48
fe0d4d3 Juan Quintela Generate config-devices.h
juanquintela authored
49 config-all-devices.h: config-all-devices.h-timestamp
50 config-all-devices.h-timestamp: config-all-devices.mak
51
cec7d0b Don't link usermode emulation against libqemu_common.a
pbrook authored
52 SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))
53
fe0d4d3 Juan Quintela Generate config-devices.h
juanquintela authored
54 subdir-%: config-host.h config-all-devices.h
0087375 Paul Brook Suppress make directory messages.
pbrook authored
55 $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,)
4aa4253 Allow parallel make.
pbrook authored
56
cec7d0b Don't link usermode emulation against libqemu_common.a
pbrook authored
57 $(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a
c05ac89 Paul Brook Option rom makefile fixes
pbrook authored
58
add1615 Blue Swirl Compile some user files only once for all targets
blueswirl authored
59 $(filter %-user,$(SUBDIR_RULES)): libuser.a
60
61 libuser.a:
6a8a280 Blue Swirl user: fix libuser build messages
blueswirl authored
62 $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libuser V="$(V)" TARGET_DIR="libuser/" all,)
add1615 Blue Swirl Compile some user files only once for all targets
blueswirl authored
63
c05ac89 Paul Brook Option rom makefile fixes
pbrook authored
64 ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS))
65 romsubdir-%:
66 $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pc-bios/$* V="$(V)" TARGET_DIR="$*/",)
67
68 ALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS))
69
70 recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
83f6409 async file I/O API
bellard authored
71
faf0796 Split block API from vl.h.
pbrook authored
72 #######################################################################
319f08e Juan Quintela Rename BLOCK_OBJS to block-obj-y
juanquintela authored
73 # block-obj-y is code used by both qemu system emulation and qemu-img
faf0796 Split block API from vl.h.
pbrook authored
74
319f08e Juan Quintela Rename BLOCK_OBJS to block-obj-y
juanquintela authored
75 block-obj-y = cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o
a25a0ef Only build osdep once
Anthony Liguori authored
76 block-obj-y += nbd.o block.o aio.o aes.o osdep.o
4dd75c7 make pthreads mandatory
Christoph Hellwig authored
77 block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
5c6c3a6 raw-posix: add Linux native AIO support
Christoph Hellwig authored
78 block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
1a65ba7 Juan Quintela use block-nested-y for files inside block/
juanquintela authored
79
9aebd98 Add new block driver for the VDI format (only aio supported)
Stefan Weil authored
80 block-nested-y += cow.o qcow.o vdi.o vmdk.o cloop.o dmg.o bochs.o vpc.o vvfat.o
1a65ba7 Juan Quintela use block-nested-y for files inside block/
juanquintela authored
81 block-nested-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o
82 block-nested-y += parallels.o nbd.o
eeb6d45 Juan Quintela Use CONFIG_POSIX to simplify Makefile
juanquintela authored
83 block-nested-$(CONFIG_WIN32) += raw-win32.o
84 block-nested-$(CONFIG_POSIX) += raw-posix.o
1a65ba7 Juan Quintela use block-nested-y for files inside block/
juanquintela authored
85 block-nested-$(CONFIG_CURL) += curl.o
86
87 block-obj-y += $(addprefix block/, $(block-nested-y))
769ce76 Alexander Graf Add HTTP protocol using curl v6
agraf authored
88
e1144d0 Mark McLoughlin net: move net-queue.[ch] under net/
markmc authored
89 net-obj-y = net.o
7200ac3 Mark McLoughlin net: move net-checksum.c under net/
markmc authored
90 net-nested-y = queue.o checksum.o
5281d75 Mark McLoughlin net: split all the tap code out into net/tap.c
markmc authored
91 net-nested-$(CONFIG_POSIX) += tap.o
33ad161 Mark McLoughlin net: move tap-win32.c under net/
markmc authored
92 net-nested-$(CONFIG_WIN32) += tap-win32.o
e7e9232 Mark McLoughlin net: split BSD tap_open() out into net/tap-bsd.c
markmc authored
93 net-nested-$(CONFIG_BSD) += tap-bsd.o
e1144d0 Mark McLoughlin net: move net-queue.[ch] under net/
markmc authored
94 net-obj-y += $(addprefix net/, $(net-nested-y))
95
4fb240a compile common code once
bellard authored
96 ######################################################################
2e2ea90 typo
bellard authored
97 # libqemu_common.a: Target independent part of system emulation. The
4fb240a compile common code once
bellard authored
98 # long term path is to suppress *all* target specific code in case of
99 # system emulation, i.e. a single QEMU executable should support all
100 # CPUs and machines.
47cea61 vmdk2raw: convert VMware disk images to raw images
bellard authored
101
6ef859b Juan Quintela Rename OBJS to obj-y
juanquintela authored
102 obj-y = $(block-obj-y)
e1144d0 Mark McLoughlin net: move net-queue.[ch] under net/
markmc authored
103 obj-y += $(net-obj-y)
34005a0 Kirill A. Shutemov Add configure option to compile user targets as PIE
kiryl authored
104 obj-y += readline.o console.o
6ef859b Juan Quintela Rename OBJS to obj-y
juanquintela authored
105
c2b023b Blue Swirl Compile host-utils only once
blueswirl authored
106 obj-y += tcg-runtime.o host-utils.o
5f74377 Juan Quintela Only compile ptimer when one target uses it
juanquintela authored
107 obj-y += irq.o ioport.o
108 obj-$(CONFIG_PTIMER) += ptimer.o
ae573db Juan Quintela Only compile max7310 when one target uses it
juanquintela authored
109 obj-$(CONFIG_MAX7310) += max7310.o
976ca9a Juan Quintela Only compile wm8750 when one target uses it
juanquintela authored
110 obj-$(CONFIG_WM8750) += wm8750.o
92eb6b4 Juan Quintela Only compile twl92230 when one target uses it
juanquintela authored
111 obj-$(CONFIG_TWL92230) += twl92230.o
3c848e2 Juan Quintela Only compile tsc2005 when one target uses it
juanquintela authored
112 obj-$(CONFIG_TSC2005) += tsc2005.o
03aba0e Juan Quintela Only compile lm832x when one target uses it
juanquintela authored
113 obj-$(CONFIG_LM832X) += lm832x.o
d9b4462 Juan Quintela Only compile tmp105 when one target uses it
juanquintela authored
114 obj-$(CONFIG_TMP105) += tmp105.o
4aa5b83 Juan Quintela Only compile stellaris_input when one target uses it
juanquintela authored
115 obj-$(CONFIG_STELLARIS_INPUT) += stellaris_input.o
6a559be Juan Quintela Only compile sd0303 when one target uses it
juanquintela authored
116 obj-$(CONFIG_SSD0303) += ssd0303.o
54bcf07 Juan Quintela Only compile sd0323 when one target uses it
juanquintela authored
117 obj-$(CONFIG_SSD0323) += ssd0323.o
20a4afc Juan Quintela Only compile ads7846 when one target uses it
juanquintela authored
118 obj-$(CONFIG_ADS7846) += ads7846.o
ee99ca0 Juan Quintela Only compile max111x when one target uses it
juanquintela authored
119 obj-$(CONFIG_MAX111X) += max111x.o
120 obj-y += i2c.o smbus.o smbus_eeprom.o
d9b4462 Juan Quintela Only compile tmp105 when one target uses it
juanquintela authored
121 obj-y += eeprom93xx.o
6ef859b Juan Quintela Rename OBJS to obj-y
juanquintela authored
122 obj-y += scsi-disk.o cdrom.o
d52affa Gerd Hoffmann qdev/scsi: add scsi bus support to qdev, convert drivers.
kraxel authored
123 obj-y += scsi-generic.o scsi-bus.o
6ef859b Juan Quintela Rename OBJS to obj-y
juanquintela authored
124 obj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o
806b602 Gerd Hoffmann qdev/usb: add usb bus support to qdev, convert drivers.
kraxel authored
125 obj-y += usb-serial.o usb-net.o usb-bus.o
c62c455 Juan Quintela Only compile ssi when one target uses it
juanquintela authored
126 obj-$(CONFIG_SSI) += ssi.o
93a6040 Juan Quintela Only compile ssi-sd when one target uses it
juanquintela authored
127 obj-$(CONFIG_SSI_SD) += ssi-sd.o
b21fd8e Juan Quintela Only compile sd when one target uses it
juanquintela authored
128 obj-$(CONFIG_SD) += sd.o
6ef859b Juan Quintela Rename OBJS to obj-y
juanquintela authored
129 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
130 obj-y += bt-hci-csr.o
f710584 Mark McLoughlin net: refactor packet queueing code
markmc authored
131 obj-y += buffered_file.o migration.o migration-tcp.o qemu-sockets.o
7200ac3 Mark McLoughlin net: move net-checksum.c under net/
markmc authored
132 obj-y += qemu-char.o aio.o savevm.o
6ef859b Juan Quintela Rename OBJS to obj-y
juanquintela authored
133 obj-y += msmouse.o ps2.o
c62c455 Juan Quintela Only compile ssi when one target uses it
juanquintela authored
134 obj-y += qdev.o qdev-properties.o
a6fd08e Introduce QList
Luiz Capitulino authored
135 obj-y += qint.o qstring.o qdict.o qlist.o qemu-config.o
87ecb68 Break up vl.h.
pbrook authored
136
0e22fd2 Juan Quintela Substitute ifdef CONFIG_FOO by obj-
juanquintela authored
137 obj-$(CONFIG_BRLAPI) += baum.o
5ac1fad Paolo Bonzini add file descriptor migration
bonzini authored
138 obj-$(CONFIG_POSIX) += migration-exec.o migration-unix.o migration-fd.o
4fb240a compile common code once
bellard authored
139
98b068a Juan Quintela FMOD_CFLAGS is not set when CONFIG_FMOD is undef
juanquintela authored
140 audio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS)
0e22fd2 Juan Quintela Substitute ifdef CONFIG_FOO by obj-
juanquintela authored
141
142 audio-obj-y = audio.o noaudio.o wavaudio.o mixeng.o
143 audio-obj-$(CONFIG_SDL) += sdlaudio.o
144 audio-obj-$(CONFIG_OSS) += ossaudio.o
145 audio-obj-$(CONFIG_COREAUDIO) += coreaudio.o
146 audio-obj-$(CONFIG_ALSA) += alsaaudio.o
147 audio-obj-$(CONFIG_DSOUND) += dsoundaudio.o
148 audio-obj-$(CONFIG_FMOD) += fmodaudio.o
149 audio-obj-$(CONFIG_ESD) += esdaudio.o
150 audio-obj-$(CONFIG_PA) += paaudio.o
d563163 moosotc Windows Waveform Audio driver (no ADC support yet)
moosotc authored
151 audio-obj-$(CONFIG_WINWAVE) += winwaveaudio.o
67f86e8 Juan Quintela Generate CONFIG_AUDIO_PT_INT in configure
juanquintela authored
152 audio-obj-$(CONFIG_AUDIO_PT_INT) += audio_pt_int.o
d563163 moosotc Windows Waveform Audio driver (no ADC support yet)
moosotc authored
153 audio-obj-$(CONFIG_AUDIO_WIN_INT) += audio_win_int.o
eda959b Juan Quintela Rename AUDIO_OBJS to audio-obj-y
juanquintela authored
154 audio-obj-y += wavcapture.o
6ef859b Juan Quintela Rename OBJS to obj-y
juanquintela authored
155 obj-y += $(addprefix audio/, $(audio-obj-y))
4fb240a compile common code once
bellard authored
156
6ef859b Juan Quintela Rename OBJS to obj-y
juanquintela authored
157 obj-y += keymaps.o
0e22fd2 Juan Quintela Substitute ifdef CONFIG_FOO by obj-
juanquintela authored
158 obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o
159 obj-$(CONFIG_CURSES) += curses.o
6ef859b Juan Quintela Rename OBJS to obj-y
juanquintela authored
160 obj-y += vnc.o acl.o d3des.o
0e22fd2 Juan Quintela Substitute ifdef CONFIG_FOO by obj-
juanquintela authored
161 obj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o
162 obj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o
163 obj-$(CONFIG_COCOA) += cocoa.o
164 obj-$(CONFIG_IOTHREAD) += qemu-thread.o
e5d355d qemu: mutex/thread/cond wrappers and configure tweaks (Marcelo Tosatti)
aliguori authored
165
f835ed1 Juan Quintela Rename SLIRP_OBJS to slirp-obj-y
juanquintela authored
166 slirp-obj-y = cksum.o if.o ip_icmp.o ip_input.o ip_output.o
167 slirp-obj-y += slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o
168 slirp-obj-y += tcp_subr.o tcp_timer.o udp.o bootp.o tftp.o
0e22fd2 Juan Quintela Substitute ifdef CONFIG_FOO by obj-
juanquintela authored
169 obj-$(CONFIG_SLIRP) += $(addprefix slirp/, $(slirp-obj-y))
4fb240a compile common code once
bellard authored
170
2567f57 Blue Swirl Compile most Xen files only once
blueswirl authored
171 # xen backend driver support
0e22fd2 Juan Quintela Substitute ifdef CONFIG_FOO by obj-
juanquintela authored
172 obj-$(CONFIG_XEN) += xen_backend.o xen_devconfig.o
173 obj-$(CONFIG_XEN) += xen_console.o xenfb.o xen_disk.o xen_nic.o
2567f57 Blue Swirl Compile most Xen files only once
blueswirl authored
174
a558ee1 Juan Quintela Rename CPPFLAGS to QEMU_CFLAGS
juanquintela authored
175 QEMU_CFLAGS+=$(CURL_CFLAGS)
769ce76 Alexander Graf Add HTTP protocol using curl v6
agraf authored
176
4fb240a compile common code once
bellard authored
177 cocoa.o: cocoa.m
178
0483755 Refactor keymap code to avoid duplication ("Daniel P. Berrange")
aliguori authored
179 keymaps.o: keymaps.c keymaps.h
180
c18a2c3 sstabellini sdl zooming
sstabellini authored
181 sdl_zoom.o: sdl_zoom.c sdl_zoom.h sdl_zoom_template.h
182
183 sdl.o: sdl.c keymaps.h sdl_keysym.h sdl_zoom.h
807544e Consolidate compiler invocations (Avi Kivity)
aliguori authored
184
a558ee1 Juan Quintela Rename CPPFLAGS to QEMU_CFLAGS
juanquintela authored
185 sdl.o audio/sdlaudio.o sdl_zoom.o baum.o: QEMU_CFLAGS += $(SDL_CFLAGS)
4fb240a compile common code once
bellard authored
186
76655d6 Support ACLs for controlling VNC access ("Daniel P. Berrange")
aliguori authored
187 acl.o: acl.h acl.c
188
2f9606b Add SASL authentication support ("Daniel P. Berrange")
aliguori authored
189 vnc.h: vnc-tls.h vnc-auth-vencrypt.h vnc-auth-sasl.h keymaps.h
5fb6c7a Move TLS auth into separate file ("Daniel P. Berrange")
aliguori authored
190
76655d6 Support ACLs for controlling VNC access ("Daniel P. Berrange")
aliguori authored
191 vnc.o: vnc.c vnc.h vnc_keysym.h vnchextile.h d3des.c d3des.h acl.h
4fb240a compile common code once
bellard authored
192
a558ee1 Juan Quintela Rename CPPFLAGS to QEMU_CFLAGS
juanquintela authored
193 vnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
4d3b6f6 Add an ncurses UI.
balrog authored
194
5fb6c7a Move TLS auth into separate file ("Daniel P. Berrange")
aliguori authored
195 vnc-tls.o: vnc-tls.c vnc.h
196
197 vnc-auth-vencrypt.o: vnc-auth-vencrypt.c vnc.h
198
2f9606b Add SASL authentication support ("Daniel P. Berrange")
aliguori authored
199 vnc-auth-sasl.o: vnc-auth-sasl.c vnc.h
200
0483755 Refactor keymap code to avoid duplication ("Daniel P. Berrange")
aliguori authored
201 curses.o: curses.c keymaps.h curses_keys.h
fb599c9 Implement a HCI passthrough to host.
balrog authored
202
a558ee1 Juan Quintela Rename CPPFLAGS to QEMU_CFLAGS
juanquintela authored
203 bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS)
4fb240a compile common code once
bellard authored
204
6ef859b Juan Quintela Rename OBJS to obj-y
juanquintela authored
205 libqemu_common.a: $(obj-y)
4fb240a compile common code once
bellard authored
206
207 ######################################################################
208
153859b Use hxtool for qemu-img command list
Stuart Brady authored
209 qemu-img.o: qemu-img-cmds.h
210
a25a0ef Only build osdep once
Anthony Liguori authored
211 qemu-img$(EXESUF): qemu-img.o qemu-tool.o $(block-obj-y)
4fb240a compile common code once
bellard authored
212
a25a0ef Only build osdep once
Anthony Liguori authored
213 qemu-nbd$(EXESUF): qemu-nbd.o qemu-tool.o $(block-obj-y)
3aa892d Consolidate linker rules (Avi Kivity)
aliguori authored
214
a25a0ef Only build osdep once
Anthony Liguori authored
215 qemu-io$(EXESUF): qemu-io.o qemu-tool.o cmd.o $(block-obj-y)
0a8e1ac qemu-io - an I/O path exerciser (Christoph Hellwig)
aliguori authored
216
153859b Use hxtool for qemu-img command list
Stuart Brady authored
217 qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
218 $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $@")
219
33837ba Introduce QInt unit-tests
Luiz Capitulino authored
220 check-qint: check-qint.o qint.o qemu-malloc.o
5de65a0 Introduce QString unit-tests
Luiz Capitulino authored
221 check-qstring: check-qstring.o qstring.o qemu-malloc.o
7b8c51a Introduce QDict unit-tests
Luiz Capitulino authored
222 check-qdict: check-qdict.o qdict.o qint.o qstring.o qemu-malloc.o
3aa3dcf Introduce QList unit-tests
Luiz Capitulino authored
223 check-qlist: check-qlist.o qlist.o qint.o qemu-malloc.o
33837ba Introduce QInt unit-tests
Luiz Capitulino authored
224
31e31b8 This commit was generated by cvs2svn to compensate for changes in r2,
bellard authored
225 clean:
2d80ae8 avoid problems if make clean was not made before updating
bellard authored
226 # avoid old build problems by removing potentially incorrect old files
25be210 Juan Quintela Rename config.{h, mak} config-target.{h, mak}
juanquintela authored
227 rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
86e840e Remove a few dyngen and dyngen related code
aurel32 authored
228 rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~
e1144d0 Mark McLoughlin net: move net-queue.[ch] under net/
markmc authored
229 rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d
07b44ce Blue Swirl Clean up generated qemu-img-cmds.h
blueswirl authored
230 rm -f qemu-img-cmds.h
7d3505c bsd port (Markus Niemisto)
bellard authored
231 $(MAKE) -C tests clean
add1615 Blue Swirl Compile some user files only once for all targets
blueswirl authored
232 for d in $(ALL_SUBDIRS) libhw32 libhw64 libuser; do \
7d3505c bsd port (Markus Niemisto)
bellard authored
233 $(MAKE) -C $$d $@ || exit 1 ; \
626df76 build all targets at the same time
bellard authored
234 done
31e31b8 This commit was generated by cvs2svn to compensate for changes in r2,
bellard authored
235
7d13299 added translation cache
bellard authored
236 distclean: clean
1215c6e Juan Quintela Move generation of config-host.h to Makefile from configure
juanquintela authored
237 rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi
1f3d3c8 Juan Quintela Add new config-devices.mak for each target
juanquintela authored
238 rm -f config-all-devices.mak config-all-devices.h*
0cb3fb1 Add doc, html, dvi and .PHONY Makefile targets.
pbrook authored
239 rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr}
add1615 Blue Swirl Compile some user files only once for all targets
blueswirl authored
240 for d in $(TARGET_DIRS) libhw32 libhw64 libuser; do \
bc1b050 fixed distclean target
bellard authored
241 rm -rf $$d || exit 1 ; \
76bc683 updated
bellard authored
242 done
7d13299 added translation cache
bellard authored
243
fed4a9a keymap install fix
bellard authored
244 KEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \
245 ar de en-us fi fr-be hr it lv nl pl ru th \
246 common de-ch es fo fr-ca hu ja mk nl-be pt sl tr
247
7775534 Make installing bios files optional.
ths authored
248 ifdef INSTALL_BLOBS
249 BLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \
e5d01b0 target-ppc: add an openbios-ppc image
aurel32 authored
250 video.x openbios-sparc32 openbios-sparc64 openbios-ppc \
251 pxe-ne2k_pci.bin pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin \
253d094 Alexander Graf Multiboot build system v4
agraf authored
252 bamboo.dtb petalogix-s3adsp1800.dtb \
253 multiboot.bin
7775534 Make installing bios files optional.
ths authored
254 else
255 BLOBS=
256 endif
257
38954dc Add install-doc rule. Use it when building docs.
pbrook authored
258 install-doc: $(DOCS)
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
259 $(INSTALL_DIR) "$(DESTDIR)$(docdir)"
260 $(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)"
96d409e Juan Quintela CONFIG_POSIX makes more sense that not CONFIG_WIN32
juanquintela authored
261 ifdef CONFIG_POSIX
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
262 $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
263 $(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1"
264 $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8"
265 $(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8"
38954dc Add install-doc rule. Use it when building docs.
pbrook authored
266 endif
267
268 install: all $(if $(BUILD_DOCS),install-doc)
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
269 $(INSTALL_DIR) "$(DESTDIR)$(bindir)"
932a79d Don't install tools if $(TOOLS) is empty, by Thayne Harbaugh.
ths authored
270 ifneq ($(TOOLS),)
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
271 $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)"
932a79d Don't install tools if $(TOOLS) is empty, by Thayne Harbaugh.
ths authored
272 endif
7775534 Make installing bios files optional.
ths authored
273 ifneq ($(BLOBS),)
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
274 $(INSTALL_DIR) "$(DESTDIR)$(datadir)"
7775534 Make installing bios files optional.
ths authored
275 set -e; for x in $(BLOBS); do \
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
276 $(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \
ad06484 Fix out of tree builds.
pbrook authored
277 done
7775534 Make installing bios files optional.
ths authored
278 endif
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
279 $(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps"
18be8d7 Properly bomb out on errors in Makefile shell fragments (Ian Jackson)
blueswir1 authored
280 set -e; for x in $(KEYMAPS); do \
79fd42a Install keymaps from new location
Anthony Liguori authored
281 $(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \
ad06484 Fix out of tree builds.
pbrook authored
282 done
626df76 build all targets at the same time
bellard authored
283 for d in $(TARGET_DIRS); do \
7d3505c bsd port (Markus Niemisto)
bellard authored
284 $(MAKE) -C $$d $@ || exit 1 ; \
626df76 build all targets at the same time
bellard authored
285 done
612384d added libgemu.a build
bellard authored
286
367e86e new x86 CPU core
bellard authored
287 # various test targets
9b0b820 removed obsolete test2 target
bellard authored
288 test speed: all
7d3505c bsd port (Markus Niemisto)
bellard authored
289 $(MAKE) -C tests $@
31e31b8 This commit was generated by cvs2svn to compensate for changes in r2,
bellard authored
290
21d4e8e Makefile: fixed rule TAGS
Alexandre Bique authored
291 .PHONY: TAGS
5fafdf2 find -type f | xargs sed -i 's/[\t ]$//g' # on most files
ths authored
292 TAGS:
21d4e8e Makefile: fixed rule TAGS
Alexandre Bique authored
293 find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags
31e31b8 This commit was generated by cvs2svn to compensate for changes in r2,
bellard authored
294
6688bc6 cscope rule
bellard authored
295 cscope:
296 rm -f ./cscope.*
ede4608 Fix cscope filelist by removing leading ./
aurel32 authored
297 find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files
6688bc6 cscope rule
bellard authored
298 cscope -b
299
3ef693a distribution patches
bellard authored
300 # documentation
1f67313 doc update
bellard authored
301 %.html: %.texi
0d00e56 build system: silent generation of doc files and qemu-options.h (Jan Kis...
aliguori authored
302 $(call quiet-command,texi2html -I=. -monolithic -number $<," GEN $@")
3ef693a distribution patches
bellard authored
303
f354832 info and dvi doc targets
bellard authored
304 %.info: %.texi
0d00e56 build system: silent generation of doc files and qemu-options.h (Jan Kis...
aliguori authored
305 $(call quiet-command,makeinfo -I . $< -o $@," GEN $@")
f354832 info and dvi doc targets
bellard authored
306
307 %.dvi: %.texi
0d00e56 build system: silent generation of doc files and qemu-options.h (Jan Kis...
aliguori authored
308 $(call quiet-command,texi2dvi -I . $<," GEN $@")
5824d65 Syncing documentation vs. -help vs. qemu_options table
blueswir1 authored
309
310 qemu-options.texi: $(SRC_PATH)/qemu-options.hx
0d00e56 build system: silent generation of doc files and qemu-options.h (Jan Kis...
aliguori authored
311 $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")
f354832 info and dvi doc targets
bellard authored
312
2313086 Blue Swirl Use hxtool to generate monitor documentation and C structures
blueswirl authored
313 qemu-monitor.texi: $(SRC_PATH)/qemu-monitor.hx
314 $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")
315
153859b Use hxtool for qemu-img command list
Stuart Brady authored
316 qemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx
317 $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")
318
2313086 Blue Swirl Use hxtool to generate monitor documentation and C structures
blueswirl authored
319 qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi
0d00e56 build system: silent generation of doc files and qemu-options.h (Jan Kis...
aliguori authored
320 $(call quiet-command, \
321 perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \
322 pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \
323 " GEN $@")
5a67135 automatic man page generation - BIOS installation
bellard authored
324
153859b Use hxtool for qemu-img command list
Stuart Brady authored
325 qemu-img.1: qemu-img.texi qemu-img-cmds.texi
0d00e56 build system: silent generation of doc files and qemu-options.h (Jan Kis...
aliguori authored
326 $(call quiet-command, \
327 perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \
328 pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \
329 " GEN $@")
acd935e doc update - added qemu-img manual page
bellard authored
330
7a5ca86 qemu-nbd tool (Anthony Liguori)
bellard authored
331 qemu-nbd.8: qemu-nbd.texi
0d00e56 build system: silent generation of doc files and qemu-options.h (Jan Kis...
aliguori authored
332 $(call quiet-command, \
333 perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod && \
334 pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \
335 " GEN $@")
7a5ca86 qemu-nbd tool (Anthony Liguori)
bellard authored
336
0cb3fb1 Add doc, html, dvi and .PHONY Makefile targets.
pbrook authored
337 info: qemu-doc.info qemu-tech.info
338
339 dvi: qemu-doc.dvi qemu-tech.dvi
340
341 html: qemu-doc.html qemu-tech.html
342
153859b Use hxtool for qemu-img command list
Stuart Brady authored
343 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
818220f Add missing dependencies for qemu-doc.* (Stefan Weil)
aliguori authored
344
df5cf72 Make the tarball's VERSION part overridable from make invocation.
ths authored
345 VERSION ?= $(shell cat VERSION)
346 FILE = qemu-$(VERSION)
586314f better debug support
bellard authored
347
1e43adf new directory structure - changed naming of qemu and vl
bellard authored
348 # tar release (use 'make -k tar' on a checkouted tree)
586314f better debug support
bellard authored
349 tar:
350 rm -rf /tmp/$(FILE)
1e43adf new directory structure - changed naming of qemu and vl
bellard authored
351 cp -r . /tmp/$(FILE)
99c6c08 Ignore .git and .svn in Makefile, noticed by Stefan Weil.
aurel32 authored
352 cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .git --exclude .svn
586314f better debug support
bellard authored
353 rm -rf /tmp/$(FILE)
354
76b62fd added binary archive
bellard authored
355 # generate a binary distribution
d691f66 glibc2.2 fixes - more command line options - misc doc fixes
bellard authored
356 tarbin:
18be8d7 Properly bomb out on errors in Makefile shell fragments (Ian Jackson)
blueswir1 authored
357 cd / && tar zcvf ~/qemu-$(VERSION)-$(ARCH).tar.gz \
43095f3 tarbin fix
bellard authored
358 $(bindir)/qemu \
359 $(bindir)/qemu-system-x86_64 \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
360 $(bindir)/qemu-system-arm \
361 $(bindir)/qemu-system-cris \
362 $(bindir)/qemu-system-m68k \
bc6291a Edgar E. Iglesias Include microblaze binaries in tarbin.
edgarigl authored
363 $(bindir)/qemu-system-microblaze \
93856aa update tarbin target
bellard authored
364 $(bindir)/qemu-system-mips \
3826099 mipsel configure support (Thiemo Seufer).
pbrook authored
365 $(bindir)/qemu-system-mipsel \
fbe4f65 MIPS64 configurations.
ths authored
366 $(bindir)/qemu-system-mips64 \
367 $(bindir)/qemu-system-mips64el \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
368 $(bindir)/qemu-system-ppc \
369 $(bindir)/qemu-system-ppcemb \
370 $(bindir)/qemu-system-ppc64 \
ff1aaf6 Update tarbin rule.
ths authored
371 $(bindir)/qemu-system-sh4 \
85ffbdf SH4 big endian configuration, by Tomoyoshi Asano.
ths authored
372 $(bindir)/qemu-system-sh4eb \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
373 $(bindir)/qemu-system-sparc \
7efa438 better packaging support
bellard authored
374 $(bindir)/qemu-i386 \
f0403c0 update binary distribution
bellard authored
375 $(bindir)/qemu-x86_64 \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
376 $(bindir)/qemu-alpha \
377 $(bindir)/qemu-arm \
378 $(bindir)/qemu-armeb \
379 $(bindir)/qemu-cris \
380 $(bindir)/qemu-m68k \
bc6291a Edgar E. Iglesias Include microblaze binaries in tarbin.
edgarigl authored
381 $(bindir)/qemu-microblaze \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
382 $(bindir)/qemu-mips \
383 $(bindir)/qemu-mipsel \
384 $(bindir)/qemu-ppc \
385 $(bindir)/qemu-ppc64 \
386 $(bindir)/qemu-ppc64abi32 \
387 $(bindir)/qemu-sh4 \
388 $(bindir)/qemu-sh4eb \
389 $(bindir)/qemu-sparc \
390 $(bindir)/qemu-sparc64 \
391 $(bindir)/qemu-sparc32plus \
392 $(bindir)/qemu-img \
393 $(bindir)/qemu-nbd \
7efa438 better packaging support
bellard authored
394 $(datadir)/bios.bin \
395 $(datadir)/vgabios.bin \
de9258a specific VGA BIOS for Cirrus VGA Card
bellard authored
396 $(datadir)/vgabios-cirrus.bin \
637f6cd ppc bios
bellard authored
397 $(datadir)/ppc_rom.bin \
d529525 VGA bios support for PowerPC
bellard authored
398 $(datadir)/video.x \
0986ac3 use OpenBIOS instead of Proll on sparc (Blue Swirl)
bellard authored
399 $(datadir)/openbios-sparc32 \
938255d Copy Sparc64 firmware when installing (Hervé Poussineau)
blueswir1 authored
400 $(datadir)/openbios-sparc64 \
e5d01b0 target-ppc: add an openbios-ppc image
aurel32 authored
401 $(datadir)/openbios-ppc \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
402 $(datadir)/pxe-ne2k_pci.bin \
19c80e5 update
bellard authored
403 $(datadir)/pxe-rtl8139.bin \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
404 $(datadir)/pxe-pcnet.bin \
2991990 Add e1000 etherboot ROM from http://www.rom-o-matic.net
aliguori authored
405 $(datadir)/pxe-e1000.bin \
1f50f8d better install
bellard authored
406 $(docdir)/qemu-doc.html \
407 $(docdir)/qemu-tech.html \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
408 $(mandir)/man1/qemu.1 \
409 $(mandir)/man1/qemu-img.1 \
7a5ca86 qemu-nbd tool (Anthony Liguori)
bellard authored
410 $(mandir)/man8/qemu-nbd.8
d691f66 glibc2.2 fixes - more command line options - misc doc fixes
bellard authored
411
4fb240a compile common code once
bellard authored
412 # Include automatically generated dependency files
e1144d0 Mark McLoughlin net: move net-queue.[ch] under net/
markmc authored
413 -include $(wildcard *.d audio/*.d slirp/*.d block/*.d net/*.d)
Something went wrong with that request. Please try again.