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