Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 349 lines (269 sloc) 11.132 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
b40292e Jan Kiszka QMP: Introduce commands documentation
jan-kiszka authored
32 DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 QMP/qmp-commands.txt
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
d9b73e4 Corentin Chary vnc: add missing target for vnc-encodings-*.o
iksaif authored
123 vnc-encoding-zlib.o: vnc-encoding-zlib.c vnc.h
70a4568 Corentin Chary vnc: split encoding in specific files
iksaif authored
124
d9b73e4 Corentin Chary vnc: add missing target for vnc-encodings-*.o
iksaif authored
125 vnc-encoding-hextile.o: vnc-encoding-hextile.c vnc.h
70a4568 Corentin Chary vnc: split encoding in specific files
iksaif authored
126
d9b73e4 Corentin Chary vnc: add missing target for vnc-encodings-*.o
iksaif authored
127 vnc-encoding-tight.o: vnc-encoding-tight.c vnc.h vnc-encoding-tight.h
380282b Corentin Chary vnc: add basic tight support
iksaif authored
128
0483755 Refactor keymap code to avoid duplication ("Daniel P. Berrange")
aliguori authored
129 curses.o: curses.c keymaps.h curses_keys.h
fb599c9 Implement a HCI passthrough to host.
balrog authored
130
a558ee1 Juan Quintela Rename CPPFLAGS to QEMU_CFLAGS
juanquintela authored
131 bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS)
4fb240a compile common code once
bellard authored
132
e4d5639 iov: Introduce a new file for helpers around iovs, add iov_from_buf()
Amit Shah authored
133 iov.o: iov.c iov.h
134
4fb240a compile common code once
bellard authored
135 ######################################################################
136
3c089e1 Juan Quintela Fix generation of config-host.h
juanquintela authored
137 qemu-img.o: qemu-img-cmds.h
138 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
139
526f0ac error: Link qemu-img, qemu-nbd, qemu-io with qemu-error.o
Markus Armbruster authored
140 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
141
526f0ac error: Link qemu-img, qemu-nbd, qemu-io with qemu-error.o
Markus Armbruster authored
142 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
143
526f0ac error: Link qemu-img, qemu-nbd, qemu-io with qemu-error.o
Markus Armbruster authored
144 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
145
153859b Use hxtool for qemu-img command list
Stuart Brady authored
146 qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
147 $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@," GEN $@")
148
4091da4 Jan Kiszka Add dependency of JSON unit tests on config-host.h
jan-kiszka authored
149 check-qint.o check-qstring.o check-qdict.o check-qlist.o check-qfloat.o check-qjson.o: $(GENERATED_HEADERS)
150
33837ba Introduce QInt unit-tests
Luiz Capitulino authored
151 check-qint: check-qint.o qint.o qemu-malloc.o
5de65a0 Introduce QString unit-tests
Luiz Capitulino authored
152 check-qstring: check-qstring.o qstring.o qemu-malloc.o
acc3b03 QDict: New qdict_get_double()
Markus Armbruster authored
153 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
154 check-qlist: check-qlist.o qlist.o qint.o qemu-malloc.o
9c9efb6 Add unit test for QFloat
Anthony Liguori authored
155 check-qfloat: check-qfloat.o qfloat.o qemu-malloc.o
422c46a Add a unit test for JSON support
Anthony Liguori authored
156 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
157
31e31b8 This commit was generated by cvs2svn to compensate for changes in r2,
bellard authored
158 clean:
2d80ae8 avoid problems if make clean was not made before updating
bellard authored
159 # avoid old build problems by removing potentially incorrect old files
25be210 Juan Quintela Rename config.{h, mak} config-target.{h, mak}
juanquintela authored
160 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
161 rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~
ac46eb8 Makefile: add fsdev/*.{o,d} to clean
Hidetoshi Seto authored
162 rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d fsdev/*.o fsdev/*.d
07b44ce Blue Swirl Clean up generated qemu-img-cmds.h
blueswirl authored
163 rm -f qemu-img-cmds.h
7d3505c bsd port (Markus Niemisto)
bellard authored
164 $(MAKE) -C tests clean
4d90453 Blue Swirl Compile disassemblers only once
blueswirl authored
165 for d in $(ALL_SUBDIRS) libhw32 libhw64 libuser libdis libdis-user; do \
fc8e320 fix make clean targets
Magnus Damm authored
166 if test -d $$d; then $(MAKE) -C $$d $@ || exit 1; fi; \
626df76 build all targets at the same time
bellard authored
167 done
31e31b8 This commit was generated by cvs2svn to compensate for changes in r2,
bellard authored
168
7d13299 added translation cache
bellard authored
169 distclean: clean
fc8e320 fix make clean targets
Magnus Damm authored
170 rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi qemu-monitor.texi
d6f3a84 Makefile: add qemu-options.def to distclean
Hidetoshi Seto authored
171 rm -f qemu-options.def
a992fe3 Paul Brook Makefile dependencies for device configs
pbrook authored
172 rm -f config-all-devices.mak
fc8e320 fix make clean targets
Magnus Damm authored
173 rm -f roms/seabios/config.mak roms/vgabios/config.mak
e1a068b Makefile: Not every shell support {}
Hidetoshi Seto authored
174 rm -f qemu-doc.info qemu-doc.aux qemu-doc.cp qemu-doc.dvi qemu-doc.fn qemu-doc.info qemu-doc.ky qemu-doc.log qemu-doc.pdf qemu-doc.pg qemu-doc.toc qemu-doc.tp qemu-doc.vr
175 rm -f qemu-tech.info qemu-tech.aux qemu-tech.cp qemu-tech.dvi qemu-tech.fn qemu-tech.info qemu-tech.ky qemu-tech.log qemu-tech.pdf qemu-tech.pg qemu-tech.toc qemu-tech.tp qemu-tech.vr
4d90453 Blue Swirl Compile disassemblers only once
blueswirl authored
176 for d in $(TARGET_DIRS) libhw32 libhw64 libuser libdis libdis-user; do \
bc1b050 fixed distclean target
bellard authored
177 rm -rf $$d || exit 1 ; \
76bc683 updated
bellard authored
178 done
7d13299 added translation cache
bellard authored
179
fed4a9a keymap install fix
bellard authored
180 KEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \
181 ar de en-us fi fr-be hr it lv nl pl ru th \
182 common de-ch es fo fr-ca hu ja mk nl-be pt sl tr
183
7775534 Make installing bios files optional.
ths authored
184 ifdef INSTALL_BLOBS
185 BLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \
e5d01b0 target-ppc: add an openbios-ppc image
aurel32 authored
186 video.x openbios-sparc32 openbios-sparc64 openbios-ppc \
5309e5f Makefile: Fix names of GPXE ROM files
Stefan Weil authored
187 gpxe-eepro100-80861209.rom \
188 gpxe-eepro100-80861229.rom \
189 pxe-e1000.bin \
88e2b0a Makefile: Fix definition of pxe-*.bin blobs
Stefan Weil authored
190 pxe-ne2k_pci.bin pxe-pcnet.bin \
191 pxe-rtl8139.bin pxe-virtio.bin \
253d094 Alexander Graf Multiboot build system v4
agraf authored
192 bamboo.dtb petalogix-s3adsp1800.dtb \
fe270d0 Alexander Graf target-s390: add firmware code
agraf authored
193 multiboot.bin linuxboot.bin \
194 s390-zipl.rom
7775534 Make installing bios files optional.
ths authored
195 else
196 BLOBS=
197 endif
198
38954dc Add install-doc rule. Use it when building docs.
pbrook authored
199 install-doc: $(DOCS)
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
200 $(INSTALL_DIR) "$(DESTDIR)$(docdir)"
201 $(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)"
96d409e Juan Quintela CONFIG_POSIX makes more sense that not CONFIG_WIN32
juanquintela authored
202 ifdef CONFIG_POSIX
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
203 $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
204 $(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1"
205 $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8"
206 $(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8"
38954dc Add install-doc rule. Use it when building docs.
pbrook authored
207 endif
208
b5ec5ce Add cpu model configuration support..
john cooper authored
209 install-sysconfig:
990caaf aprzywar install: honor DESTDIR on sysconfdir population
aprzywar authored
210 $(INSTALL_DIR) "$(DESTDIR)$(sysconfdir)/qemu"
211 $(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(sysconfdir)/qemu"
b5ec5ce Add cpu model configuration support..
john cooper authored
212
213 install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
214 $(INSTALL_DIR) "$(DESTDIR)$(bindir)"
932a79d Don't install tools if $(TOOLS) is empty, by Thayne Harbaugh.
ths authored
215 ifneq ($(TOOLS),)
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
216 $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)"
932a79d Don't install tools if $(TOOLS) is empty, by Thayne Harbaugh.
ths authored
217 endif
7775534 Make installing bios files optional.
ths authored
218 ifneq ($(BLOBS),)
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
219 $(INSTALL_DIR) "$(DESTDIR)$(datadir)"
7775534 Make installing bios files optional.
ths authored
220 set -e; for x in $(BLOBS); do \
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
221 $(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \
ad06484 Fix out of tree builds.
pbrook authored
222 done
7775534 Make installing bios files optional.
ths authored
223 endif
58f8aea buildsytem: consistently use install (Christoph Egger)
aliguori authored
224 $(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps"
18be8d7 Properly bomb out on errors in Makefile shell fragments (Ian Jackson)
blueswir1 authored
225 set -e; for x in $(KEYMAPS); do \
79fd42a Install keymaps from new location
Anthony Liguori authored
226 $(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \
ad06484 Fix out of tree builds.
pbrook authored
227 done
626df76 build all targets at the same time
bellard authored
228 for d in $(TARGET_DIRS); do \
7d3505c bsd port (Markus Niemisto)
bellard authored
229 $(MAKE) -C $$d $@ || exit 1 ; \
626df76 build all targets at the same time
bellard authored
230 done
612384d added libgemu.a build
bellard authored
231
367e86e new x86 CPU core
bellard authored
232 # various test targets
9b0b820 removed obsolete test2 target
bellard authored
233 test speed: all
7d3505c bsd port (Markus Niemisto)
bellard authored
234 $(MAKE) -C tests $@
31e31b8 This commit was generated by cvs2svn to compensate for changes in r2,
bellard authored
235
21d4e8e Makefile: fixed rule TAGS
Alexandre Bique authored
236 .PHONY: TAGS
5fafdf2 find -type f | xargs sed -i 's/[\t ]$//g' # on most files
ths authored
237 TAGS:
21d4e8e Makefile: fixed rule TAGS
Alexandre Bique authored
238 find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags
31e31b8 This commit was generated by cvs2svn to compensate for changes in r2,
bellard authored
239
6688bc6 cscope rule
bellard authored
240 cscope:
241 rm -f ./cscope.*
ede4608 Fix cscope filelist by removing leading ./
aurel32 authored
242 find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files
6688bc6 cscope rule
bellard authored
243 cscope -b
244
3ef693a distribution patches
bellard authored
245 # documentation
01668d9 Documentation: Modify rule for html output (better looking output format...
Stefan Weil authored
246 MAKEINFO=makeinfo
247 MAKEINFOFLAGS=--no-headers --no-split --number-sections
20cc999 Documentation: Add build support for documentation in pdf format
Stefan Weil authored
248 TEXIFLAG=$(if $(V),,--quiet)
249 %.dvi: %.texi
250 $(call quiet-command,texi2dvi $(TEXIFLAG) -I . $<," GEN $@")
251
1f67313 doc update
bellard authored
252 %.html: %.texi
01668d9 Documentation: Modify rule for html output (better looking output format...
Stefan Weil authored
253 $(call quiet-command,$(MAKEINFO) $(MAKEINFOFLAGS) --html $< -o $@, \
254 " GEN $@")
3ef693a distribution patches
bellard authored
255
f354832 info and dvi doc targets
bellard authored
256 %.info: %.texi
01668d9 Documentation: Modify rule for html output (better looking output format...
Stefan Weil authored
257 $(call quiet-command,$(MAKEINFO) $< -o $@," GEN $@")
f354832 info and dvi doc targets
bellard authored
258
20cc999 Documentation: Add build support for documentation in pdf format
Stefan Weil authored
259 %.pdf: %.texi
260 $(call quiet-command,texi2pdf $(TEXIFLAG) -I . $<," GEN $@")
5824d65 Syncing documentation vs. -help vs. qemu_options table
blueswir1 authored
261
262 qemu-options.texi: $(SRC_PATH)/qemu-options.hx
0d00e56 build system: silent generation of doc files and qemu-options.h (Jan Kis...
aliguori authored
263 $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")
f354832 info and dvi doc targets
bellard authored
264
2313086 Blue Swirl Use hxtool to generate monitor documentation and C structures
blueswirl authored
265 qemu-monitor.texi: $(SRC_PATH)/qemu-monitor.hx
266 $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")
267
b40292e Jan Kiszka QMP: Introduce commands documentation
jan-kiszka authored
268 QMP/qmp-commands.txt: $(SRC_PATH)/qemu-monitor.hx
269 $(call quiet-command,sh $(SRC_PATH)/hxtool -q < $< > $@," GEN $@")
270
153859b Use hxtool for qemu-img command list
Stuart Brady authored
271 qemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx
272 $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@")
273
2313086 Blue Swirl Use hxtool to generate monitor documentation and C structures
blueswirl authored
274 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
275 $(call quiet-command, \
276 perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \
277 pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \
278 " GEN $@")
5a67135 automatic man page generation - BIOS installation
bellard authored
279
153859b Use hxtool for qemu-img command list
Stuart Brady authored
280 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
281 $(call quiet-command, \
282 perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \
283 pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \
284 " GEN $@")
acd935e doc update - added qemu-img manual page
bellard authored
285
7a5ca86 qemu-nbd tool (Anthony Liguori)
bellard authored
286 qemu-nbd.8: qemu-nbd.texi
0d00e56 build system: silent generation of doc files and qemu-options.h (Jan Kis...
aliguori authored
287 $(call quiet-command, \
288 perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod && \
289 pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \
290 " GEN $@")
7a5ca86 qemu-nbd tool (Anthony Liguori)
bellard authored
291
0cb3fb1 Add doc, html, dvi and .PHONY Makefile targets.
pbrook authored
292 dvi: qemu-doc.dvi qemu-tech.dvi
293 html: qemu-doc.html qemu-tech.html
20cc999 Documentation: Add build support for documentation in pdf format
Stefan Weil authored
294 info: qemu-doc.info qemu-tech.info
295 pdf: qemu-doc.pdf qemu-tech.pdf
0cb3fb1 Add doc, html, dvi and .PHONY Makefile targets.
pbrook authored
296
20cc999 Documentation: Add build support for documentation in pdf format
Stefan Weil authored
297 qemu-doc.dvi qemu-doc.html qemu-doc.info qemu-doc.pdf: \
298 qemu-img.texi qemu-nbd.texi qemu-options.texi \
299 qemu-monitor.texi qemu-img-cmds.texi
818220f Add missing dependencies for qemu-doc.* (Stefan Weil)
aliguori authored
300
df5cf72 Make the tarball's VERSION part overridable from make invocation.
ths authored
301 VERSION ?= $(shell cat VERSION)
302 FILE = qemu-$(VERSION)
586314f better debug support
bellard authored
303
1e43adf new directory structure - changed naming of qemu and vl
bellard authored
304 # tar release (use 'make -k tar' on a checkouted tree)
586314f better debug support
bellard authored
305 tar:
306 rm -rf /tmp/$(FILE)
1e43adf new directory structure - changed naming of qemu and vl
bellard authored
307 cp -r . /tmp/$(FILE)
99c6c08 Ignore .git and .svn in Makefile, noticed by Stefan Weil.
aurel32 authored
308 cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .git --exclude .svn
586314f better debug support
bellard authored
309 rm -rf /tmp/$(FILE)
310
4c0a6db Fix tarbin Makefile rule
Stuart Brady authored
311 SYSTEM_TARGETS=$(filter %-softmmu,$(TARGET_DIRS))
312 SYSTEM_PROGS=$(patsubst qemu-system-i386,qemu, \
313 $(patsubst %-softmmu,qemu-system-%, \
314 $(SYSTEM_TARGETS)))
315
316 USER_TARGETS=$(filter %-user,$(TARGET_DIRS))
317 USER_PROGS=$(patsubst %-bsd-user,qemu-%, \
318 $(patsubst %-darwin-user,qemu-%, \
319 $(patsubst %-linux-user,qemu-%, \
320 $(USER_TARGETS))))
321
76b62fd added binary archive
bellard authored
322 # generate a binary distribution
d691f66 glibc2.2 fixes - more command line options - misc doc fixes
bellard authored
323 tarbin:
18be8d7 Properly bomb out on errors in Makefile shell fragments (Ian Jackson)
blueswir1 authored
324 cd / && tar zcvf ~/qemu-$(VERSION)-$(ARCH).tar.gz \
4c0a6db Fix tarbin Makefile rule
Stuart Brady authored
325 $(patsubst %,$(bindir)/%, $(SYSTEM_PROGS)) \
326 $(patsubst %,$(bindir)/%, $(USER_PROGS)) \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
327 $(bindir)/qemu-img \
328 $(bindir)/qemu-nbd \
7efa438 better packaging support
bellard authored
329 $(datadir)/bios.bin \
330 $(datadir)/vgabios.bin \
de9258a specific VGA BIOS for Cirrus VGA Card
bellard authored
331 $(datadir)/vgabios-cirrus.bin \
637f6cd ppc bios
bellard authored
332 $(datadir)/ppc_rom.bin \
d529525 VGA bios support for PowerPC
bellard authored
333 $(datadir)/video.x \
0986ac3 use OpenBIOS instead of Proll on sparc (Blue Swirl)
bellard authored
334 $(datadir)/openbios-sparc32 \
938255d Copy Sparc64 firmware when installing (Hervé Poussineau)
blueswir1 authored
335 $(datadir)/openbios-sparc64 \
e5d01b0 target-ppc: add an openbios-ppc image
aurel32 authored
336 $(datadir)/openbios-ppc \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
337 $(datadir)/pxe-ne2k_pci.bin \
19c80e5 update
bellard authored
338 $(datadir)/pxe-rtl8139.bin \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
339 $(datadir)/pxe-pcnet.bin \
2991990 Add e1000 etherboot ROM from http://www.rom-o-matic.net
aliguori authored
340 $(datadir)/pxe-e1000.bin \
1f50f8d better install
bellard authored
341 $(docdir)/qemu-doc.html \
342 $(docdir)/qemu-tech.html \
40e8a53 Fix and rearrange 'tarbin' Makefile rule
aurel32 authored
343 $(mandir)/man1/qemu.1 \
344 $(mandir)/man1/qemu-img.1 \
7a5ca86 qemu-nbd tool (Anthony Liguori)
bellard authored
345 $(mandir)/man8/qemu-nbd.8
d691f66 glibc2.2 fixes - more command line options - misc doc fixes
bellard authored
346
4fb240a compile common code once
bellard authored
347 # Include automatically generated dependency files
e1144d0 Mark McLoughlin net: move net-queue.[ch] under net/
markmc authored
348 -include $(wildcard *.d audio/*.d slirp/*.d block/*.d net/*.d)
Something went wrong with that request. Please try again.