Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 340 lines (263 sloc) 10.438 kb
0cb3fb1 Add doc, html, dvi and .PHONY Makefile targets.
pbrook authored
1 # Makefile for QEMU.
2
a992fe3 Paul Brook Makefile dependencies for device configs
pbrook authored
3 GENERATED_HEADERS = config-host.h
f527c57 Juan Quintela fix parallel build
juanquintela authored
4
55d7e8f Call configure automatically when needed
aurel32 authored
5 ifneq ($(wildcard config-host.mak),)
1ad2134 Paul Brook Hardware convenience library
pbrook authored
6 # Put the all: rule here so that config-host.mak can contain dependencies.
7 all: build-all
ad06484 Fix out of tree builds.
pbrook authored
8 include config-host.mak
1775918 Introduce rules.mak (Avi Kivity)
aliguori authored
9 include $(SRC_PATH)/rules.mak
59bc10e Paolo Bonzini finish VPATH -> vpath translation
bonzini authored
10 config-host.mak: $(SRC_PATH)/configure
e5efe7f Juan Quintela Remove useless check for config-host.mak
juanquintela authored
11 @echo $@ is out-of-date, running configure
12 @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh
55d7e8f Call configure automatically when needed
aurel32 authored
13 else
14 config-host.mak:
15 @echo "Please call configure before running make!"
16 @exit 1
17 endif
766a487 ppc build
bellard authored
18
d9ace8b Juan Quintela configure and Makefile are not generated in qemu
juanquintela authored
19 # Don't try to regenerate Makefile or configure
20 # We don't generate any of them
21 Makefile: ;
22 configure: ;
23
818220f Add missing dependencies for qemu-doc.* (Stefan Weil)
aliguori authored
24 .PHONY: all clean cscope distclean dvi html info install install-doc \
20cc999 Documentation: Add build support for documentation in pdf format
Stefan Weil authored
25 pdf recurse-all speed tar tarbin test build-all
0cb3fb1 Add doc, html, dvi and .PHONY Makefile targets.
pbrook authored
26
076d247 Paolo Bonzini Use vpath directive
bonzini authored
27 $(call set-vpath, $(SRC_PATH):$(SRC_PATH)/hw)
8c462f8 Fix out of tree builds.
pbrook authored
28
3e2e0e6 Juan Quintela Add libs_tools support
juanquintela authored
29 LIBS+=-lz $(LIBS_TOOLS)
67c0f08 Juan Quintela Add -static in configure if needed
juanquintela authored
30
cc8ae6d Autodetect tools neccessary for building documentation.
pbrook authored
31 ifdef BUILD_DOCS
7a5ca86 qemu-nbd tool (Anthony Liguori)
bellard authored
32 DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8
cc8ae6d Autodetect tools neccessary for building documentation.
pbrook authored
33 else
34 DOCS=
35 endif
aa05ae6 added exec.h
bellard authored
36
1215c6e Juan Quintela Move generation of config-host.h to Makefile from configure
juanquintela authored
37 SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory)
1f3d3c8 Juan Quintela Add new config-devices.mak for each target
juanquintela authored
38 SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS))
39
40 config-all-devices.mak: $(SUBDIR_DEVICES_MAK)
01d86a8 Fix build for mingw32 on windows ($$ expansion)
Stefan Weil authored
41 $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u > $@," GEN $@")
1f3d3c8 Juan Quintela Add new config-devices.mak for each target
juanquintela authored
42
a992fe3 Paul Brook Makefile dependencies for device configs
pbrook authored
43 %/config-devices.mak: default-configs/%.mak
44 $(call quiet-command,cat $< > $@.tmp, " GEN $@")
012f087 Makefile: Update unmodified config-devices.mak automatically
Stefan Weil authored
45 @if test -f $@; then \
46 if cmp -s $@.old $@ || cmp -s $@ $@.tmp; then \
47 mv $@.tmp $@; \
48 cp -p $@ $@.old; \
49 else \
50 if test -f $@.old; then \
51 echo "WARNING: $@ (user modified) out of date.";\
52 else \
53 echo "WARNING: $@ out of date.";\
54 fi; \
55 echo "Run \"make defconfig\" to regenerate."; \
56 rm $@.tmp; \
57 fi; \
a992fe3 Paul Brook Makefile dependencies for device configs
pbrook authored
58 else \
012f087 Makefile: Update unmodified config-devices.mak automatically
Stefan Weil authored
59 mv $@.tmp $@; \
60 cp -p $@ $@.old; \
a992fe3 Paul Brook Makefile dependencies for device configs
pbrook authored
61 fi
62
63 defconfig:
64 rm -f config-all-devices.mak $(SUBDIR_DEVICES_MAK)
65
1f3d3c8 Juan Quintela Add new config-devices.mak for each target
juanquintela authored
66 -include config-all-devices.mak
1215c6e Juan Quintela Move generation of config-host.h to Makefile from configure
juanquintela authored
67
f527c57 Juan Quintela fix parallel build
juanquintela authored
68 build-all: $(DOCS) $(TOOLS) recurse-all
b9dea4f Move all: target first.
pbrook authored
69
1215c6e Juan Quintela Move generation of config-host.h to Makefile from configure
juanquintela authored
70 config-host.h: config-host.h-timestamp
71 config-host.h-timestamp: config-host.mak
72
cec7d0b Don't link usermode emulation against libqemu_common.a
pbrook authored
73 SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))
74
f527c57 Juan Quintela fix parallel build
juanquintela authored
75 subdir-%: $(GENERATED_HEADERS)
0087375 Paul Brook Suppress make directory messages.
pbrook authored
76 $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,)
4aa4253 Allow parallel make.
pbrook authored
77
b88bc80 Makefile: Fix message for missing configure
Stefan Weil authored
78 ifneq ($(wildcard config-host.mak),)
0e8c921 Andreas Färber Drop --whole-archive and static libraries
afaerber authored
79 include $(SRC_PATH)/Makefile.objs
b88bc80 Makefile: Fix message for missing configure
Stefan Weil authored
80 endif
0e8c921 Andreas Färber Drop --whole-archive and static libraries
afaerber authored
81
82 $(common-obj-y): $(GENERATED_HEADERS)
4d90453 Blue Swirl Compile disassemblers only once
blueswirl authored
83 $(filter %-softmmu,$(SUBDIR_RULES)): $(common-obj-y) subdir-libdis
c05ac89 Paul Brook Option rom makefile fixes
pbrook authored
84
4d90453 Blue Swirl Compile disassemblers only once
blueswirl authored
85 $(filter %-user,$(SUBDIR_RULES)): $(GENERATED_HEADERS) subdir-libdis-user subdir-libuser
add1615 Blue Swirl Compile some user files only once for all targets
blueswirl authored
86
c05ac89 Paul Brook Option rom makefile fixes
pbrook authored
87 ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS))
88 romsubdir-%:
89 $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pc-bios/$* V="$(V)" TARGET_DIR="$*/",)
90
91 ALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS))
92
93 recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
83f6409 async file I/O API
bellard authored
94
98b068a Juan Quintela FMOD_CFLAGS is not set when CONFIG_FMOD is undef
juanquintela authored
95 audio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS)
0e22fd2 Juan Quintela Substitute ifdef CONFIG_FOO by obj-
juanquintela authored
96
a558ee1 Juan Quintela Rename CPPFLAGS to QEMU_CFLAGS
juanquintela authored
97 QEMU_CFLAGS+=$(CURL_CFLAGS)
769ce76 Alexander Graf Add HTTP protocol using curl v6
agraf authored
98
4fb240a compile common code once
bellard authored
99 cocoa.o: cocoa.m
100
0483755 Refactor keymap code to avoid duplication ("Daniel P. Berrange")
aliguori authored
101 keymaps.o: keymaps.c keymaps.h
102
c18a2c3 sstabellini sdl zooming
sstabellini authored
103 sdl_zoom.o: sdl_zoom.c sdl_zoom.h sdl_zoom_template.h
104
105 sdl.o: sdl.c keymaps.h sdl_keysym.h sdl_zoom.h
807544e Consolidate compiler invocations (Avi Kivity)
aliguori authored
106
a558ee1 Juan Quintela Rename CPPFLAGS to QEMU_CFLAGS
juanquintela authored
107 sdl.o audio/sdlaudio.o sdl_zoom.o baum.o: QEMU_CFLAGS += $(SDL_CFLAGS)
4fb240a compile common code once
bellard authored
108
76655d6 Support ACLs for controlling VNC access ("Daniel P. Berrange")
aliguori authored
109 acl.o: acl.h acl.c
110
2f9606b Add SASL authentication support ("Daniel P. Berrange")
aliguori authored
111 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
112
76655d6 Support ACLs for controlling VNC access ("Daniel P. Berrange")
aliguori authored
113 vnc.o: vnc.c vnc.h vnc_keysym.h vnchextile.h d3des.c d3des.h acl.h
4fb240a compile common code once
bellard authored
114
a558ee1 Juan Quintela Rename CPPFLAGS to QEMU_CFLAGS
juanquintela authored
115 vnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
4d3b6f6 Add an ncurses UI.
balrog authored
116
5fb6c7a Move TLS auth into separate file ("Daniel P. Berrange")
aliguori authored
117 vnc-tls.o: vnc-tls.c vnc.h
118
119 vnc-auth-vencrypt.o: vnc-auth-vencrypt.c vnc.h
120
2f9606b Add SASL authentication support ("Daniel P. Berrange")
aliguori authored
121 vnc-auth-sasl.o: vnc-auth-sasl.c vnc.h
122
70a4568 Corentin Chary vnc: split encoding in specific files
iksaif authored
123 vnc-encoding-zlib.o: vnc.h
124
125 vnc-encoding-hextile.o: vnc.h
126
0483755 Refactor keymap code to avoid duplication ("Daniel P. Berrange")
aliguori authored
127 curses.o: curses.c keymaps.h curses_keys.h
fb599c9 Implement a HCI passthrough to host.
balrog authored
128
a558ee1 Juan Quintela Rename CPPFLAGS to QEMU_CFLAGS
juanquintela authored
129 bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS)
4fb240a compile common code once
bellard authored
130
e4d5639 iov: Introduce a new file for helpers around iovs, add iov_from_buf()
Amit Shah authored
131 iov.o: iov.c iov.h
132
4fb240a compile common code once
bellard authored
133 ######################################################################
134
3c089e1 Juan Quintela Fix generation of config-host.h
juanquintela authored
135 qemu-img.o: qemu-img-cmds.h
136 qemu-img.o qemu-tool.o qemu-nbd.o qemu-io.o: $(GENERATED_HEADERS)
153859b Use hxtool for qemu-img command list
Stuart Brady authored
137
526f0ac error: Link qemu-img, qemu-nbd, qemu-io with qemu-error.o
Markus Armbruster authored
138 qemu-img$(EXESUF): qemu-img.o qemu-tool.o qemu-error.o $(block-obj-y) $(qobject-obj-y)
0e8c921 Andreas Färber Drop --whole-archive and static libraries
afaerber authored
139
526f0ac error: Link qemu-img, qemu-nbd, qemu-io with qemu-error.o
Markus Armbruster authored
140 qemu-nbd$(EXESUF): qemu-nbd.o qemu-tool.o qemu-error.o $(block-obj-y) $(qobject-obj-y)
0e8c921 Andreas Färber Drop --whole-archive and static libraries
afaerber authored
141
526f0ac error: Link qemu-img, qemu-nbd, qemu-io with qemu-error.o
Markus Armbruster authored
142 qemu-io$(EXESUF): qemu-io.o cmd.o qemu-tool.o qemu-error.o $(block-obj-y) $(qobject-obj-y)
0a8e1ac qemu-io - an I/O path exerciser (Christoph Hellwig)
aliguori authored
143
153859b Use hxtool for qemu-img command list
Stuart Brady authored
144 qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
145 $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $@")
146
33837ba Introduce QInt unit-tests
Luiz Capitulino authored
147 check-qint: check-qint.o qint.o qemu-malloc.o
5de65a0 Introduce QString unit-tests
Luiz Capitulino authored
148 check-qstring: check-qstring.o qstring.o qemu-malloc.o
acc3b03 QDict: New qdict_get_double()
Markus Armbruster authored
149 check-qdict: check-qdict.o qdict.o qfloat.o qint.o qstring.o qbool.o qemu-malloc.o qlist.o
3aa3dcf Introduce QList unit-tests
Luiz Capitulino authored
150 check-qlist: check-qlist.o qlist.o qint.o qemu-malloc.o
9c9efb6 Add unit test for QFloat
Anthony Liguori authored
151 check-qfloat: check-qfloat.o qfloat.o qemu-malloc.o
422c46a Add a unit test for JSON support
Anthony Liguori authored
152 check-qjson: check-qjson.o qfloat.o qint.o qdict.o qstring.o qlist.o qbool.o qjson.o json-streamer.o json-lexer.o json-parser.o qemu-malloc.o
33837ba Introduce QInt unit-tests
Luiz Capitulino authored
153
31e31b8 This commit was generated by cvs2svn to compensate for changes in r2,
bellard authored
154 clean:
2d80ae8 avoid problems if make clean was not made before updating
bellard authored
155 # avoid old build problems by removing potentially incorrect old files
25be210 Juan Quintela Rename config.{h, mak} config-target.{h, mak}
juanquintela authored
156 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
157 rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~
e1144d0 Mark McLoughlin net: move net-queue.[ch] under net/
markmc authored
158 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
159 rm -f qemu-img-cmds.h
7d3505c bsd port (Markus Niemisto)
bellard authored
160 $(MAKE) -C tests clean
4d90453 Blue Swirl Compile disassemblers only once
blueswirl authored
161 for d in $(ALL_SUBDIRS) libhw32 libhw64 libuser libdis libdis-user; do \
fc8e320 fix make clean targets
Magnus Damm authored
162 if test -d $$d; then $(MAKE) -C $$d $@ || exit 1; fi; \
626df76 build all targets at the same time
bellard authored
163 done
31e31b8 This commit was generated by cvs2svn to compensate for changes in r2,
bellard authored
164
7d13299 added translation cache
bellard authored
165 distclean: clean
fc8e320 fix make clean targets
Magnus Damm authored
166 rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi qemu-monitor.texi
a992fe3 Paul Brook Makefile dependencies for device configs
pbrook authored
167 rm -f config-all-devices.mak
fc8e320 fix make clean targets
Magnus Damm authored
168 rm -f roms/seabios/config.mak roms/vgabios/config.mak
20cc999 Documentation: Add build support for documentation in pdf format
Stefan Weil authored
169 rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pdf,pg,toc,tp,vr}
4d90453 Blue Swirl Compile disassemblers only once
blueswirl authored
170 for d in $(TARGET_DIRS) libhw32 libhw64 libuser libdis libdis-user; do \
bc1b050 fixed distclean target
bellard authored
171 rm -rf $$d || exit 1 ; \
76bc683 updated
bellard authored
172 done
7d13299 added translation cache
bellard authored
173
fed4a9a keymap install fix
bellard authored
174 KEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \
175 ar de en-us fi fr-be hr it lv nl pl ru th \
176 common de-ch es fo fr-ca hu ja mk nl-be pt sl tr
177
7775534 Make installing bios files optional.
ths authored
178 ifdef INSTALL_BLOBS
179 BLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \
e5d01b0 target-ppc: add an openbios-ppc image
aurel32 authored
180 video.x openbios-sparc32 openbios-sparc64 openbios-ppc \
5309e5f Makefile: Fix names of GPXE ROM files
Stefan Weil authored
181 gpxe-eepro100-80861209.rom \
182 gpxe-eepro100-80861229.rom \
183 pxe-e1000.bin \
88e2b0a Makefile: Fix definition of pxe-*.bin blobs
Stefan Weil authored
184 pxe-ne2k_pci.bin pxe-pcnet.bin \
185 pxe-rtl8139.bin pxe-virtio.bin \
253d094 Alexander Graf Multiboot build system v4
agraf authored
186 bamboo.dtb petalogix-s3adsp1800.dtb \
fe270d0 Alexander Graf target-s390: add firmware code
agraf authored
187 multiboot.bin linuxboot.bin \
188 s390-zipl.rom
7775534 Make installing bios files optional.
ths authored
189 else
190 BLOBS=
191 endif
192
38954dc Add install-doc rule. Use it when building docs.
pbrook authored
193 install-doc: $(DOCS)
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
194 $(INSTALL_DIR) "$(DESTDIR)$(docdir)"
195 $(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)"
96d409e Juan Quintela CONFIG_POSIX makes more sense that not CONFIG_WIN32
juanquintela authored
196 ifdef CONFIG_POSIX
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
197 $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
198 $(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1"
199 $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8"
200 $(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8"
38954dc Add install-doc rule. Use it when building docs.
pbrook authored
201 endif
202
b5ec5ce Add cpu model configuration support..
john cooper authored
203 install-sysconfig:
990caaf aprzywar install: honor DESTDIR on sysconfdir population
aprzywar authored
204 $(INSTALL_DIR) "$(DESTDIR)$(sysconfdir)/qemu"
205 $(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(sysconfdir)/qemu"
b5ec5ce Add cpu model configuration support..
john cooper authored
206
207 install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
208 $(INSTALL_DIR) "$(DESTDIR)$(bindir)"
932a79d Don't install tools if $(TOOLS) is empty, by Thayne Harbaugh.
ths authored
209 ifneq ($(TOOLS),)
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
210 $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)"
932a79d Don't install tools if $(TOOLS) is empty, by Thayne Harbaugh.
ths authored
211 endif
7775534 Make installing bios files optional.
ths authored
212 ifneq ($(BLOBS),)
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
213 $(INSTALL_DIR) "$(DESTDIR)$(datadir)"
7775534 Make installing bios files optional.
ths authored
214 set -e; for x in $(BLOBS); do \
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
215 $(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \
ad06484 Fix out of tree builds.
pbrook authored
216 done
7775534 Make installing bios files optional.
ths authored
217 endif
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
218 $(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps"
18be8d7 Properly bomb out on errors in Makefile shell fragments (Ian Jackson)
blueswir1 authored
219 set -e; for x in $(KEYMAPS); do \
79fd42a Install keymaps from new location
Anthony Liguori authored
220 $(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \
ad06484 Fix out of tree builds.
pbrook authored
221 done
626df76 build all targets at the same time
bellard authored
222 for d in $(TARGET_DIRS); do \
7d3505c bsd port (Markus Niemisto)
bellard authored
223 $(MAKE) -C $$d $@ || exit 1 ; \
626df76 build all targets at the same time
bellard authored
224 done
612384d added libgemu.a build
bellard authored
225
367e86e new x86 CPU core
bellard authored
226 # various test targets
9b0b820 removed obsolete test2 target
bellard authored
227 test speed: all
7d3505c bsd port (Markus Niemisto)
bellard authored
228 $(MAKE) -C tests $@
31e31b8 This commit was generated by cvs2svn to compensate for changes in r2,
bellard authored
229
21d4e8e Makefile: fixed rule TAGS
Alexandre Bique authored
230 .PHONY: TAGS
5fafdf2 find -type f | xargs sed -i 's/[\t ]$//g' # on most files
ths authored
231 TAGS:
21d4e8e Makefile: fixed rule TAGS
Alexandre Bique authored
232 find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags
31e31b8 This commit was generated by cvs2svn to compensate for changes in r2,
bellard authored
233
6688bc6 cscope rule
bellard authored
234 cscope:
235 rm -f ./cscope.*
ede4608 Fix cscope filelist by removing leading ./
aurel32 authored
236 find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files
6688bc6 cscope rule
bellard authored
237 cscope -b
238
3ef693a distribution patches
bellard authored
239 # documentation
01668d9 Documentation: Modify rule for html output (better looking output format...
Stefan Weil authored
240 MAKEINFO=makeinfo
241 MAKEINFOFLAGS=--no-headers --no-split --number-sections
20cc999 Documentation: Add build support for documentation in pdf format
Stefan Weil authored
242 TEXIFLAG=$(if $(V),,--quiet)
243 %.dvi: %.texi
244 $(call quiet-command,texi2dvi $(TEXIFLAG) -I . $<," GEN $@")
245
1f67313 doc update
bellard authored
246 %.html: %.texi
01668d9 Documentation: Modify rule for html output (better looking output format...
Stefan Weil authored
247 $(call quiet-command,$(MAKEINFO) $(MAKEINFOFLAGS) --html $< -o $@, \
248 " GEN $@")
3ef693a distribution patches
bellard authored
249
f354832 info and dvi doc targets
bellard authored
250 %.info: %.texi
01668d9 Documentation: Modify rule for html output (better looking output format...
Stefan Weil authored
251 $(call quiet-command,$(MAKEINFO) $< -o $@," GEN $@")
f354832 info and dvi doc targets
bellard authored
252
20cc999 Documentation: Add build support for documentation in pdf format
Stefan Weil authored
253 %.pdf: %.texi
254 $(call quiet-command,texi2pdf $(TEXIFLAG) -I . $<," GEN $@")
5824d65 Syncing documentation vs. -help vs. qemu_options table
blueswir1 authored
255
256 qemu-options.texi: $(SRC_PATH)/qemu-options.hx
0d00e56 build system: silent generation of doc files and qemu-options.h (Jan Kis...
aliguori authored
257 $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")
f354832 info and dvi doc targets
bellard authored
258
2313086 Blue Swirl Use hxtool to generate monitor documentation and C structures
blueswirl authored
259 qemu-monitor.texi: $(SRC_PATH)/qemu-monitor.hx
260 $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")
261
153859b Use hxtool for qemu-img command list
Stuart Brady authored
262 qemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx
263 $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")
264
2313086 Blue Swirl Use hxtool to generate monitor documentation and C structures
blueswirl authored
265 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
266 $(call quiet-command, \
267 perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \
268 pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \
269 " GEN $@")
5a67135 automatic man page generation - BIOS installation
bellard authored
270
153859b Use hxtool for qemu-img command list
Stuart Brady authored
271 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
272 $(call quiet-command, \
273 perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \
274 pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \
275 " GEN $@")
acd935e doc update - added qemu-img manual page
bellard authored
276
7a5ca86 qemu-nbd tool (Anthony Liguori)
bellard authored
277 qemu-nbd.8: qemu-nbd.texi
0d00e56 build system: silent generation of doc files and qemu-options.h (Jan Kis...
aliguori authored
278 $(call quiet-command, \
279 perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod && \
280 pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \
281 " GEN $@")
7a5ca86 qemu-nbd tool (Anthony Liguori)
bellard authored
282
0cb3fb1 Add doc, html, dvi and .PHONY Makefile targets.
pbrook authored
283 dvi: qemu-doc.dvi qemu-tech.dvi
284 html: qemu-doc.html qemu-tech.html
20cc999 Documentation: Add build support for documentation in pdf format
Stefan Weil authored
285 info: qemu-doc.info qemu-tech.info
286 pdf: qemu-doc.pdf qemu-tech.pdf
0cb3fb1 Add doc, html, dvi and .PHONY Makefile targets.
pbrook authored
287
20cc999 Documentation: Add build support for documentation in pdf format
Stefan Weil authored
288 qemu-doc.dvi qemu-doc.html qemu-doc.info qemu-doc.pdf: \
289 qemu-img.texi qemu-nbd.texi qemu-options.texi \
290 qemu-monitor.texi qemu-img-cmds.texi
818220f Add missing dependencies for qemu-doc.* (Stefan Weil)
aliguori authored
291
df5cf72 Make the tarball's VERSION part overridable from make invocation.
ths authored
292 VERSION ?= $(shell cat VERSION)
293 FILE = qemu-$(VERSION)
586314f better debug support
bellard authored
294
1e43adf new directory structure - changed naming of qemu and vl
bellard authored
295 # tar release (use 'make -k tar' on a checkouted tree)
586314f better debug support
bellard authored
296 tar:
297 rm -rf /tmp/$(FILE)
1e43adf new directory structure - changed naming of qemu and vl
bellard authored
298 cp -r . /tmp/$(FILE)
99c6c08 Ignore .git and .svn in Makefile, noticed by Stefan Weil.
aurel32 authored
299 cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .git --exclude .svn
586314f better debug support
bellard authored
300 rm -rf /tmp/$(FILE)
301
4c0a6db Fix tarbin Makefile rule
Stuart Brady authored
302 SYSTEM_TARGETS=$(filter %-softmmu,$(TARGET_DIRS))
303 SYSTEM_PROGS=$(patsubst qemu-system-i386,qemu, \
304 $(patsubst %-softmmu,qemu-system-%, \
305 $(SYSTEM_TARGETS)))
306
307 USER_TARGETS=$(filter %-user,$(TARGET_DIRS))
308 USER_PROGS=$(patsubst %-bsd-user,qemu-%, \
309 $(patsubst %-darwin-user,qemu-%, \
310 $(patsubst %-linux-user,qemu-%, \
311 $(USER_TARGETS))))
312
76b62fd added binary archive
bellard authored
313 # generate a binary distribution
d691f66 glibc2.2 fixes - more command line options - misc doc fixes
bellard authored
314 tarbin:
18be8d7 Properly bomb out on errors in Makefile shell fragments (Ian Jackson)
blueswir1 authored
315 cd / && tar zcvf ~/qemu-$(VERSION)-$(ARCH).tar.gz \
4c0a6db Fix tarbin Makefile rule
Stuart Brady authored
316 $(patsubst %,$(bindir)/%, $(SYSTEM_PROGS)) \
317 $(patsubst %,$(bindir)/%, $(USER_PROGS)) \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
318 $(bindir)/qemu-img \
319 $(bindir)/qemu-nbd \
7efa438 better packaging support
bellard authored
320 $(datadir)/bios.bin \
321 $(datadir)/vgabios.bin \
de9258a specific VGA BIOS for Cirrus VGA Card
bellard authored
322 $(datadir)/vgabios-cirrus.bin \
637f6cd ppc bios
bellard authored
323 $(datadir)/ppc_rom.bin \
d529525 VGA bios support for PowerPC
bellard authored
324 $(datadir)/video.x \
0986ac3 use OpenBIOS instead of Proll on sparc (Blue Swirl)
bellard authored
325 $(datadir)/openbios-sparc32 \
938255d Copy Sparc64 firmware when installing (Hervé Poussineau)
blueswir1 authored
326 $(datadir)/openbios-sparc64 \
e5d01b0 target-ppc: add an openbios-ppc image
aurel32 authored
327 $(datadir)/openbios-ppc \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
328 $(datadir)/pxe-ne2k_pci.bin \
19c80e5 update
bellard authored
329 $(datadir)/pxe-rtl8139.bin \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
330 $(datadir)/pxe-pcnet.bin \
2991990 Add e1000 etherboot ROM from http://www.rom-o-matic.net
aliguori authored
331 $(datadir)/pxe-e1000.bin \
1f50f8d better install
bellard authored
332 $(docdir)/qemu-doc.html \
333 $(docdir)/qemu-tech.html \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
334 $(mandir)/man1/qemu.1 \
335 $(mandir)/man1/qemu-img.1 \
7a5ca86 qemu-nbd tool (Anthony Liguori)
bellard authored
336 $(mandir)/man8/qemu-nbd.8
d691f66 glibc2.2 fixes - more command line options - misc doc fixes
bellard authored
337
4fb240a compile common code once
bellard authored
338 # Include automatically generated dependency files
e1144d0 Mark McLoughlin net: move net-queue.[ch] under net/
markmc authored
339 -include $(wildcard *.d audio/*.d slirp/*.d block/*.d net/*.d)
Something went wrong with that request. Please try again.