root / Makefile @ 0bfe3ca5
History | View | Annotate | Download (10.5 kB)
1 | 0cb3fb1e | pbrook | # Makefile for QEMU. |
---|---|---|---|
2 | 0cb3fb1e | pbrook | |
3 | 55d7e8f6 | aurel32 | ifneq ($(wildcard config-host.mak),) |
4 | ad064840 | pbrook | include config-host.mak |
5 | 17759187 | aliguori | include $(SRC_PATH)/rules.mak |
6 | 55d7e8f6 | aurel32 | else |
7 | 55d7e8f6 | aurel32 | config-host.mak: |
8 | 55d7e8f6 | aurel32 | @echo "Please call configure before running make!" |
9 | 55d7e8f6 | aurel32 | @exit 1 |
10 | 55d7e8f6 | aurel32 | endif |
11 | 766a487a | bellard | |
12 | 818220f5 | aliguori | .PHONY: all clean cscope distclean dvi html info install install-doc \ |
13 | 818220f5 | aliguori | recurse-all speed tar tarbin test |
14 | 0cb3fb1e | pbrook | |
15 | 8c462f8f | pbrook | VPATH=$(SRC_PATH):$(SRC_PATH)/hw |
16 | 8c462f8f | pbrook | |
17 | 17759187 | aliguori | |
18 | 40293e58 | bellard | CFLAGS += $(OS_CFLAGS) $(ARCH_CFLAGS) |
19 | 40293e58 | bellard | LDFLAGS += $(OS_LDFLAGS) $(ARCH_LDFLAGS) |
20 | 3142255c | blueswir1 | |
21 | 96935aa4 | malc | CPPFLAGS += -I. -I$(SRC_PATH) -MMD -MP -MT $@ |
22 | 4fb240a4 | bellard | CPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE |
23 | 766a487a | bellard | LIBS= |
24 | 1f50f8d1 | bellard | ifdef CONFIG_STATIC |
25 | 40293e58 | bellard | LDFLAGS += -static |
26 | 1f50f8d1 | bellard | endif |
27 | cc8ae6de | pbrook | ifdef BUILD_DOCS |
28 | 7a5ca864 | bellard | DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 |
29 | cc8ae6de | pbrook | else |
30 | cc8ae6de | pbrook | DOCS= |
31 | cc8ae6de | pbrook | endif |
32 | aa05ae6f | bellard | |
33 | e5d355d1 | aliguori | LIBS+=$(PTHREADLIBS) |
34 | e5d355d1 | aliguori | LIBS+=$(CLOCKLIBS) |
35 | 83f64091 | bellard | |
36 | 7e00eb9b | aliguori | ifdef CONFIG_SOLARIS |
37 | 7e00eb9b | aliguori | LIBS+=-lsocket -lnsl -lresolv |
38 | 7e00eb9b | aliguori | endif |
39 | 7e00eb9b | aliguori | |
40 | 03ff3ca3 | aliguori | ifdef CONFIG_WIN32 |
41 | 03ff3ca3 | aliguori | LIBS+=-lwinmm -lws2_32 -liphlpapi |
42 | 03ff3ca3 | aliguori | endif |
43 | 03ff3ca3 | aliguori | |
44 | 818220f5 | aliguori | all: $(TOOLS) $(DOCS) recurse-all |
45 | b9dea4fb | pbrook | |
46 | 55d7e8f6 | aurel32 | config-host.mak: configure |
47 | 55d7e8f6 | aurel32 | ifneq ($(wildcard config-host.mak),) |
48 | 55d7e8f6 | aurel32 | @echo $@ is out-of-date, running configure |
49 | 052ff921 | blueswir1 | @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh |
50 | 55d7e8f6 | aurel32 | endif |
51 | 55d7e8f6 | aurel32 | |
52 | 0087375e | Paul Brook | SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) |
53 | cec7d0b6 | pbrook | SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) |
54 | cec7d0b6 | pbrook | |
55 | 86e840ee | aurel32 | subdir-%: |
56 | 0087375e | Paul Brook | $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,) |
57 | 4aa42531 | pbrook | |
58 | cec7d0b6 | pbrook | $(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a |
59 | cec7d0b6 | pbrook | $(filter %-user,$(SUBDIR_RULES)): libqemu_user.a |
60 | cec7d0b6 | pbrook | |
61 | cec7d0b6 | pbrook | recurse-all: $(SUBDIR_RULES) |
62 | 83f64091 | bellard | |
63 | faf07963 | pbrook | ####################################################################### |
64 | faf07963 | pbrook | # BLOCK_OBJS is code used by both qemu system emulation and qemu-img |
65 | faf07963 | pbrook | |
66 | 0bfe3ca5 | Anthony Liguori | BLOCK_OBJS=cutils.o cache-utils.o qemu-malloc.o module.o |
67 | faf07963 | pbrook | BLOCK_OBJS+=block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o |
68 | faf07963 | pbrook | BLOCK_OBJS+=block-dmg.o block-bochs.o block-vpc.o block-vvfat.o |
69 | 03ff3ca3 | aliguori | BLOCK_OBJS+=block-qcow2.o block-parallels.o block-nbd.o |
70 | a76bab49 | aliguori | BLOCK_OBJS+=nbd.o block.o aio.o |
71 | 03ff3ca3 | aliguori | |
72 | 03ff3ca3 | aliguori | ifdef CONFIG_WIN32 |
73 | 03ff3ca3 | aliguori | BLOCK_OBJS += block-raw-win32.o |
74 | 03ff3ca3 | aliguori | else |
75 | 3c529d93 | aliguori | ifdef CONFIG_AIO |
76 | 3c529d93 | aliguori | BLOCK_OBJS += posix-aio-compat.o |
77 | 3c529d93 | aliguori | endif |
78 | 03ff3ca3 | aliguori | BLOCK_OBJS += block-raw-posix.o |
79 | 03ff3ca3 | aliguori | endif |
80 | 03ff3ca3 | aliguori | |
81 | 4fb240a4 | bellard | ###################################################################### |
82 | 2e2ea909 | bellard | # libqemu_common.a: Target independent part of system emulation. The |
83 | 4fb240a4 | bellard | # long term path is to suppress *all* target specific code in case of |
84 | 4fb240a4 | bellard | # system emulation, i.e. a single QEMU executable should support all |
85 | 4fb240a4 | bellard | # CPUs and machines. |
86 | 47cea614 | bellard | |
87 | cd01b4a3 | aliguori | OBJS=$(BLOCK_OBJS) |
88 | 87ecb68b | pbrook | OBJS+=readline.o console.o |
89 | cd01b4a3 | aliguori | |
90 | e9c28334 | blueswir1 | OBJS+=irq.o ptimer.o |
91 | 87ecb68b | pbrook | OBJS+=i2c.o smbus.o smbus_eeprom.o max7310.o max111x.o wm8750.o |
92 | 7e7c5e4c | balrog | OBJS+=ssd0303.o ssd0323.o ads7846.o stellaris_input.o twl92230.o |
93 | e9c28334 | blueswir1 | OBJS+=tmp105.o lm832x.o eeprom93xx.o tsc2005.o |
94 | 87ecb68b | pbrook | OBJS+=scsi-disk.o cdrom.o |
95 | 985a03b0 | ths | OBJS+=scsi-generic.o |
96 | 68063649 | blueswir1 | OBJS+=usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o |
97 | 6c9f886c | balrog | OBJS+=usb-serial.o usb-net.o |
98 | 775616c3 | pbrook | OBJS+=sd.o ssi-sd.o |
99 | e6a6d5ab | balrog | OBJS+=bt.o bt-host.o bt-vhci.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o usb-bt.o |
100 | e9c28334 | blueswir1 | OBJS+=bt-hci-csr.o |
101 | 559b90fb | aliguori | OBJS+=buffered_file.o migration.o migration-tcp.o net.o qemu-sockets.o |
102 | 902b3d5c | malc | OBJS+=qemu-char.o aio.o net-checksum.o savevm.o cache-utils.o |
103 | e9c28334 | blueswir1 | OBJS+=msmouse.o ps2.o |
104 | 87ecb68b | pbrook | |
105 | 2e4d9fb1 | aurel32 | ifdef CONFIG_BRLAPI |
106 | 2e4d9fb1 | aurel32 | OBJS+= baum.o |
107 | 2e4d9fb1 | aurel32 | LIBS+=-lbrlapi |
108 | 2e4d9fb1 | aurel32 | endif |
109 | 2e4d9fb1 | aurel32 | |
110 | 4fb240a4 | bellard | ifdef CONFIG_WIN32 |
111 | 4fb240a4 | bellard | OBJS+=tap-win32.o |
112 | 559b90fb | aliguori | else |
113 | 559b90fb | aliguori | OBJS+=migration-exec.o |
114 | 4fb240a4 | bellard | endif |
115 | 4fb240a4 | bellard | |
116 | 4fb240a4 | bellard | AUDIO_OBJS = audio.o noaudio.o wavaudio.o mixeng.o |
117 | 4fb240a4 | bellard | ifdef CONFIG_SDL |
118 | 4fb240a4 | bellard | AUDIO_OBJS += sdlaudio.o |
119 | 4fb240a4 | bellard | endif |
120 | 4fb240a4 | bellard | ifdef CONFIG_OSS |
121 | 4fb240a4 | bellard | AUDIO_OBJS += ossaudio.o |
122 | 4fb240a4 | bellard | endif |
123 | 4fb240a4 | bellard | ifdef CONFIG_COREAUDIO |
124 | 4fb240a4 | bellard | AUDIO_OBJS += coreaudio.o |
125 | ca9cc28c | balrog | AUDIO_PT = yes |
126 | 4fb240a4 | bellard | endif |
127 | 4fb240a4 | bellard | ifdef CONFIG_ALSA |
128 | 4fb240a4 | bellard | AUDIO_OBJS += alsaaudio.o |
129 | 4fb240a4 | bellard | endif |
130 | 4fb240a4 | bellard | ifdef CONFIG_DSOUND |
131 | 4fb240a4 | bellard | AUDIO_OBJS += dsoundaudio.o |
132 | 4fb240a4 | bellard | endif |
133 | 4fb240a4 | bellard | ifdef CONFIG_FMOD |
134 | 4fb240a4 | bellard | AUDIO_OBJS += fmodaudio.o |
135 | 4fb240a4 | bellard | audio/audio.o audio/fmodaudio.o: CPPFLAGS := -I$(CONFIG_FMOD_INC) $(CPPFLAGS) |
136 | 4fb240a4 | bellard | endif |
137 | ca9cc28c | balrog | ifdef CONFIG_ESD |
138 | ca9cc28c | balrog | AUDIO_PT = yes |
139 | ca9cc28c | balrog | AUDIO_PT_INT = yes |
140 | ca9cc28c | balrog | AUDIO_OBJS += esdaudio.o |
141 | ca9cc28c | balrog | endif |
142 | b8e59f18 | malc | ifdef CONFIG_PA |
143 | b8e59f18 | malc | AUDIO_PT = yes |
144 | b8e59f18 | malc | AUDIO_PT_INT = yes |
145 | b8e59f18 | malc | AUDIO_OBJS += paaudio.o |
146 | b8e59f18 | malc | endif |
147 | ca9cc28c | balrog | ifdef AUDIO_PT |
148 | ca9cc28c | balrog | LDFLAGS += -pthread |
149 | ca9cc28c | balrog | endif |
150 | ca9cc28c | balrog | ifdef AUDIO_PT_INT |
151 | ca9cc28c | balrog | AUDIO_OBJS += audio_pt_int.o |
152 | ca9cc28c | balrog | endif |
153 | 4fb240a4 | bellard | AUDIO_OBJS+= wavcapture.o |
154 | 4fb240a4 | bellard | OBJS+=$(addprefix audio/, $(AUDIO_OBJS)) |
155 | 4fb240a4 | bellard | |
156 | 0483755a | aliguori | OBJS+=keymaps.o |
157 | 4fb240a4 | bellard | ifdef CONFIG_SDL |
158 | 4fb240a4 | bellard | OBJS+=sdl.o x_keymap.o |
159 | 4fb240a4 | bellard | endif |
160 | 4d3b6f6e | balrog | ifdef CONFIG_CURSES |
161 | 4d3b6f6e | balrog | OBJS+=curses.o |
162 | 4d3b6f6e | balrog | endif |
163 | 76655d6d | aliguori | OBJS+=vnc.o acl.o d3des.o |
164 | 5fb6c7a8 | aliguori | ifdef CONFIG_VNC_TLS |
165 | 5fb6c7a8 | aliguori | OBJS+=vnc-tls.o vnc-auth-vencrypt.o |
166 | 5fb6c7a8 | aliguori | endif |
167 | 2f9606b3 | aliguori | ifdef CONFIG_VNC_SASL |
168 | 2f9606b3 | aliguori | OBJS+=vnc-auth-sasl.o |
169 | 2f9606b3 | aliguori | endif |
170 | 4fb240a4 | bellard | |
171 | 4fb240a4 | bellard | ifdef CONFIG_COCOA |
172 | 4fb240a4 | bellard | OBJS+=cocoa.o |
173 | 4fb240a4 | bellard | endif |
174 | 4fb240a4 | bellard | |
175 | e5d355d1 | aliguori | ifdef CONFIG_IOTHREAD |
176 | e5d355d1 | aliguori | OBJS+=qemu-thread.o |
177 | e5d355d1 | aliguori | endif |
178 | e5d355d1 | aliguori | |
179 | 4fb240a4 | bellard | ifdef CONFIG_SLIRP |
180 | 4fb240a4 | bellard | CPPFLAGS+=-I$(SRC_PATH)/slirp |
181 | 4fb240a4 | bellard | SLIRP_OBJS=cksum.o if.o ip_icmp.o ip_input.o ip_output.o \ |
182 | 4fb240a4 | bellard | slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o \ |
183 | 4fb240a4 | bellard | tcp_subr.o tcp_timer.o udp.o bootp.o debug.o tftp.o |
184 | 4fb240a4 | bellard | OBJS+=$(addprefix slirp/, $(SLIRP_OBJS)) |
185 | 4fb240a4 | bellard | endif |
186 | 4fb240a4 | bellard | |
187 | 8a16d273 | ths | LIBS+=$(VDE_LIBS) |
188 | 8a16d273 | ths | |
189 | 4fb240a4 | bellard | cocoa.o: cocoa.m |
190 | 4fb240a4 | bellard | |
191 | 0483755a | aliguori | keymaps.o: keymaps.c keymaps.h |
192 | 0483755a | aliguori | |
193 | 0483755a | aliguori | sdl.o: sdl.c keymaps.h sdl_keysym.h |
194 | 807544e2 | aliguori | |
195 | 807544e2 | aliguori | sdl.o audio/sdlaudio.o: CFLAGS += $(SDL_CFLAGS) |
196 | 4fb240a4 | bellard | |
197 | 76655d6d | aliguori | acl.o: acl.h acl.c |
198 | 76655d6d | aliguori | |
199 | 2f9606b3 | aliguori | vnc.h: vnc-tls.h vnc-auth-vencrypt.h vnc-auth-sasl.h keymaps.h |
200 | 5fb6c7a8 | aliguori | |
201 | 76655d6d | aliguori | vnc.o: vnc.c vnc.h vnc_keysym.h vnchextile.h d3des.c d3des.h acl.h |
202 | 4fb240a4 | bellard | |
203 | 807544e2 | aliguori | vnc.o: CFLAGS += $(CONFIG_VNC_TLS_CFLAGS) |
204 | 4d3b6f6e | balrog | |
205 | 5fb6c7a8 | aliguori | vnc-tls.o: vnc-tls.c vnc.h |
206 | 5fb6c7a8 | aliguori | |
207 | 5fb6c7a8 | aliguori | vnc-auth-vencrypt.o: vnc-auth-vencrypt.c vnc.h |
208 | 5fb6c7a8 | aliguori | |
209 | 2f9606b3 | aliguori | vnc-auth-sasl.o: vnc-auth-sasl.c vnc.h |
210 | 2f9606b3 | aliguori | |
211 | 0483755a | aliguori | curses.o: curses.c keymaps.h curses_keys.h |
212 | fb599c9a | balrog | |
213 | 807544e2 | aliguori | bt-host.o: CFLAGS += $(CONFIG_BLUEZ_CFLAGS) |
214 | 4fb240a4 | bellard | |
215 | 4fb240a4 | bellard | libqemu_common.a: $(OBJS) |
216 | 4fb240a4 | bellard | |
217 | cec7d0b6 | pbrook | ####################################################################### |
218 | cec7d0b6 | pbrook | # USER_OBJS is code used by qemu userspace emulation |
219 | 902b3d5c | malc | USER_OBJS=cutils.o cache-utils.o |
220 | cec7d0b6 | pbrook | |
221 | cec7d0b6 | pbrook | libqemu_user.a: $(USER_OBJS) |
222 | cec7d0b6 | pbrook | |
223 | 4fb240a4 | bellard | ###################################################################### |
224 | 4fb240a4 | bellard | |
225 | 88ca2a59 | Paul Brook | qemu-img$(EXESUF): qemu-img.o qemu-tool.o tool-osdep.o $(BLOCK_OBJS) |
226 | 4fb240a4 | bellard | |
227 | 88ca2a59 | Paul Brook | qemu-nbd$(EXESUF): qemu-nbd.o qemu-tool.o tool-osdep.o $(BLOCK_OBJS) |
228 | 3aa892d7 | aliguori | |
229 | 88ca2a59 | Paul Brook | qemu-io$(EXESUF): qemu-io.o qemu-tool.o tool-osdep.o cmd.o $(BLOCK_OBJS) |
230 | 0a8e1acd | aliguori | |
231 | 0a8e1acd | aliguori | qemu-img$(EXESUF) qemu-nbd$(EXESUF) qemu-io$(EXESUF): LIBS += -lz |
232 | 7a5ca864 | bellard | |
233 | 31e31b8a | bellard | clean: |
234 | 2d80ae89 | bellard | # avoid old build problems by removing potentially incorrect old files |
235 | 5fafdf24 | ths | rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h |
236 | 86e840ee | aurel32 | rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~ |
237 | 4fb240a4 | bellard | rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d |
238 | 7d3505c5 | bellard | $(MAKE) -C tests clean |
239 | 626df76a | bellard | for d in $(TARGET_DIRS); do \ |
240 | 7d3505c5 | bellard | $(MAKE) -C $$d $@ || exit 1 ; \ |
241 | 626df76a | bellard | done |
242 | 31e31b8a | bellard | |
243 | 7d13299d | bellard | distclean: clean |
244 | 016c62c8 | aliguori | rm -f config-host.mak config-host.h $(DOCS) qemu-options.texi |
245 | 0cb3fb1e | pbrook | rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr} |
246 | 76bc6838 | bellard | for d in $(TARGET_DIRS); do \ |
247 | bc1b050d | bellard | rm -rf $$d || exit 1 ; \ |
248 | 76bc6838 | bellard | done |
249 | 7d13299d | bellard | |
250 | fed4a9ad | bellard | KEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \ |
251 | fed4a9ad | bellard | ar de en-us fi fr-be hr it lv nl pl ru th \ |
252 | fed4a9ad | bellard | common de-ch es fo fr-ca hu ja mk nl-be pt sl tr |
253 | fed4a9ad | bellard | |
254 | 77755340 | ths | ifdef INSTALL_BLOBS |
255 | 77755340 | ths | BLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \ |
256 | e5d01b06 | aurel32 | video.x openbios-sparc32 openbios-sparc64 openbios-ppc \ |
257 | e5d01b06 | aurel32 | pxe-ne2k_pci.bin pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin \ |
258 | e5d01b06 | aurel32 | bamboo.dtb |
259 | 77755340 | ths | else |
260 | 77755340 | ths | BLOBS= |
261 | 77755340 | ths | endif |
262 | 77755340 | ths | |
263 | 38954dca | pbrook | install-doc: $(DOCS) |
264 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(docdir)" |
265 | 58f8aead | aliguori | $(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)" |
266 | 38954dca | pbrook | ifndef CONFIG_WIN32 |
267 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1" |
268 | 58f8aead | aliguori | $(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1" |
269 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8" |
270 | 58f8aead | aliguori | $(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8" |
271 | 38954dca | pbrook | endif |
272 | 38954dca | pbrook | |
273 | 38954dca | pbrook | install: all $(if $(BUILD_DOCS),install-doc) |
274 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(bindir)" |
275 | 932a79df | ths | ifneq ($(TOOLS),) |
276 | 58f8aead | aliguori | $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)" |
277 | 932a79df | ths | endif |
278 | 77755340 | ths | ifneq ($(BLOBS),) |
279 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(datadir)" |
280 | 77755340 | ths | set -e; for x in $(BLOBS); do \ |
281 | 58f8aead | aliguori | $(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \ |
282 | ad064840 | pbrook | done |
283 | 77755340 | ths | endif |
284 | 11d9f695 | bellard | ifndef CONFIG_WIN32 |
285 | 58f8aead | aliguori | $(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps" |
286 | 18be8d77 | blueswir1 | set -e; for x in $(KEYMAPS); do \ |
287 | 58f8aead | aliguori | $(INSTALL_DATA) $(SRC_PATH)/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \ |
288 | ad064840 | pbrook | done |
289 | 11d9f695 | bellard | endif |
290 | 626df76a | bellard | for d in $(TARGET_DIRS); do \ |
291 | 7d3505c5 | bellard | $(MAKE) -C $$d $@ || exit 1 ; \ |
292 | 626df76a | bellard | done |
293 | 612384d7 | bellard | |
294 | 367e86e8 | bellard | # various test targets |
295 | 9b0b8203 | bellard | test speed: all |
296 | 7d3505c5 | bellard | $(MAKE) -C tests $@ |
297 | 31e31b8a | bellard | |
298 | 5fafdf24 | ths | TAGS: |
299 | b9adb4a6 | bellard | etags *.[ch] tests/*.[ch] |
300 | 31e31b8a | bellard | |
301 | 6688bc6d | bellard | cscope: |
302 | 6688bc6d | bellard | rm -f ./cscope.* |
303 | ede46085 | aurel32 | find . -name "*.[ch]" -print | sed 's,^\./,,' > ./cscope.files |
304 | 6688bc6d | bellard | cscope -b |
305 | 6688bc6d | bellard | |
306 | 3ef693a0 | bellard | # documentation |
307 | 1f673135 | bellard | %.html: %.texi |
308 | 0d00e563 | aliguori | $(call quiet-command,texi2html -I=. -monolithic -number $<," GEN $@") |
309 | 3ef693a0 | bellard | |
310 | f3548328 | bellard | %.info: %.texi |
311 | 0d00e563 | aliguori | $(call quiet-command,makeinfo -I . $< -o $@," GEN $@") |
312 | f3548328 | bellard | |
313 | f3548328 | bellard | %.dvi: %.texi |
314 | 0d00e563 | aliguori | $(call quiet-command,texi2dvi -I . $<," GEN $@") |
315 | 5824d651 | blueswir1 | |
316 | 5824d651 | blueswir1 | qemu-options.texi: $(SRC_PATH)/qemu-options.hx |
317 | 0d00e563 | aliguori | $(call quiet-command,sh $(SRC_PATH)/hxtool -t < $< > $@," GEN $@") |
318 | f3548328 | bellard | |
319 | 7545668b | blueswir1 | qemu.1: qemu-doc.texi qemu-options.texi |
320 | 0d00e563 | aliguori | $(call quiet-command, \ |
321 | 0d00e563 | aliguori | perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu.pod && \ |
322 | 0d00e563 | aliguori | pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \ |
323 | 0d00e563 | aliguori | " GEN $@") |
324 | 5a67135a | bellard | |
325 | acd935ef | bellard | qemu-img.1: qemu-img.texi |
326 | 0d00e563 | aliguori | $(call quiet-command, \ |
327 | 0d00e563 | aliguori | perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-img.pod && \ |
328 | 0d00e563 | aliguori | pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \ |
329 | 0d00e563 | aliguori | " GEN $@") |
330 | acd935ef | bellard | |
331 | 7a5ca864 | bellard | qemu-nbd.8: qemu-nbd.texi |
332 | 0d00e563 | aliguori | $(call quiet-command, \ |
333 | 0d00e563 | aliguori | perl -Ww -- $(SRC_PATH)/texi2pod.pl $< qemu-nbd.pod && \ |
334 | 0d00e563 | aliguori | pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \ |
335 | 0d00e563 | aliguori | " GEN $@") |
336 | 7a5ca864 | bellard | |
337 | 0cb3fb1e | pbrook | info: qemu-doc.info qemu-tech.info |
338 | 0cb3fb1e | pbrook | |
339 | 0cb3fb1e | pbrook | dvi: qemu-doc.dvi qemu-tech.dvi |
340 | 0cb3fb1e | pbrook | |
341 | 0cb3fb1e | pbrook | html: qemu-doc.html qemu-tech.html |
342 | 0cb3fb1e | pbrook | |
343 | 5824d651 | blueswir1 | qemu-doc.dvi qemu-doc.html qemu-doc.info: qemu-img.texi qemu-nbd.texi qemu-options.texi |
344 | 818220f5 | aliguori | |
345 | df5cf721 | ths | VERSION ?= $(shell cat VERSION) |
346 | df5cf721 | ths | FILE = qemu-$(VERSION) |
347 | 586314f2 | bellard | |
348 | 1e43adfc | bellard | # tar release (use 'make -k tar' on a checkouted tree) |
349 | 586314f2 | bellard | tar: |
350 | 586314f2 | bellard | rm -rf /tmp/$(FILE) |
351 | 1e43adfc | bellard | cp -r . /tmp/$(FILE) |
352 | 99c6c082 | aurel32 | cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .git --exclude .svn |
353 | 586314f2 | bellard | rm -rf /tmp/$(FILE) |
354 | 586314f2 | bellard | |
355 | 76b62fd0 | bellard | # generate a binary distribution |
356 | d691f669 | bellard | tarbin: |
357 | 18be8d77 | blueswir1 | cd / && tar zcvf ~/qemu-$(VERSION)-$(ARCH).tar.gz \ |
358 | 43095f31 | bellard | $(bindir)/qemu \ |
359 | 43095f31 | bellard | $(bindir)/qemu-system-x86_64 \ |
360 | 40e8a53b | aurel32 | $(bindir)/qemu-system-arm \ |
361 | 40e8a53b | aurel32 | $(bindir)/qemu-system-cris \ |
362 | 40e8a53b | aurel32 | $(bindir)/qemu-system-m68k \ |
363 | 93856aac | bellard | $(bindir)/qemu-system-mips \ |
364 | 38260998 | pbrook | $(bindir)/qemu-system-mipsel \ |
365 | fbe4f65b | ths | $(bindir)/qemu-system-mips64 \ |
366 | fbe4f65b | ths | $(bindir)/qemu-system-mips64el \ |
367 | 40e8a53b | aurel32 | $(bindir)/qemu-system-ppc \ |
368 | 40e8a53b | aurel32 | $(bindir)/qemu-system-ppcemb \ |
369 | 40e8a53b | aurel32 | $(bindir)/qemu-system-ppc64 \ |
370 | ff1aaf65 | ths | $(bindir)/qemu-system-sh4 \ |
371 | 85ffbdfc | ths | $(bindir)/qemu-system-sh4eb \ |
372 | 40e8a53b | aurel32 | $(bindir)/qemu-system-sparc \ |
373 | 7efa4387 | bellard | $(bindir)/qemu-i386 \ |
374 | f0403c03 | bellard | $(bindir)/qemu-x86_64 \ |
375 | 40e8a53b | aurel32 | $(bindir)/qemu-alpha \ |
376 | 40e8a53b | aurel32 | $(bindir)/qemu-arm \ |
377 | 40e8a53b | aurel32 | $(bindir)/qemu-armeb \ |
378 | 40e8a53b | aurel32 | $(bindir)/qemu-cris \ |
379 | 40e8a53b | aurel32 | $(bindir)/qemu-m68k \ |
380 | 40e8a53b | aurel32 | $(bindir)/qemu-mips \ |
381 | 40e8a53b | aurel32 | $(bindir)/qemu-mipsel \ |
382 | 40e8a53b | aurel32 | $(bindir)/qemu-ppc \ |
383 | 40e8a53b | aurel32 | $(bindir)/qemu-ppc64 \ |
384 | 40e8a53b | aurel32 | $(bindir)/qemu-ppc64abi32 \ |
385 | 40e8a53b | aurel32 | $(bindir)/qemu-sh4 \ |
386 | 40e8a53b | aurel32 | $(bindir)/qemu-sh4eb \ |
387 | 40e8a53b | aurel32 | $(bindir)/qemu-sparc \ |
388 | 40e8a53b | aurel32 | $(bindir)/qemu-sparc64 \ |
389 | 40e8a53b | aurel32 | $(bindir)/qemu-sparc32plus \ |
390 | 40e8a53b | aurel32 | $(bindir)/qemu-img \ |
391 | 40e8a53b | aurel32 | $(bindir)/qemu-nbd \ |
392 | 7efa4387 | bellard | $(datadir)/bios.bin \ |
393 | 7efa4387 | bellard | $(datadir)/vgabios.bin \ |
394 | de9258a8 | bellard | $(datadir)/vgabios-cirrus.bin \ |
395 | 637f6cd7 | bellard | $(datadir)/ppc_rom.bin \ |
396 | d5295253 | bellard | $(datadir)/video.x \ |
397 | 0986ac3b | bellard | $(datadir)/openbios-sparc32 \ |
398 | 938255d2 | blueswir1 | $(datadir)/openbios-sparc64 \ |
399 | e5d01b06 | aurel32 | $(datadir)/openbios-ppc \ |
400 | 40e8a53b | aurel32 | $(datadir)/pxe-ne2k_pci.bin \ |
401 | 19c80e50 | bellard | $(datadir)/pxe-rtl8139.bin \ |
402 | 40e8a53b | aurel32 | $(datadir)/pxe-pcnet.bin \ |
403 | 2991990b | aliguori | $(datadir)/pxe-e1000.bin \ |
404 | 1f50f8d1 | bellard | $(docdir)/qemu-doc.html \ |
405 | 1f50f8d1 | bellard | $(docdir)/qemu-tech.html \ |
406 | 40e8a53b | aurel32 | $(mandir)/man1/qemu.1 \ |
407 | 40e8a53b | aurel32 | $(mandir)/man1/qemu-img.1 \ |
408 | 7a5ca864 | bellard | $(mandir)/man8/qemu-nbd.8 |
409 | d691f669 | bellard | |
410 | 4fb240a4 | bellard | # Include automatically generated dependency files |
411 | 4fb240a4 | bellard | -include $(wildcard *.d audio/*.d slirp/*.d) |