Revision e3193601 Makefile
b/Makefile | ||
---|---|---|
7 | 7 |
ifeq ($(TRACE_BACKEND),dtrace) |
8 | 8 |
GENERATED_HEADERS += trace-dtrace.h |
9 | 9 |
endif |
10 |
GENERATED_HEADERS += qmp-commands.h qapi-types.h qapi-visit.h |
|
10 | 11 |
|
11 | 12 |
ifneq ($(wildcard config-host.mak),) |
12 | 13 |
# Put the all: rule here so that config-host.mak can contain dependencies. |
... | ... | |
187 | 188 |
$(qapi-dir)/qga-qapi-visit.c: $(qapi-dir)/qga-qapi-visit.h |
188 | 189 |
$(qapi-dir)/qga-qapi-visit.h: $(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-visit.py |
189 | 190 |
$(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py -o "$(qapi-dir)" -p "qga-" < $<, " GEN $@") |
191 |
$(qapi-dir)/qga-qmp-commands.h: $(qapi-dir)/qga-qmp-marshal.c |
|
190 | 192 |
$(qapi-dir)/qga-qmp-marshal.c: $(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-commands.py |
191 | 193 |
$(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py -o "$(qapi-dir)" -p "qga-" < $<, " GEN $@") |
192 | 194 |
|
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 |
|
|
193 | 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) |
194 | 206 |
test-visitor: test-visitor.o qfloat.o qint.o qdict.o qstring.o qlist.o qbool.o $(qapi-obj-y) error.o osdep.o $(oslib-obj-y) qjson.o json-streamer.o json-lexer.o json-parser.o qerror.o qemu-error.o qemu-tool.o $(qapi-dir)/test-qapi-visit.o $(qapi-dir)/test-qapi-types.o |
195 | 207 |
|
Also available in: Unified diff