Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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