pbrook | 0cb3fb1 | 2006-05-14 12:07:53 +0000 | [diff] [blame] | 1 | # Makefile for QEMU. |
| 2 | |
pbrook | ad06484 | 2006-04-16 12:41:07 +0000 | [diff] [blame] | 3 | include config-host.mak |
bellard | 766a487 | 2003-02-18 23:35:48 +0000 | [diff] [blame] | 4 | |
pbrook | 0cb3fb1 | 2006-05-14 12:07:53 +0000 | [diff] [blame] | 5 | .PHONY: all clean distclean dvi info install install-doc tar tarbin \ |
bellard | 9b0b820 | 2007-11-14 10:34:57 +0000 | [diff] [blame] | 6 | speed test html dvi info |
pbrook | 0cb3fb1 | 2006-05-14 12:07:53 +0000 | [diff] [blame] | 7 | |
pbrook | 8c462f8 | 2007-11-18 21:12:37 +0000 | [diff] [blame] | 8 | VPATH=$(SRC_PATH):$(SRC_PATH)/hw |
| 9 | |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 10 | CFLAGS += $(OS_CFLAGS) $(ARCH_CFLAGS) |
| 11 | LDFLAGS += $(OS_LDFLAGS) $(ARCH_LDFLAGS) |
blueswir1 | 3142255 | 2007-04-16 18:27:06 +0000 | [diff] [blame] | 12 | |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 13 | CPPFLAGS += -I. -I$(SRC_PATH) -MMD -MP |
| 14 | CPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE |
bellard | 766a487 | 2003-02-18 23:35:48 +0000 | [diff] [blame] | 15 | LIBS= |
bellard | 1f50f8d | 2004-05-08 14:44:43 +0000 | [diff] [blame] | 16 | ifdef CONFIG_STATIC |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 17 | LDFLAGS += -static |
bellard | 1f50f8d | 2004-05-08 14:44:43 +0000 | [diff] [blame] | 18 | endif |
pbrook | cc8ae6d | 2006-04-23 17:57:59 +0000 | [diff] [blame] | 19 | ifdef BUILD_DOCS |
bellard | acd935e | 2004-11-15 22:57:26 +0000 | [diff] [blame] | 20 | DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 |
pbrook | cc8ae6d | 2006-04-23 17:57:59 +0000 | [diff] [blame] | 21 | else |
| 22 | DOCS= |
| 23 | endif |
bellard | 7d13299 | 2003-03-06 23:23:54 +0000 | [diff] [blame] | 24 | |
ths | 70956b7 | 2007-03-17 15:00:37 +0000 | [diff] [blame] | 25 | LIBS+=$(AIOLIBS) |
bellard | 83f6409 | 2006-08-01 16:21:11 +0000 | [diff] [blame] | 26 | |
pbrook | da0b0df | 2007-11-10 19:30:52 +0000 | [diff] [blame] | 27 | all: $(TOOLS) $(DOCS) recurse-all |
pbrook | b9dea4f | 2006-05-13 16:54:03 +0000 | [diff] [blame] | 28 | |
pbrook | da0b0df | 2007-11-10 19:30:52 +0000 | [diff] [blame] | 29 | subdir-%: dyngen$(EXESUF) libqemu_common.a |
pbrook | 4aa4253 | 2006-05-13 13:55:08 +0000 | [diff] [blame] | 30 | $(MAKE) -C $(subst subdir-,,$@) all |
| 31 | |
| 32 | recurse-all: $(patsubst %,subdir-%, $(TARGET_DIRS)) |
bellard | 83f6409 | 2006-08-01 16:21:11 +0000 | [diff] [blame] | 33 | |
pbrook | faf0796 | 2007-11-11 02:51:17 +0000 | [diff] [blame] | 34 | ####################################################################### |
| 35 | # BLOCK_OBJS is code used by both qemu system emulation and qemu-img |
| 36 | |
| 37 | BLOCK_OBJS=cutils.o |
| 38 | BLOCK_OBJS+=block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o |
| 39 | BLOCK_OBJS+=block-dmg.o block-bochs.o block-vpc.o block-vvfat.o |
| 40 | BLOCK_OBJS+=block-qcow2.o block-parallels.o |
| 41 | |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 42 | ###################################################################### |
bellard | 2e2ea90 | 2008-02-01 10:02:52 +0000 | [diff] [blame] | 43 | # libqemu_common.a: Target independent part of system emulation. The |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 44 | # long term path is to suppress *all* target specific code in case of |
| 45 | # system emulation, i.e. a single QEMU executable should support all |
| 46 | # CPUs and machines. |
bellard | 47cea61 | 2004-05-17 20:06:42 +0000 | [diff] [blame] | 47 | |
pbrook | faf0796 | 2007-11-11 02:51:17 +0000 | [diff] [blame] | 48 | OBJS=$(BLOCK_OBJS) |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 49 | OBJS+=readline.o console.o |
pbrook | faf0796 | 2007-11-11 02:51:17 +0000 | [diff] [blame] | 50 | OBJS+=block.o |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 51 | |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 52 | OBJS+=irq.o |
| 53 | OBJS+=i2c.o smbus.o smbus_eeprom.o max7310.o max111x.o wm8750.o |
balrog | 7e7c5e4 | 2008-04-14 21:57:44 +0000 | [diff] [blame] | 54 | OBJS+=ssd0303.o ssd0323.o ads7846.o stellaris_input.o twl92230.o |
| 55 | OBJS+=tmp105.o |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 56 | OBJS+=scsi-disk.o cdrom.o |
ths | 985a03b | 2007-12-24 16:10:43 +0000 | [diff] [blame] | 57 | OBJS+=scsi-generic.o |
balrog | a795421 | 2008-01-14 03:41:02 +0000 | [diff] [blame] | 58 | OBJS+=usb.o usb-hub.o usb-linux.o usb-hid.o usb-msd.o usb-wacom.o usb-serial.o |
pbrook | 775616c | 2007-11-24 23:35:08 +0000 | [diff] [blame] | 59 | OBJS+=sd.o ssi-sd.o |
pbrook | 87ecb68 | 2007-11-17 17:14:51 +0000 | [diff] [blame] | 60 | |
aurel32 | 2e4d9fb | 2008-04-08 06:01:02 +0000 | [diff] [blame] | 61 | ifdef CONFIG_BRLAPI |
| 62 | OBJS+= baum.o |
| 63 | LIBS+=-lbrlapi |
| 64 | endif |
| 65 | |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 66 | ifdef CONFIG_WIN32 |
| 67 | OBJS+=tap-win32.o |
| 68 | endif |
| 69 | |
| 70 | AUDIO_OBJS = audio.o noaudio.o wavaudio.o mixeng.o |
| 71 | ifdef CONFIG_SDL |
| 72 | AUDIO_OBJS += sdlaudio.o |
| 73 | endif |
| 74 | ifdef CONFIG_OSS |
| 75 | AUDIO_OBJS += ossaudio.o |
| 76 | endif |
| 77 | ifdef CONFIG_COREAUDIO |
| 78 | AUDIO_OBJS += coreaudio.o |
balrog | ca9cc28 | 2008-01-14 04:24:29 +0000 | [diff] [blame] | 79 | AUDIO_PT = yes |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 80 | endif |
| 81 | ifdef CONFIG_ALSA |
| 82 | AUDIO_OBJS += alsaaudio.o |
| 83 | endif |
| 84 | ifdef CONFIG_DSOUND |
| 85 | AUDIO_OBJS += dsoundaudio.o |
| 86 | endif |
| 87 | ifdef CONFIG_FMOD |
| 88 | AUDIO_OBJS += fmodaudio.o |
| 89 | audio/audio.o audio/fmodaudio.o: CPPFLAGS := -I$(CONFIG_FMOD_INC) $(CPPFLAGS) |
| 90 | endif |
balrog | ca9cc28 | 2008-01-14 04:24:29 +0000 | [diff] [blame] | 91 | ifdef CONFIG_ESD |
| 92 | AUDIO_PT = yes |
| 93 | AUDIO_PT_INT = yes |
| 94 | AUDIO_OBJS += esdaudio.o |
| 95 | endif |
| 96 | ifdef AUDIO_PT |
| 97 | LDFLAGS += -pthread |
| 98 | endif |
| 99 | ifdef AUDIO_PT_INT |
| 100 | AUDIO_OBJS += audio_pt_int.o |
| 101 | endif |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 102 | AUDIO_OBJS+= wavcapture.o |
| 103 | OBJS+=$(addprefix audio/, $(AUDIO_OBJS)) |
| 104 | |
| 105 | ifdef CONFIG_SDL |
| 106 | OBJS+=sdl.o x_keymap.o |
| 107 | endif |
balrog | 4d3b6f6 | 2008-02-10 16:33:14 +0000 | [diff] [blame] | 108 | ifdef CONFIG_CURSES |
| 109 | OBJS+=curses.o |
| 110 | endif |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 111 | OBJS+=vnc.o d3des.o |
| 112 | |
| 113 | ifdef CONFIG_COCOA |
| 114 | OBJS+=cocoa.o |
| 115 | endif |
| 116 | |
| 117 | ifdef CONFIG_SLIRP |
| 118 | CPPFLAGS+=-I$(SRC_PATH)/slirp |
| 119 | SLIRP_OBJS=cksum.o if.o ip_icmp.o ip_input.o ip_output.o \ |
| 120 | slirp.o mbuf.o misc.o sbuf.o socket.o tcp_input.o tcp_output.o \ |
| 121 | tcp_subr.o tcp_timer.o udp.o bootp.o debug.o tftp.o |
| 122 | OBJS+=$(addprefix slirp/, $(SLIRP_OBJS)) |
| 123 | endif |
| 124 | |
| 125 | cocoa.o: cocoa.m |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 126 | $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 127 | |
| 128 | sdl.o: sdl.c keymaps.c sdl_keysym.h |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 129 | $(CC) $(CFLAGS) $(CPPFLAGS) $(SDL_CFLAGS) -c -o $@ $< |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 130 | |
| 131 | vnc.o: vnc.c keymaps.c sdl_keysym.h vnchextile.h d3des.c d3des.h |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 132 | $(CC) $(CFLAGS) $(CPPFLAGS) $(CONFIG_VNC_TLS_CFLAGS) -c -o $@ $< |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 133 | |
balrog | 4d3b6f6 | 2008-02-10 16:33:14 +0000 | [diff] [blame] | 134 | curses.o: curses.c keymaps.c curses_keys.h |
pbrook | f5d2839 | 2008-03-31 23:41:24 +0000 | [diff] [blame] | 135 | $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< |
balrog | 4d3b6f6 | 2008-02-10 16:33:14 +0000 | [diff] [blame] | 136 | |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 137 | audio/sdlaudio.o: audio/sdlaudio.c |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 138 | $(CC) $(CFLAGS) $(CPPFLAGS) $(SDL_CFLAGS) -c -o $@ $< |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 139 | |
| 140 | libqemu_common.a: $(OBJS) |
| 141 | rm -f $@ |
| 142 | $(AR) rcs $@ $(OBJS) |
| 143 | |
ths | 223d467 | 2007-12-15 17:28:36 +0000 | [diff] [blame] | 144 | QEMU_IMG_BLOCK_OBJS = $(BLOCK_OBJS) |
| 145 | ifdef CONFIG_WIN32 |
| 146 | QEMU_IMG_BLOCK_OBJS += qemu-img-block-raw-win32.o |
| 147 | else |
| 148 | QEMU_IMG_BLOCK_OBJS += qemu-img-block-raw-posix.o |
| 149 | endif |
| 150 | |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 151 | ###################################################################### |
| 152 | |
ths | 223d467 | 2007-12-15 17:28:36 +0000 | [diff] [blame] | 153 | qemu-img$(EXESUF): qemu-img.o qemu-img-block.o $(QEMU_IMG_BLOCK_OBJS) |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 154 | $(CC) $(LDFLAGS) -o $@ $^ -lz $(LIBS) |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 155 | |
pbrook | faf0796 | 2007-11-11 02:51:17 +0000 | [diff] [blame] | 156 | qemu-img-%.o: %.c |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 157 | $(CC) $(CFLAGS) $(CPPFLAGS) -DQEMU_IMG -c -o $@ $< |
pbrook | faf0796 | 2007-11-11 02:51:17 +0000 | [diff] [blame] | 158 | |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 159 | %.o: %.c |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 160 | $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 161 | |
| 162 | # dyngen host tool |
bellard | 11d9f69 | 2004-04-02 20:55:59 +0000 | [diff] [blame] | 163 | dyngen$(EXESUF): dyngen.c |
bellard | 40293e5 | 2008-01-31 11:32:10 +0000 | [diff] [blame] | 164 | $(HOST_CC) $(CFLAGS) $(CPPFLAGS) -o $@ $^ |
bellard | 31e31b8 | 2003-02-18 22:55:36 +0000 | [diff] [blame] | 165 | |
| 166 | clean: |
bellard | 2d80ae8 | 2003-08-11 23:01:33 +0000 | [diff] [blame] | 167 | # avoid old build problems by removing potentially incorrect old files |
ths | 5fafdf2 | 2007-09-16 21:08:06 +0000 | [diff] [blame] | 168 | 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 |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 169 | rm -f *.o *.d *.a $(TOOLS) dyngen$(EXESUF) TAGS cscope.* *.pod *~ */*~ |
balrog | b94ec3e | 2008-01-14 02:36:29 +0000 | [diff] [blame] | 170 | rm -rf dyngen.dSYM |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 171 | rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d |
bellard | 7d3505c | 2004-05-12 19:32:15 +0000 | [diff] [blame] | 172 | $(MAKE) -C tests clean |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 173 | for d in $(TARGET_DIRS); do \ |
bellard | 7d3505c | 2004-05-12 19:32:15 +0000 | [diff] [blame] | 174 | $(MAKE) -C $$d $@ || exit 1 ; \ |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 175 | done |
bellard | 31e31b8 | 2003-02-18 22:55:36 +0000 | [diff] [blame] | 176 | |
bellard | 7d13299 | 2003-03-06 23:23:54 +0000 | [diff] [blame] | 177 | distclean: clean |
pbrook | cc8ae6d | 2006-04-23 17:57:59 +0000 | [diff] [blame] | 178 | rm -f config-host.mak config-host.h $(DOCS) |
pbrook | 0cb3fb1 | 2006-05-14 12:07:53 +0000 | [diff] [blame] | 179 | rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr} |
bellard | 76bc683 | 2003-08-10 23:41:46 +0000 | [diff] [blame] | 180 | for d in $(TARGET_DIRS); do \ |
bellard | bc1b050 | 2003-10-28 00:12:52 +0000 | [diff] [blame] | 181 | rm -rf $$d || exit 1 ; \ |
bellard | 76bc683 | 2003-08-10 23:41:46 +0000 | [diff] [blame] | 182 | done |
bellard | 7d13299 | 2003-03-06 23:23:54 +0000 | [diff] [blame] | 183 | |
bellard | fed4a9a | 2004-12-12 22:18:34 +0000 | [diff] [blame] | 184 | KEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \ |
| 185 | ar de en-us fi fr-be hr it lv nl pl ru th \ |
| 186 | common de-ch es fo fr-ca hu ja mk nl-be pt sl tr |
| 187 | |
pbrook | 38954dc | 2006-04-30 23:54:18 +0000 | [diff] [blame] | 188 | install-doc: $(DOCS) |
| 189 | mkdir -p "$(DESTDIR)$(docdir)" |
| 190 | $(INSTALL) -m 644 qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)" |
| 191 | ifndef CONFIG_WIN32 |
| 192 | mkdir -p "$(DESTDIR)$(mandir)/man1" |
| 193 | $(INSTALL) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1" |
| 194 | endif |
| 195 | |
| 196 | install: all $(if $(BUILD_DOCS),install-doc) |
pbrook | 1236cab | 2006-04-09 20:47:35 +0000 | [diff] [blame] | 197 | mkdir -p "$(DESTDIR)$(bindir)" |
ths | 932a79d | 2007-10-20 18:29:34 +0000 | [diff] [blame] | 198 | ifneq ($(TOOLS),) |
pbrook | 6a88264 | 2006-04-17 13:57:12 +0000 | [diff] [blame] | 199 | $(INSTALL) -m 755 -s $(TOOLS) "$(DESTDIR)$(bindir)" |
ths | 932a79d | 2007-10-20 18:29:34 +0000 | [diff] [blame] | 200 | endif |
pbrook | 1236cab | 2006-04-09 20:47:35 +0000 | [diff] [blame] | 201 | mkdir -p "$(DESTDIR)$(datadir)" |
blueswir1 | 18be8d7 | 2008-03-05 18:16:09 +0000 | [diff] [blame] | 202 | set -e; for x in bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \ |
ths | 860c6c5 | 2007-05-20 10:54:50 +0000 | [diff] [blame] | 203 | video.x openbios-sparc32 pxe-ne2k_pci.bin \ |
ths | eec85c2 | 2007-01-05 17:41:07 +0000 | [diff] [blame] | 204 | pxe-rtl8139.bin pxe-pcnet.bin; do \ |
pbrook | 6a88264 | 2006-04-17 13:57:12 +0000 | [diff] [blame] | 205 | $(INSTALL) -m 644 $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \ |
pbrook | ad06484 | 2006-04-16 12:41:07 +0000 | [diff] [blame] | 206 | done |
bellard | 11d9f69 | 2004-04-02 20:55:59 +0000 | [diff] [blame] | 207 | ifndef CONFIG_WIN32 |
pbrook | 1236cab | 2006-04-09 20:47:35 +0000 | [diff] [blame] | 208 | mkdir -p "$(DESTDIR)$(datadir)/keymaps" |
blueswir1 | 18be8d7 | 2008-03-05 18:16:09 +0000 | [diff] [blame] | 209 | set -e; for x in $(KEYMAPS); do \ |
pbrook | 6a88264 | 2006-04-17 13:57:12 +0000 | [diff] [blame] | 210 | $(INSTALL) -m 644 $(SRC_PATH)/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \ |
pbrook | ad06484 | 2006-04-16 12:41:07 +0000 | [diff] [blame] | 211 | done |
bellard | 11d9f69 | 2004-04-02 20:55:59 +0000 | [diff] [blame] | 212 | endif |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 213 | for d in $(TARGET_DIRS); do \ |
bellard | 7d3505c | 2004-05-12 19:32:15 +0000 | [diff] [blame] | 214 | $(MAKE) -C $$d $@ || exit 1 ; \ |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 215 | done |
bellard | 612384d | 2003-03-22 17:31:19 +0000 | [diff] [blame] | 216 | |
bellard | 367e86e | 2003-03-01 17:13:26 +0000 | [diff] [blame] | 217 | # various test targets |
bellard | 9b0b820 | 2007-11-14 10:34:57 +0000 | [diff] [blame] | 218 | test speed: all |
bellard | 7d3505c | 2004-05-12 19:32:15 +0000 | [diff] [blame] | 219 | $(MAKE) -C tests $@ |
bellard | 31e31b8 | 2003-02-18 22:55:36 +0000 | [diff] [blame] | 220 | |
ths | 5fafdf2 | 2007-09-16 21:08:06 +0000 | [diff] [blame] | 221 | TAGS: |
bellard | b9adb4a | 2003-04-29 20:41:16 +0000 | [diff] [blame] | 222 | etags *.[ch] tests/*.[ch] |
bellard | 31e31b8 | 2003-02-18 22:55:36 +0000 | [diff] [blame] | 223 | |
bellard | 6688bc6 | 2005-08-21 09:23:39 +0000 | [diff] [blame] | 224 | cscope: |
| 225 | rm -f ./cscope.* |
| 226 | find . -name "*.[ch]" -print > ./cscope.files |
| 227 | cscope -b |
| 228 | |
bellard | 3ef693a | 2003-03-23 20:17:16 +0000 | [diff] [blame] | 229 | # documentation |
bellard | 1f67313 | 2004-04-04 15:21:17 +0000 | [diff] [blame] | 230 | %.html: %.texi |
bellard | 3ef693a | 2003-03-23 20:17:16 +0000 | [diff] [blame] | 231 | texi2html -monolithic -number $< |
| 232 | |
bellard | f354832 | 2006-04-30 22:51:54 +0000 | [diff] [blame] | 233 | %.info: %.texi |
| 234 | makeinfo $< -o $@ |
| 235 | |
| 236 | %.dvi: %.texi |
| 237 | texi2dvi $< |
| 238 | |
bellard | 5a67135 | 2003-10-01 00:13:48 +0000 | [diff] [blame] | 239 | qemu.1: qemu-doc.texi |
pbrook | ad06484 | 2006-04-16 12:41:07 +0000 | [diff] [blame] | 240 | $(SRC_PATH)/texi2pod.pl $< qemu.pod |
bellard | 5a67135 | 2003-10-01 00:13:48 +0000 | [diff] [blame] | 241 | pod2man --section=1 --center=" " --release=" " qemu.pod > $@ |
| 242 | |
bellard | acd935e | 2004-11-15 22:57:26 +0000 | [diff] [blame] | 243 | qemu-img.1: qemu-img.texi |
pbrook | ad06484 | 2006-04-16 12:41:07 +0000 | [diff] [blame] | 244 | $(SRC_PATH)/texi2pod.pl $< qemu-img.pod |
bellard | acd935e | 2004-11-15 22:57:26 +0000 | [diff] [blame] | 245 | pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@ |
| 246 | |
pbrook | 0cb3fb1 | 2006-05-14 12:07:53 +0000 | [diff] [blame] | 247 | info: qemu-doc.info qemu-tech.info |
| 248 | |
| 249 | dvi: qemu-doc.dvi qemu-tech.dvi |
| 250 | |
| 251 | html: qemu-doc.html qemu-tech.html |
| 252 | |
ths | df5cf72 | 2007-01-24 22:56:36 +0000 | [diff] [blame] | 253 | VERSION ?= $(shell cat VERSION) |
| 254 | FILE = qemu-$(VERSION) |
bellard | 586314f | 2003-03-03 15:02:29 +0000 | [diff] [blame] | 255 | |
bellard | 1e43adf | 2003-09-30 20:54:24 +0000 | [diff] [blame] | 256 | # tar release (use 'make -k tar' on a checkouted tree) |
bellard | 586314f | 2003-03-03 15:02:29 +0000 | [diff] [blame] | 257 | tar: |
| 258 | rm -rf /tmp/$(FILE) |
bellard | 1e43adf | 2003-09-30 20:54:24 +0000 | [diff] [blame] | 259 | cp -r . /tmp/$(FILE) |
aurel32 | 99c6c08 | 2008-04-22 20:45:30 +0000 | [diff] [blame^] | 260 | cd /tmp && tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS --exclude .git --exclude .svn |
bellard | 586314f | 2003-03-03 15:02:29 +0000 | [diff] [blame] | 261 | rm -rf /tmp/$(FILE) |
| 262 | |
bellard | 76b62fd | 2003-10-28 00:47:44 +0000 | [diff] [blame] | 263 | # generate a binary distribution |
bellard | d691f66 | 2003-03-24 21:58:34 +0000 | [diff] [blame] | 264 | tarbin: |
blueswir1 | 18be8d7 | 2008-03-05 18:16:09 +0000 | [diff] [blame] | 265 | cd / && tar zcvf ~/qemu-$(VERSION)-$(ARCH).tar.gz \ |
bellard | 43095f3 | 2005-04-27 20:49:23 +0000 | [diff] [blame] | 266 | $(bindir)/qemu \ |
bellard | 7efa438 | 2004-05-12 18:54:06 +0000 | [diff] [blame] | 267 | $(bindir)/qemu-system-ppc \ |
j_mayer | d4082e9 | 2007-04-24 07:34:03 +0000 | [diff] [blame] | 268 | $(bindir)/qemu-system-ppc64 \ |
| 269 | $(bindir)/qemu-system-ppcemb \ |
bellard | acd935e | 2004-11-15 22:57:26 +0000 | [diff] [blame] | 270 | $(bindir)/qemu-system-sparc \ |
bellard | 43095f3 | 2005-04-27 20:49:23 +0000 | [diff] [blame] | 271 | $(bindir)/qemu-system-x86_64 \ |
bellard | 93856aa | 2005-07-24 18:44:35 +0000 | [diff] [blame] | 272 | $(bindir)/qemu-system-mips \ |
pbrook | 3826099 | 2006-03-11 14:51:13 +0000 | [diff] [blame] | 273 | $(bindir)/qemu-system-mipsel \ |
ths | fbe4f65 | 2007-04-01 11:16:48 +0000 | [diff] [blame] | 274 | $(bindir)/qemu-system-mips64 \ |
| 275 | $(bindir)/qemu-system-mips64el \ |
bellard | ea31eb5 | 2005-12-06 21:42:03 +0000 | [diff] [blame] | 276 | $(bindir)/qemu-system-arm \ |
ths | ff1aaf6 | 2007-09-29 21:18:26 +0000 | [diff] [blame] | 277 | $(bindir)/qemu-system-m68k \ |
| 278 | $(bindir)/qemu-system-sh4 \ |
ths | 85ffbdf | 2007-12-09 05:10:03 +0000 | [diff] [blame] | 279 | $(bindir)/qemu-system-sh4eb \ |
bellard | f0403c0 | 2008-01-06 18:27:12 +0000 | [diff] [blame] | 280 | $(bindir)/qemu-system-cris \ |
bellard | 7efa438 | 2004-05-12 18:54:06 +0000 | [diff] [blame] | 281 | $(bindir)/qemu-i386 \ |
bellard | f0403c0 | 2008-01-06 18:27:12 +0000 | [diff] [blame] | 282 | $(bindir)/qemu-x86_64 \ |
bellard | 7efa438 | 2004-05-12 18:54:06 +0000 | [diff] [blame] | 283 | $(bindir)/qemu-arm \ |
bellard | ea31eb5 | 2005-12-06 21:42:03 +0000 | [diff] [blame] | 284 | $(bindir)/qemu-armeb \ |
bellard | 7efa438 | 2004-05-12 18:54:06 +0000 | [diff] [blame] | 285 | $(bindir)/qemu-sparc \ |
bellard | f0403c0 | 2008-01-06 18:27:12 +0000 | [diff] [blame] | 286 | $(bindir)/qemu-sparc32plus \ |
| 287 | $(bindir)/qemu-sparc64 \ |
bellard | 7efa438 | 2004-05-12 18:54:06 +0000 | [diff] [blame] | 288 | $(bindir)/qemu-ppc \ |
j_mayer | d4082e9 | 2007-04-24 07:34:03 +0000 | [diff] [blame] | 289 | $(bindir)/qemu-ppc64 \ |
bellard | f0403c0 | 2008-01-06 18:27:12 +0000 | [diff] [blame] | 290 | $(bindir)/qemu-ppc64abi32 \ |
bellard | ea31eb5 | 2005-12-06 21:42:03 +0000 | [diff] [blame] | 291 | $(bindir)/qemu-mips \ |
| 292 | $(bindir)/qemu-mipsel \ |
j_mayer | cf6c1b1 | 2007-04-05 20:46:02 +0000 | [diff] [blame] | 293 | $(bindir)/qemu-alpha \ |
ths | ff1aaf6 | 2007-09-29 21:18:26 +0000 | [diff] [blame] | 294 | $(bindir)/qemu-m68k \ |
| 295 | $(bindir)/qemu-sh4 \ |
ths | 85ffbdf | 2007-12-09 05:10:03 +0000 | [diff] [blame] | 296 | $(bindir)/qemu-sh4eb \ |
bellard | f0403c0 | 2008-01-06 18:27:12 +0000 | [diff] [blame] | 297 | $(bindir)/qemu-cris \ |
bellard | b932cab | 2004-08-01 21:46:49 +0000 | [diff] [blame] | 298 | $(bindir)/qemu-img \ |
bellard | 7efa438 | 2004-05-12 18:54:06 +0000 | [diff] [blame] | 299 | $(datadir)/bios.bin \ |
| 300 | $(datadir)/vgabios.bin \ |
bellard | de9258a | 2004-06-06 15:50:03 +0000 | [diff] [blame] | 301 | $(datadir)/vgabios-cirrus.bin \ |
bellard | 637f6cd | 2004-06-21 19:54:47 +0000 | [diff] [blame] | 302 | $(datadir)/ppc_rom.bin \ |
bellard | d529525 | 2005-07-03 14:00:51 +0000 | [diff] [blame] | 303 | $(datadir)/video.x \ |
bellard | 0986ac3 | 2006-06-14 12:36:32 +0000 | [diff] [blame] | 304 | $(datadir)/openbios-sparc32 \ |
bellard | 19c80e5 | 2007-02-05 21:22:42 +0000 | [diff] [blame] | 305 | $(datadir)/pxe-ne2k_pci.bin \ |
| 306 | $(datadir)/pxe-rtl8139.bin \ |
| 307 | $(datadir)/pxe-pcnet.bin \ |
bellard | 1f50f8d | 2004-05-08 14:44:43 +0000 | [diff] [blame] | 308 | $(docdir)/qemu-doc.html \ |
| 309 | $(docdir)/qemu-tech.html \ |
blueswir1 | 18be8d7 | 2008-03-05 18:16:09 +0000 | [diff] [blame] | 310 | $(mandir)/man1/qemu.1 $(mandir)/man1/qemu-img.1 |
bellard | d691f66 | 2003-03-24 21:58:34 +0000 | [diff] [blame] | 311 | |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 312 | # Include automatically generated dependency files |
| 313 | -include $(wildcard *.d audio/*.d slirp/*.d) |