pbrook | 0cb3fb1 | 2006-05-14 12:07:53 +0000 | [diff] [blame] | 1 | # Makefile for QEMU. |
| 2 | |
Stefan Weil | 519e169 | 2011-09-16 21:50:43 +0200 | [diff] [blame] | 3 | # Always point to the root of the build tree (needs GNU make). |
| 4 | BUILD_DIR=$(CURDIR) |
Lluís Vilanova | 388d475 | 2011-09-15 22:45:35 +0200 | [diff] [blame] | 5 | |
Michael S. Tsirkin | df2943b | 2010-10-26 17:53:41 +0200 | [diff] [blame] | 6 | GENERATED_HEADERS = config-host.h trace.h qemu-options.def |
Daniel P. Berrange | b3d08c0 | 2010-11-12 13:20:24 +0000 | [diff] [blame] | 7 | ifeq ($(TRACE_BACKEND),dtrace) |
| 8 | GENERATED_HEADERS += trace-dtrace.h |
| 9 | endif |
Anthony Liguori | e319360 | 2011-09-02 12:34:47 -0500 | [diff] [blame] | 10 | GENERATED_HEADERS += qmp-commands.h qapi-types.h qapi-visit.h |
Michael S. Tsirkin | 611b727 | 2011-11-16 23:58:46 +0200 | [diff] [blame^] | 11 | GENERATED_SOURCES += qmp-marshal.c qapi-types.c qapi-visit.c |
Juan Quintela | f527c57 | 2009-11-05 17:19:57 +0100 | [diff] [blame] | 12 | |
aurel32 | 55d7e8f | 2009-04-15 14:42:57 +0000 | [diff] [blame] | 13 | ifneq ($(wildcard config-host.mak),) |
Paul Brook | 1ad2134 | 2009-05-19 16:17:58 +0100 | [diff] [blame] | 14 | # Put the all: rule here so that config-host.mak can contain dependencies. |
| 15 | all: build-all |
pbrook | ad06484 | 2006-04-16 12:41:07 +0000 | [diff] [blame] | 16 | include config-host.mak |
aliguori | 1775918 | 2009-01-21 18:12:52 +0000 | [diff] [blame] | 17 | include $(SRC_PATH)/rules.mak |
Paolo Bonzini | 59bc10e | 2010-01-04 11:02:28 +0100 | [diff] [blame] | 18 | config-host.mak: $(SRC_PATH)/configure |
Juan Quintela | e5efe7f | 2009-10-07 02:40:59 +0200 | [diff] [blame] | 19 | @echo $@ is out-of-date, running configure |
| 20 | @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh |
aurel32 | 55d7e8f | 2009-04-15 14:42:57 +0000 | [diff] [blame] | 21 | else |
| 22 | config-host.mak: |
| 23 | @echo "Please call configure before running make!" |
| 24 | @exit 1 |
| 25 | endif |
bellard | 766a487 | 2003-02-18 23:35:48 +0000 | [diff] [blame] | 26 | |
Juan Quintela | d9ace8b | 2009-10-06 21:11:15 +0200 | [diff] [blame] | 27 | # Don't try to regenerate Makefile or configure |
| 28 | # We don't generate any of them |
| 29 | Makefile: ; |
| 30 | configure: ; |
| 31 | |
aliguori | 818220f | 2008-09-24 01:13:40 +0000 | [diff] [blame] | 32 | .PHONY: all clean cscope distclean dvi html info install install-doc \ |
Stefan Weil | 20cc999 | 2010-01-29 23:16:50 +0100 | [diff] [blame] | 33 | pdf recurse-all speed tar tarbin test build-all |
pbrook | 0cb3fb1 | 2006-05-14 12:07:53 +0000 | [diff] [blame] | 34 | |
Paolo Bonzini | 076d247 | 2009-12-21 10:06:55 +0100 | [diff] [blame] | 35 | $(call set-vpath, $(SRC_PATH):$(SRC_PATH)/hw) |
pbrook | 8c462f8 | 2007-11-18 21:12:37 +0000 | [diff] [blame] | 36 | |
Juan Quintela | 3e2e0e6 | 2009-08-03 14:47:06 +0200 | [diff] [blame] | 37 | LIBS+=-lz $(LIBS_TOOLS) |
Juan Quintela | 67c0f08 | 2009-07-27 16:12:51 +0200 | [diff] [blame] | 38 | |
pbrook | cc8ae6d | 2006-04-23 17:57:59 +0000 | [diff] [blame] | 39 | ifdef BUILD_DOCS |
Jan Kiszka | b40292e | 2010-05-31 14:43:31 -0300 | [diff] [blame] | 40 | DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 qemu-nbd.8 QMP/qmp-commands.txt |
pbrook | cc8ae6d | 2006-04-23 17:57:59 +0000 | [diff] [blame] | 41 | else |
| 42 | DOCS= |
| 43 | endif |
bellard | 7d13299 | 2003-03-06 23:23:54 +0000 | [diff] [blame] | 44 | |
Lluís Vilanova | 388d475 | 2011-09-15 22:45:35 +0200 | [diff] [blame] | 45 | SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) BUILD_DIR=$(BUILD_DIR) |
Juan Quintela | 1f3d3c8 | 2009-10-07 02:41:02 +0200 | [diff] [blame] | 46 | SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS)) |
Paul Brook | bd9141b | 2010-11-26 18:47:45 +0000 | [diff] [blame] | 47 | SUBDIR_DEVICES_MAK_DEP=$(patsubst %, %/config-devices.mak.d, $(TARGET_DIRS)) |
Juan Quintela | 1f3d3c8 | 2009-10-07 02:41:02 +0200 | [diff] [blame] | 48 | |
| 49 | config-all-devices.mak: $(SUBDIR_DEVICES_MAK) |
Stefan Weil | 01d86a8 | 2009-11-19 20:19:56 +0100 | [diff] [blame] | 50 | $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u > $@," GEN $@") |
Juan Quintela | 1f3d3c8 | 2009-10-07 02:41:02 +0200 | [diff] [blame] | 51 | |
Paul Brook | bd9141b | 2010-11-26 18:47:45 +0000 | [diff] [blame] | 52 | -include $(SUBDIR_DEVICES_MAK_DEP) |
| 53 | |
Paul Brook | a992fe3 | 2009-11-22 16:25:30 +0000 | [diff] [blame] | 54 | %/config-devices.mak: default-configs/%.mak |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 55 | $(call quiet-command,$(SHELL) $(SRC_PATH)/scripts/make_device_config.sh $@ $<, " GEN $@") |
Stefan Weil | 012f087 | 2009-12-20 15:39:03 +0100 | [diff] [blame] | 56 | @if test -f $@; then \ |
Blue Swirl | 904fe1f | 2010-10-02 14:28:08 +0000 | [diff] [blame] | 57 | if cmp -s $@.old $@; then \ |
Paul Brook | bd9141b | 2010-11-26 18:47:45 +0000 | [diff] [blame] | 58 | mv $@.tmp $@; \ |
| 59 | cp -p $@ $@.old; \ |
Stefan Weil | 012f087 | 2009-12-20 15:39:03 +0100 | [diff] [blame] | 60 | else \ |
| 61 | if test -f $@.old; then \ |
| 62 | echo "WARNING: $@ (user modified) out of date.";\ |
| 63 | else \ |
| 64 | echo "WARNING: $@ out of date.";\ |
| 65 | fi; \ |
| 66 | echo "Run \"make defconfig\" to regenerate."; \ |
| 67 | rm $@.tmp; \ |
| 68 | fi; \ |
Paul Brook | a992fe3 | 2009-11-22 16:25:30 +0000 | [diff] [blame] | 69 | else \ |
Stefan Weil | 012f087 | 2009-12-20 15:39:03 +0100 | [diff] [blame] | 70 | mv $@.tmp $@; \ |
| 71 | cp -p $@ $@.old; \ |
Paul Brook | a992fe3 | 2009-11-22 16:25:30 +0000 | [diff] [blame] | 72 | fi |
| 73 | |
| 74 | defconfig: |
| 75 | rm -f config-all-devices.mak $(SUBDIR_DEVICES_MAK) |
| 76 | |
Juan Quintela | 1f3d3c8 | 2009-10-07 02:41:02 +0200 | [diff] [blame] | 77 | -include config-all-devices.mak |
Juan Quintela | 1215c6e | 2009-10-07 02:40:58 +0200 | [diff] [blame] | 78 | |
Gerd Hoffmann | fffbeb7 | 2011-09-01 17:42:17 +0200 | [diff] [blame] | 79 | build-all: $(DOCS) $(TOOLS) $(CHECKS) recurse-all |
pbrook | b9dea4f | 2006-05-13 16:54:03 +0000 | [diff] [blame] | 80 | |
Juan Quintela | 1215c6e | 2009-10-07 02:40:58 +0200 | [diff] [blame] | 81 | config-host.h: config-host.h-timestamp |
| 82 | config-host.h-timestamp: config-host.mak |
Blue Swirl | e14056a | 2010-11-01 18:09:38 +0000 | [diff] [blame] | 83 | qemu-options.def: $(SRC_PATH)/qemu-options.hx |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 84 | $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $@") |
Juan Quintela | 1215c6e | 2009-10-07 02:40:58 +0200 | [diff] [blame] | 85 | |
pbrook | cec7d0b | 2008-05-28 16:44:57 +0000 | [diff] [blame] | 86 | SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) |
| 87 | |
Juan Quintela | f527c57 | 2009-11-05 17:19:57 +0100 | [diff] [blame] | 88 | subdir-%: $(GENERATED_HEADERS) |
Paul Brook | 0087375 | 2009-05-07 02:00:31 +0100 | [diff] [blame] | 89 | $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V="$(V)" TARGET_DIR="$*/" all,) |
pbrook | 4aa4253 | 2006-05-13 13:55:08 +0000 | [diff] [blame] | 90 | |
Stefan Weil | b88bc80 | 2010-01-14 18:11:43 +0100 | [diff] [blame] | 91 | ifneq ($(wildcard config-host.mak),) |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 92 | include $(SRC_PATH)/Makefile.objs |
Stefan Weil | b88bc80 | 2010-01-14 18:11:43 +0100 | [diff] [blame] | 93 | endif |
Andreas Färber | 0e8c921 | 2010-01-06 20:24:05 +0100 | [diff] [blame] | 94 | |
| 95 | $(common-obj-y): $(GENERATED_HEADERS) |
Anthony Liguori | 41a7482 | 2011-08-20 22:23:03 -0500 | [diff] [blame] | 96 | subdir-libcacard: $(oslib-obj-y) $(trace-obj-y) qemu-timer-common.o |
Paolo Bonzini | 6774e44 | 2011-05-02 09:54:03 +0200 | [diff] [blame] | 97 | |
Andreas Färber | 91f1690 | 2010-09-12 17:21:36 +0200 | [diff] [blame] | 98 | $(filter %-softmmu,$(SUBDIR_RULES)): $(trace-obj-y) $(common-obj-y) subdir-libdis |
Paul Brook | c05ac89 | 2009-07-31 13:18:32 +0100 | [diff] [blame] | 99 | |
Andreas Färber | 91f1690 | 2010-09-12 17:21:36 +0200 | [diff] [blame] | 100 | $(filter %-user,$(SUBDIR_RULES)): $(GENERATED_HEADERS) $(trace-obj-y) subdir-libdis-user subdir-libuser |
Blue Swirl | add1615 | 2009-09-27 16:26:02 +0000 | [diff] [blame] | 101 | |
Paul Brook | c05ac89 | 2009-07-31 13:18:32 +0100 | [diff] [blame] | 102 | ROMSUBDIR_RULES=$(patsubst %,romsubdir-%, $(ROMS)) |
| 103 | romsubdir-%: |
| 104 | $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C pc-bios/$* V="$(V)" TARGET_DIR="$*/",) |
| 105 | |
| 106 | ALL_SUBDIRS=$(TARGET_DIRS) $(patsubst %,pc-bios/%, $(ROMS)) |
| 107 | |
| 108 | recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES) |
bellard | 83f6409 | 2006-08-01 16:21:11 +0000 | [diff] [blame] | 109 | |
Juan Quintela | 98b068a | 2009-08-03 14:46:57 +0200 | [diff] [blame] | 110 | audio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS) |
Juan Quintela | 0e22fd2 | 2009-06-25 00:08:09 +0200 | [diff] [blame] | 111 | |
Juan Quintela | a558ee1 | 2009-08-03 14:46:21 +0200 | [diff] [blame] | 112 | QEMU_CFLAGS+=$(CURL_CFLAGS) |
Alexander Graf | 769ce76 | 2009-05-11 17:41:42 +0200 | [diff] [blame] | 113 | |
Anthony Liguori | e18df14 | 2011-07-19 14:50:29 -0500 | [diff] [blame] | 114 | QEMU_CFLAGS+=$(GLIB_CFLAGS) |
| 115 | |
Corentin Chary | 3e230dd | 2010-07-07 20:57:52 +0200 | [diff] [blame] | 116 | ui/cocoa.o: ui/cocoa.m |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 117 | |
Corentin Chary | 3e230dd | 2010-07-07 20:57:52 +0200 | [diff] [blame] | 118 | ui/sdl.o audio/sdlaudio.o ui/sdl_zoom.o baum.o: QEMU_CFLAGS += $(SDL_CFLAGS) |
aliguori | 0483755 | 2009-03-06 20:27:10 +0000 | [diff] [blame] | 119 | |
Corentin Chary | 3e230dd | 2010-07-07 20:57:52 +0200 | [diff] [blame] | 120 | ui/vnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS) |
balrog | 4d3b6f6 | 2008-02-10 16:33:14 +0000 | [diff] [blame] | 121 | |
Juan Quintela | a558ee1 | 2009-08-03 14:46:21 +0200 | [diff] [blame] | 122 | bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS) |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 123 | |
Blue Swirl | 7948a66 | 2011-09-04 09:32:55 +0000 | [diff] [blame] | 124 | version.o: $(SRC_PATH)/version.rc config-host.h |
Blue Swirl | 9fe6de9 | 2010-09-26 16:07:57 +0000 | [diff] [blame] | 125 | $(call quiet-command,$(WINDRES) -I. -o $@ $<," RC $(TARGET_DIR)$@") |
| 126 | |
| 127 | version-obj-$(CONFIG_WIN32) += version.o |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 128 | ###################################################################### |
Alon Levy | 44dc0ca | 2011-05-15 11:51:28 +0300 | [diff] [blame] | 129 | # Support building shared library libcacard |
| 130 | |
| 131 | .PHONY: libcacard.la install-libcacard |
| 132 | ifeq ($(LIBTOOL),) |
| 133 | libcacard.la: |
| 134 | @echo "libtool is missing, please install and rerun configure"; exit 1 |
| 135 | |
| 136 | install-libcacard: |
| 137 | @echo "libtool is missing, please install and rerun configure"; exit 1 |
| 138 | else |
Anthony Liguori | 92f562e | 2011-08-21 08:36:21 -0500 | [diff] [blame] | 139 | libcacard.la: $(GENERATED_HEADERS) $(oslib-obj-y) qemu-timer-common.o $(addsuffix .lo, $(basename $(trace-obj-y))) |
Alon Levy | 44dc0ca | 2011-05-15 11:51:28 +0300 | [diff] [blame] | 140 | $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libcacard V="$(V)" TARGET_DIR="$*/" libcacard.la,) |
| 141 | |
| 142 | install-libcacard: libcacard.la |
| 143 | $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C libcacard V="$(V)" TARGET_DIR="$*/" install-libcacard,) |
| 144 | endif |
| 145 | ###################################################################### |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 146 | |
Juan Quintela | 3c089e1 | 2010-01-20 20:54:18 +0100 | [diff] [blame] | 147 | qemu-img.o: qemu-img-cmds.h |
Michael Roth | 48ff7a6 | 2011-07-20 15:19:37 -0500 | [diff] [blame] | 148 | qemu-img.o qemu-tool.o qemu-nbd.o qemu-io.o cmd.o qemu-ga.o: $(GENERATED_HEADERS) |
Stuart Brady | 153859b | 2009-06-07 00:42:17 +0100 | [diff] [blame] | 149 | |
Paolo Bonzini | 4ab328d | 2011-10-24 13:33:01 +0200 | [diff] [blame] | 150 | tools-obj-y = qemu-tool.o $(oslib-obj-y) $(trace-obj-y) \ |
| 151 | qemu-timer-common.o cutils.o |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 152 | |
Paolo Bonzini | 4ab328d | 2011-10-24 13:33:01 +0200 | [diff] [blame] | 153 | qemu-img$(EXESUF): qemu-img.o $(tools-obj-y) $(block-obj-y) |
| 154 | qemu-nbd$(EXESUF): qemu-nbd.o $(tools-obj-y) $(block-obj-y) |
| 155 | qemu-io$(EXESUF): qemu-io.o cmd.o $(tools-obj-y) $(block-obj-y) |
aliguori | 0a8e1ac | 2009-04-05 18:41:23 +0000 | [diff] [blame] | 156 | |
Stuart Brady | 153859b | 2009-06-07 00:42:17 +0100 | [diff] [blame] | 157 | qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 158 | $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $@") |
Stuart Brady | 153859b | 2009-06-07 00:42:17 +0100 | [diff] [blame] | 159 | |
Stefan Hajnoczi | aa7ee42 | 2011-05-10 10:21:18 +0100 | [diff] [blame] | 160 | check-qint.o check-qstring.o check-qdict.o check-qlist.o check-qfloat.o check-qjson.o test-coroutine.o: $(GENERATED_HEADERS) |
Jan Kiszka | 4091da4 | 2010-05-20 09:18:52 +0200 | [diff] [blame] | 161 | |
Paolo Bonzini | 4ab328d | 2011-10-24 13:33:01 +0200 | [diff] [blame] | 162 | check-qint: check-qint.o qint.o $(tools-obj-y) |
| 163 | check-qstring: check-qstring.o qstring.o $(tools-obj-y) |
| 164 | check-qdict: check-qdict.o qdict.o qfloat.o qint.o qstring.o qbool.o qlist.o $(tools-obj-y) |
| 165 | check-qlist: check-qlist.o qlist.o qint.o $(tools-obj-y) |
| 166 | check-qfloat: check-qfloat.o qfloat.o $(tools-obj-y) |
| 167 | check-qjson: check-qjson.o $(qobject-obj-y) $(tools-obj-y) |
| 168 | test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y) $(tools-obj-y) |
Luiz Capitulino | 33837ba | 2009-08-28 15:27:29 -0300 | [diff] [blame] | 169 | |
Michael Roth | 640e540 | 2011-07-19 14:50:44 -0500 | [diff] [blame] | 170 | $(qapi-obj-y): $(GENERATED_HEADERS) |
| 171 | qapi-dir := qapi-generated |
Michael Roth | e3d4d25 | 2011-07-19 15:41:55 -0500 | [diff] [blame] | 172 | test-visitor.o test-qmp-commands.o qemu-ga$(EXESUF): QEMU_CFLAGS += -I $(qapi-dir) |
Michael Roth | 957f1f9 | 2011-08-11 15:38:12 -0500 | [diff] [blame] | 173 | qemu-ga$(EXESUF): LIBS = $(LIBS_QGA) |
Michael Roth | 640e540 | 2011-07-19 14:50:44 -0500 | [diff] [blame] | 174 | |
| 175 | $(qapi-dir)/test-qapi-types.c: $(qapi-dir)/test-qapi-types.h |
| 176 | $(qapi-dir)/test-qapi-types.h: $(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-types.py |
Blue Swirl | c886edf | 2011-07-22 21:08:09 +0000 | [diff] [blame] | 177 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py -o "$(qapi-dir)" -p "test-" < $<, " GEN $@") |
Michael Roth | 640e540 | 2011-07-19 14:50:44 -0500 | [diff] [blame] | 178 | $(qapi-dir)/test-qapi-visit.c: $(qapi-dir)/test-qapi-visit.h |
| 179 | $(qapi-dir)/test-qapi-visit.h: $(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-visit.py |
Blue Swirl | c886edf | 2011-07-22 21:08:09 +0000 | [diff] [blame] | 180 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py -o "$(qapi-dir)" -p "test-" < $<, " GEN $@") |
Michael Roth | 69ed836 | 2011-07-19 14:50:45 -0500 | [diff] [blame] | 181 | $(qapi-dir)/test-qmp-commands.h: $(qapi-dir)/test-qmp-marshal.c |
| 182 | $(qapi-dir)/test-qmp-marshal.c: $(SRC_PATH)/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-commands.py |
Blue Swirl | c886edf | 2011-07-22 21:08:09 +0000 | [diff] [blame] | 183 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py -o "$(qapi-dir)" -p "test-" < $<, " GEN $@") |
Michael Roth | 640e540 | 2011-07-19 14:50:44 -0500 | [diff] [blame] | 184 | |
Michael Roth | e3d4d25 | 2011-07-19 15:41:55 -0500 | [diff] [blame] | 185 | $(qapi-dir)/qga-qapi-types.c: $(qapi-dir)/qga-qapi-types.h |
| 186 | $(qapi-dir)/qga-qapi-types.h: $(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-types.py |
Blue Swirl | c886edf | 2011-07-22 21:08:09 +0000 | [diff] [blame] | 187 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py -o "$(qapi-dir)" -p "qga-" < $<, " GEN $@") |
Michael Roth | e3d4d25 | 2011-07-19 15:41:55 -0500 | [diff] [blame] | 188 | $(qapi-dir)/qga-qapi-visit.c: $(qapi-dir)/qga-qapi-visit.h |
| 189 | $(qapi-dir)/qga-qapi-visit.h: $(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-visit.py |
Blue Swirl | c886edf | 2011-07-22 21:08:09 +0000 | [diff] [blame] | 190 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py -o "$(qapi-dir)" -p "qga-" < $<, " GEN $@") |
Anthony Liguori | e319360 | 2011-09-02 12:34:47 -0500 | [diff] [blame] | 191 | $(qapi-dir)/qga-qmp-commands.h: $(qapi-dir)/qga-qmp-marshal.c |
Michael Roth | e3d4d25 | 2011-07-19 15:41:55 -0500 | [diff] [blame] | 192 | $(qapi-dir)/qga-qmp-marshal.c: $(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-commands.py |
Blue Swirl | c886edf | 2011-07-22 21:08:09 +0000 | [diff] [blame] | 193 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py -o "$(qapi-dir)" -p "qga-" < $<, " GEN $@") |
Michael Roth | e3d4d25 | 2011-07-19 15:41:55 -0500 | [diff] [blame] | 194 | |
Anthony Liguori | e319360 | 2011-09-02 12:34:47 -0500 | [diff] [blame] | 195 | qapi-types.c: qapi-types.h |
| 196 | qapi-types.h: $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-types.py |
| 197 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py -o "." < $<, " GEN $@") |
| 198 | qapi-visit.c: qapi-visit.h |
| 199 | qapi-visit.h: $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-visit.py |
| 200 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py -o "." < $<, " GEN $@") |
| 201 | qmp-commands.h: qmp-marshal.c |
| 202 | qmp-marshal.c: $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-commands.py |
| 203 | $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py -m -o "." < $<, " GEN $@") |
| 204 | |
Michael Roth | 640e540 | 2011-07-19 14:50:44 -0500 | [diff] [blame] | 205 | test-visitor.o: $(addprefix $(qapi-dir)/, test-qapi-types.c test-qapi-types.h test-qapi-visit.c test-qapi-visit.h) $(qapi-obj-y) |
Paolo Bonzini | 4ab328d | 2011-10-24 13:33:01 +0200 | [diff] [blame] | 206 | test-visitor: test-visitor.o $(qobject-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qapi-dir)/test-qapi-visit.o $(qapi-dir)/test-qapi-types.o |
Michael Roth | 640e540 | 2011-07-19 14:50:44 -0500 | [diff] [blame] | 207 | |
Michael Roth | 69ed836 | 2011-07-19 14:50:45 -0500 | [diff] [blame] | 208 | test-qmp-commands.o: $(addprefix $(qapi-dir)/, test-qapi-types.c test-qapi-types.h test-qapi-visit.c test-qapi-visit.h test-qmp-marshal.c test-qmp-commands.h) $(qapi-obj-y) |
Paolo Bonzini | 4ab328d | 2011-10-24 13:33:01 +0200 | [diff] [blame] | 209 | test-qmp-commands: test-qmp-commands.o $(qobject-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qapi-dir)/test-qapi-visit.o $(qapi-dir)/test-qapi-types.o $(qapi-dir)/test-qmp-marshal.o module.o |
Michael Roth | 69ed836 | 2011-07-19 14:50:45 -0500 | [diff] [blame] | 210 | |
Michael Roth | 016c77a | 2011-07-26 11:39:24 -0500 | [diff] [blame] | 211 | QGALIB_GEN=$(addprefix $(qapi-dir)/, qga-qapi-types.c qga-qapi-types.h qga-qapi-visit.c qga-qmp-marshal.c) |
Michael Roth | 016c77a | 2011-07-26 11:39:24 -0500 | [diff] [blame] | 212 | $(QGALIB_GEN): $(GENERATED_HEADERS) |
Michael Roth | 957f1f9 | 2011-08-11 15:38:12 -0500 | [diff] [blame] | 213 | $(qga-obj-y) qemu-ga.o: $(QGALIB_GEN) |
| 214 | |
Paolo Bonzini | 4ab328d | 2011-10-24 13:33:01 +0200 | [diff] [blame] | 215 | qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qobject-obj-y) $(version-obj-y) $(addprefix $(qapi-dir)/, qga-qapi-visit.o qga-qapi-types.o qga-qmp-marshal.o) |
Michael Roth | 48ff7a6 | 2011-07-20 15:19:37 -0500 | [diff] [blame] | 216 | |
Robert Relyea | 111a38b | 2010-11-28 16:36:38 +0200 | [diff] [blame] | 217 | QEMULIBS=libhw32 libhw64 libuser libdis libdis-user |
| 218 | |
bellard | 31e31b8 | 2003-02-18 22:55:36 +0000 | [diff] [blame] | 219 | clean: |
bellard | 2d80ae8 | 2003-08-11 23:01:33 +0000 | [diff] [blame] | 220 | # avoid old build problems by removing potentially incorrect old files |
Juan Quintela | 25be210 | 2009-10-07 02:41:00 +0200 | [diff] [blame] | 221 | rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h |
Michael S. Tsirkin | df2943b | 2010-10-26 17:53:41 +0200 | [diff] [blame] | 222 | rm -f qemu-options.def |
Gerd Hoffmann | fffbeb7 | 2011-09-01 17:42:17 +0200 | [diff] [blame] | 223 | rm -f *.o *.d *.a *.lo $(TOOLS) $(CHECKS) qemu-ga TAGS cscope.* *.pod *~ */*~ |
Alon Levy | 44dc0ca | 2011-05-15 11:51:28 +0300 | [diff] [blame] | 224 | rm -Rf .libs |
Michael Roth | 13a286d | 2011-07-19 15:41:53 -0500 | [diff] [blame] | 225 | rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d fsdev/*.o fsdev/*.d ui/*.o ui/*.d qapi/*.o qapi/*.d qga/*.o qga/*.d |
Blue Swirl | 07b44ce | 2009-06-09 18:45:16 +0000 | [diff] [blame] | 226 | rm -f qemu-img-cmds.h |
Lluís | edb47ec | 2011-08-31 20:30:57 +0200 | [diff] [blame] | 227 | rm -f trace/*.o trace/*.d |
Blue Swirl | d7489b7 | 2010-10-09 08:24:17 +0000 | [diff] [blame] | 228 | rm -f trace.c trace.h trace.c-timestamp trace.h-timestamp |
Daniel P. Berrange | b3d08c0 | 2010-11-12 13:20:24 +0000 | [diff] [blame] | 229 | rm -f trace-dtrace.dtrace trace-dtrace.dtrace-timestamp |
| 230 | rm -f trace-dtrace.h trace-dtrace.h-timestamp |
Michael S. Tsirkin | 611b727 | 2011-11-16 23:58:46 +0200 | [diff] [blame^] | 231 | rm -f $(GENERATED_SOURCES) |
Michael Roth | 640e540 | 2011-07-19 14:50:44 -0500 | [diff] [blame] | 232 | rm -rf $(qapi-dir) |
bellard | 7d3505c | 2004-05-12 19:32:15 +0000 | [diff] [blame] | 233 | $(MAKE) -C tests clean |
Robert Relyea | 111a38b | 2010-11-28 16:36:38 +0200 | [diff] [blame] | 234 | for d in $(ALL_SUBDIRS) $(QEMULIBS) libcacard; do \ |
Magnus Damm | fc8e320 | 2009-11-13 18:51:05 +0900 | [diff] [blame] | 235 | if test -d $$d; then $(MAKE) -C $$d $@ || exit 1; fi; \ |
Michael S. Tsirkin | df2943b | 2010-10-26 17:53:41 +0200 | [diff] [blame] | 236 | rm -f $$d/qemu-options.def; \ |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 237 | done |
bellard | 31e31b8 | 2003-02-18 22:55:36 +0000 | [diff] [blame] | 238 | |
bellard | 7d13299 | 2003-03-06 23:23:54 +0000 | [diff] [blame] | 239 | distclean: clean |
Magnus Damm | fc8e320 | 2009-11-13 18:51:05 +0900 | [diff] [blame] | 240 | rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi qemu-monitor.texi |
Paul Brook | a992fe3 | 2009-11-22 16:25:30 +0000 | [diff] [blame] | 241 | rm -f config-all-devices.mak |
Magnus Damm | fc8e320 | 2009-11-13 18:51:05 +0900 | [diff] [blame] | 242 | rm -f roms/seabios/config.mak roms/vgabios/config.mak |
Brad Hards | 7a734b8 | 2011-04-13 16:42:16 +1000 | [diff] [blame] | 243 | rm -f qemu-doc.info qemu-doc.aux qemu-doc.cp qemu-doc.cps qemu-doc.dvi |
| 244 | rm -f qemu-doc.fn qemu-doc.fns qemu-doc.info qemu-doc.ky qemu-doc.kys |
| 245 | rm -f qemu-doc.log qemu-doc.pdf qemu-doc.pg qemu-doc.toc qemu-doc.tp |
| 246 | rm -f qemu-doc.vr |
Alexandre Raymond | 793553a | 2011-07-25 23:56:02 -0400 | [diff] [blame] | 247 | rm -f config.log |
Hidetoshi Seto | e1a068b | 2010-07-08 14:26:18 +0900 | [diff] [blame] | 248 | 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 |
Robert Relyea | 111a38b | 2010-11-28 16:36:38 +0200 | [diff] [blame] | 249 | for d in $(TARGET_DIRS) $(QEMULIBS); do \ |
bellard | bc1b050 | 2003-10-28 00:12:52 +0000 | [diff] [blame] | 250 | rm -rf $$d || exit 1 ; \ |
bellard | 76bc683 | 2003-08-10 23:41:46 +0000 | [diff] [blame] | 251 | done |
bellard | 7d13299 | 2003-03-06 23:23:54 +0000 | [diff] [blame] | 252 | |
bellard | fed4a9a | 2004-12-12 22:18:34 +0000 | [diff] [blame] | 253 | KEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \ |
| 254 | ar de en-us fi fr-be hr it lv nl pl ru th \ |
| 255 | common de-ch es fo fr-ca hu ja mk nl-be pt sl tr |
| 256 | |
ths | 7775534 | 2008-11-27 15:45:16 +0000 | [diff] [blame] | 257 | ifdef INSTALL_BLOBS |
Paolo Bonzini | 6329866 | 2011-11-03 15:14:00 +0100 | [diff] [blame] | 258 | BLOBS=bios.bin sgabios.bin vgabios.bin vgabios-cirrus.bin \ |
Gerd Hoffmann | 7943a2f | 2010-11-30 11:54:33 +0100 | [diff] [blame] | 259 | vgabios-stdvga.bin vgabios-vmware.bin vgabios-qxl.bin \ |
Gerd Hoffmann | 3b3d448 | 2010-08-23 12:10:46 +0200 | [diff] [blame] | 260 | ppc_rom.bin openbios-sparc32 openbios-sparc64 openbios-ppc \ |
Alex Williamson | 5ee8ad7 | 2011-04-18 11:46:01 -0600 | [diff] [blame] | 261 | pxe-e1000.rom pxe-eepro100.rom pxe-ne2k_pci.rom \ |
| 262 | pxe-pcnet.rom pxe-rtl8139.rom pxe-virtio.rom \ |
Michal Simek | 00914b7 | 2011-03-14 11:29:19 +0100 | [diff] [blame] | 263 | bamboo.dtb petalogix-s3adsp1800.dtb petalogix-ml605.dtb \ |
Alexander Graf | fbd659b | 2011-05-25 23:49:41 +0200 | [diff] [blame] | 264 | mpc8544ds.dtb \ |
Alexander Graf | fe270d0 | 2010-04-20 19:37:13 +0200 | [diff] [blame] | 265 | multiboot.bin linuxboot.bin \ |
David Gibson | 39ac845 | 2011-04-01 15:15:23 +1100 | [diff] [blame] | 266 | s390-zipl.rom \ |
Richard Henderson | 753d11f | 2011-06-24 11:58:37 -0700 | [diff] [blame] | 267 | spapr-rtas.bin slof.bin \ |
| 268 | palcode-clipper |
ths | 7775534 | 2008-11-27 15:45:16 +0000 | [diff] [blame] | 269 | else |
| 270 | BLOBS= |
| 271 | endif |
| 272 | |
pbrook | 38954dc | 2006-04-30 23:54:18 +0000 | [diff] [blame] | 273 | install-doc: $(DOCS) |
aliguori | 58f8aea | 2009-04-18 15:36:02 +0000 | [diff] [blame] | 274 | $(INSTALL_DIR) "$(DESTDIR)$(docdir)" |
| 275 | $(INSTALL_DATA) qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)" |
Juan Quintela | 96d409e | 2009-08-03 14:47:00 +0200 | [diff] [blame] | 276 | ifdef CONFIG_POSIX |
aliguori | 58f8aea | 2009-04-18 15:36:02 +0000 | [diff] [blame] | 277 | $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1" |
| 278 | $(INSTALL_DATA) qemu.1 qemu-img.1 "$(DESTDIR)$(mandir)/man1" |
| 279 | $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man8" |
| 280 | $(INSTALL_DATA) qemu-nbd.8 "$(DESTDIR)$(mandir)/man8" |
pbrook | 38954dc | 2006-04-30 23:54:18 +0000 | [diff] [blame] | 281 | endif |
| 282 | |
john cooper | b5ec5ce | 2010-02-20 11:14:59 -0600 | [diff] [blame] | 283 | install-sysconfig: |
Andre Przywara | 990caaf | 2010-03-08 15:43:41 +0100 | [diff] [blame] | 284 | $(INSTALL_DIR) "$(DESTDIR)$(sysconfdir)/qemu" |
| 285 | $(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(sysconfdir)/qemu" |
john cooper | b5ec5ce | 2010-02-20 11:14:59 -0600 | [diff] [blame] | 286 | |
| 287 | install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig |
aliguori | 58f8aea | 2009-04-18 15:36:02 +0000 | [diff] [blame] | 288 | $(INSTALL_DIR) "$(DESTDIR)$(bindir)" |
ths | 932a79d | 2007-10-20 18:29:34 +0000 | [diff] [blame] | 289 | ifneq ($(TOOLS),) |
aliguori | 58f8aea | 2009-04-18 15:36:02 +0000 | [diff] [blame] | 290 | $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)" |
ths | 932a79d | 2007-10-20 18:29:34 +0000 | [diff] [blame] | 291 | endif |
ths | 7775534 | 2008-11-27 15:45:16 +0000 | [diff] [blame] | 292 | ifneq ($(BLOBS),) |
aliguori | 58f8aea | 2009-04-18 15:36:02 +0000 | [diff] [blame] | 293 | $(INSTALL_DIR) "$(DESTDIR)$(datadir)" |
ths | 7775534 | 2008-11-27 15:45:16 +0000 | [diff] [blame] | 294 | set -e; for x in $(BLOBS); do \ |
aliguori | 58f8aea | 2009-04-18 15:36:02 +0000 | [diff] [blame] | 295 | $(INSTALL_DATA) $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \ |
pbrook | ad06484 | 2006-04-16 12:41:07 +0000 | [diff] [blame] | 296 | done |
ths | 7775534 | 2008-11-27 15:45:16 +0000 | [diff] [blame] | 297 | endif |
aliguori | 58f8aea | 2009-04-18 15:36:02 +0000 | [diff] [blame] | 298 | $(INSTALL_DIR) "$(DESTDIR)$(datadir)/keymaps" |
blueswir1 | 18be8d7 | 2008-03-05 18:16:09 +0000 | [diff] [blame] | 299 | set -e; for x in $(KEYMAPS); do \ |
Anthony Liguori | 79fd42a | 2009-05-28 03:11:42 -0500 | [diff] [blame] | 300 | $(INSTALL_DATA) $(SRC_PATH)/pc-bios/keymaps/$$x "$(DESTDIR)$(datadir)/keymaps"; \ |
pbrook | ad06484 | 2006-04-16 12:41:07 +0000 | [diff] [blame] | 301 | done |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 302 | for d in $(TARGET_DIRS); do \ |
bellard | 7d3505c | 2004-05-12 19:32:15 +0000 | [diff] [blame] | 303 | $(MAKE) -C $$d $@ || exit 1 ; \ |
bellard | 626df76 | 2003-08-10 21:39:31 +0000 | [diff] [blame] | 304 | done |
bellard | 612384d | 2003-03-22 17:31:19 +0000 | [diff] [blame] | 305 | |
bellard | 367e86e | 2003-03-01 17:13:26 +0000 | [diff] [blame] | 306 | # various test targets |
bellard | 9b0b820 | 2007-11-14 10:34:57 +0000 | [diff] [blame] | 307 | test speed: all |
bellard | 7d3505c | 2004-05-12 19:32:15 +0000 | [diff] [blame] | 308 | $(MAKE) -C tests $@ |
bellard | 31e31b8 | 2003-02-18 22:55:36 +0000 | [diff] [blame] | 309 | |
Gerd Hoffmann | ea7f780 | 2011-09-01 17:42:18 +0200 | [diff] [blame] | 310 | .PHONY: check |
| 311 | check: $(patsubst %,run-check-%,$(CHECKS)) |
| 312 | |
| 313 | run-check-%: % |
| 314 | ./$< |
| 315 | |
Alexandre Bique | 21d4e8e | 2009-08-07 15:43:11 +0100 | [diff] [blame] | 316 | .PHONY: TAGS |
ths | 5fafdf2 | 2007-09-16 21:08:06 +0000 | [diff] [blame] | 317 | TAGS: |
Alexandre Bique | 21d4e8e | 2009-08-07 15:43:11 +0100 | [diff] [blame] | 318 | find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags |
bellard | 31e31b8 | 2003-02-18 22:55:36 +0000 | [diff] [blame] | 319 | |
bellard | 6688bc6 | 2005-08-21 09:23:39 +0000 | [diff] [blame] | 320 | cscope: |
| 321 | rm -f ./cscope.* |
Alexandre Raymond | 45b75ae | 2011-07-20 23:12:15 -0400 | [diff] [blame] | 322 | find "$(SRC_PATH)" -name "*.[chsS]" -print | sed 's,^\./,,' > ./cscope.files |
bellard | 6688bc6 | 2005-08-21 09:23:39 +0000 | [diff] [blame] | 323 | cscope -b |
| 324 | |
bellard | 3ef693a | 2003-03-23 20:17:16 +0000 | [diff] [blame] | 325 | # documentation |
Stefan Weil | 01668d9 | 2010-03-04 22:21:02 +0100 | [diff] [blame] | 326 | MAKEINFO=makeinfo |
| 327 | MAKEINFOFLAGS=--no-headers --no-split --number-sections |
Stefan Weil | 20cc999 | 2010-01-29 23:16:50 +0100 | [diff] [blame] | 328 | TEXIFLAG=$(if $(V),,--quiet) |
| 329 | %.dvi: %.texi |
| 330 | $(call quiet-command,texi2dvi $(TEXIFLAG) -I . $<," GEN $@") |
| 331 | |
bellard | 1f67313 | 2004-04-04 15:21:17 +0000 | [diff] [blame] | 332 | %.html: %.texi |
Stefan Weil | 01668d9 | 2010-03-04 22:21:02 +0100 | [diff] [blame] | 333 | $(call quiet-command,$(MAKEINFO) $(MAKEINFOFLAGS) --html $< -o $@, \ |
| 334 | " GEN $@") |
bellard | 3ef693a | 2003-03-23 20:17:16 +0000 | [diff] [blame] | 335 | |
bellard | f354832 | 2006-04-30 22:51:54 +0000 | [diff] [blame] | 336 | %.info: %.texi |
Stefan Weil | 01668d9 | 2010-03-04 22:21:02 +0100 | [diff] [blame] | 337 | $(call quiet-command,$(MAKEINFO) $< -o $@," GEN $@") |
bellard | f354832 | 2006-04-30 22:51:54 +0000 | [diff] [blame] | 338 | |
Stefan Weil | 20cc999 | 2010-01-29 23:16:50 +0100 | [diff] [blame] | 339 | %.pdf: %.texi |
| 340 | $(call quiet-command,texi2pdf $(TEXIFLAG) -I . $<," GEN $@") |
blueswir1 | 5824d65 | 2009-03-28 06:44:27 +0000 | [diff] [blame] | 341 | |
| 342 | qemu-options.texi: $(SRC_PATH)/qemu-options.hx |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 343 | $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -t < $< > $@," GEN $@") |
bellard | f354832 | 2006-04-30 22:51:54 +0000 | [diff] [blame] | 344 | |
Luiz Capitulino | acd0a09 | 2010-09-30 16:00:22 -0300 | [diff] [blame] | 345 | qemu-monitor.texi: $(SRC_PATH)/hmp-commands.hx |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 346 | $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -t < $< > $@," GEN $@") |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 347 | |
Luiz Capitulino | 82a56f0 | 2010-09-13 12:26:00 -0300 | [diff] [blame] | 348 | QMP/qmp-commands.txt: $(SRC_PATH)/qmp-commands.hx |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 349 | $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -q < $< > $@," GEN $@") |
Jan Kiszka | b40292e | 2010-05-31 14:43:31 -0300 | [diff] [blame] | 350 | |
Stuart Brady | 153859b | 2009-06-07 00:42:17 +0100 | [diff] [blame] | 351 | qemu-img-cmds.texi: $(SRC_PATH)/qemu-img-cmds.hx |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 352 | $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -t < $< > $@," GEN $@") |
Stuart Brady | 153859b | 2009-06-07 00:42:17 +0100 | [diff] [blame] | 353 | |
Blue Swirl | 2313086 | 2009-06-06 08:22:04 +0000 | [diff] [blame] | 354 | qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi |
aliguori | 0d00e56 | 2009-04-05 17:40:46 +0000 | [diff] [blame] | 355 | $(call quiet-command, \ |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 356 | perl -Ww -- $(SRC_PATH)/scripts/texi2pod.pl $< qemu.pod && \ |
aliguori | 0d00e56 | 2009-04-05 17:40:46 +0000 | [diff] [blame] | 357 | pod2man --section=1 --center=" " --release=" " qemu.pod > $@, \ |
| 358 | " GEN $@") |
bellard | 5a67135 | 2003-10-01 00:13:48 +0000 | [diff] [blame] | 359 | |
Stuart Brady | 153859b | 2009-06-07 00:42:17 +0100 | [diff] [blame] | 360 | qemu-img.1: qemu-img.texi qemu-img-cmds.texi |
aliguori | 0d00e56 | 2009-04-05 17:40:46 +0000 | [diff] [blame] | 361 | $(call quiet-command, \ |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 362 | perl -Ww -- $(SRC_PATH)/scripts/texi2pod.pl $< qemu-img.pod && \ |
aliguori | 0d00e56 | 2009-04-05 17:40:46 +0000 | [diff] [blame] | 363 | pod2man --section=1 --center=" " --release=" " qemu-img.pod > $@, \ |
| 364 | " GEN $@") |
bellard | acd935e | 2004-11-15 22:57:26 +0000 | [diff] [blame] | 365 | |
bellard | 7a5ca86 | 2008-05-27 21:13:40 +0000 | [diff] [blame] | 366 | qemu-nbd.8: qemu-nbd.texi |
aliguori | 0d00e56 | 2009-04-05 17:40:46 +0000 | [diff] [blame] | 367 | $(call quiet-command, \ |
Blue Swirl | 4c3b5a4 | 2011-01-20 20:54:21 +0000 | [diff] [blame] | 368 | perl -Ww -- $(SRC_PATH)/scripts/texi2pod.pl $< qemu-nbd.pod && \ |
aliguori | 0d00e56 | 2009-04-05 17:40:46 +0000 | [diff] [blame] | 369 | pod2man --section=8 --center=" " --release=" " qemu-nbd.pod > $@, \ |
| 370 | " GEN $@") |
bellard | 7a5ca86 | 2008-05-27 21:13:40 +0000 | [diff] [blame] | 371 | |
pbrook | 0cb3fb1 | 2006-05-14 12:07:53 +0000 | [diff] [blame] | 372 | dvi: qemu-doc.dvi qemu-tech.dvi |
pbrook | 0cb3fb1 | 2006-05-14 12:07:53 +0000 | [diff] [blame] | 373 | html: qemu-doc.html qemu-tech.html |
Stefan Weil | 20cc999 | 2010-01-29 23:16:50 +0100 | [diff] [blame] | 374 | info: qemu-doc.info qemu-tech.info |
| 375 | pdf: qemu-doc.pdf qemu-tech.pdf |
pbrook | 0cb3fb1 | 2006-05-14 12:07:53 +0000 | [diff] [blame] | 376 | |
Stefan Weil | 20cc999 | 2010-01-29 23:16:50 +0100 | [diff] [blame] | 377 | qemu-doc.dvi qemu-doc.html qemu-doc.info qemu-doc.pdf: \ |
| 378 | qemu-img.texi qemu-nbd.texi qemu-options.texi \ |
| 379 | qemu-monitor.texi qemu-img-cmds.texi |
aliguori | 818220f | 2008-09-24 01:13:40 +0000 | [diff] [blame] | 380 | |
ths | df5cf72 | 2007-01-24 22:56:36 +0000 | [diff] [blame] | 381 | VERSION ?= $(shell cat VERSION) |
| 382 | FILE = qemu-$(VERSION) |
bellard | 586314f | 2003-03-03 15:02:29 +0000 | [diff] [blame] | 383 | |
bellard | 1e43adf | 2003-09-30 20:54:24 +0000 | [diff] [blame] | 384 | # tar release (use 'make -k tar' on a checkouted tree) |
bellard | 586314f | 2003-03-03 15:02:29 +0000 | [diff] [blame] | 385 | tar: |
| 386 | rm -rf /tmp/$(FILE) |
bellard | 1e43adf | 2003-09-30 20:54:24 +0000 | [diff] [blame] | 387 | cp -r . /tmp/$(FILE) |
aurel32 | 99c6c08 | 2008-04-22 20:45:30 +0000 | [diff] [blame] | 388 | 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] | 389 | rm -rf /tmp/$(FILE) |
| 390 | |
bellard | 4fb240a | 2007-11-07 19:24:02 +0000 | [diff] [blame] | 391 | # Include automatically generated dependency files |
Michael Roth | 48ff7a6 | 2011-07-20 15:19:37 -0500 | [diff] [blame] | 392 | -include $(wildcard *.d audio/*.d slirp/*.d block/*.d net/*.d ui/*.d qapi/*.d qga/*.d) |