360 firmware.o: firmware.c
361 $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
362 endif
363
364 main.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
365
366 monitor.o: hmp-commands.h qmp-commands.h
367
368 $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
369
370 obj-y += $(addprefix ../, $(common-obj-y))
371 obj-y += $(addprefix ../libdis/, $(libdis-y))
372 obj-y += $(libobj-y)
373 obj-y += $(addprefix $(HWDIR)/, $(hw-obj-y))
374
375 endif # CONFIG_SOFTMMU
376
377 obj-y += $(addprefix ../, $(trace-obj-y))
378 obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o
379
380 #
381 # Uh, ctfconvert and ctfmerge are in our paths... right... I promise I'll clean
382 # this up.
383 #
384
385 ifeq ($(TRACE_BACKEND),dtrace)
386 ifneq ($(strip $(CONFIG_SOLARIS)),)
387 $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
388 $(call quiet-command, dtrace $(CONFIG_DTRACE_FLAGS) -o ../trace-dtrace.o -s ../trace-dtrace.dtrace -G $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)," LINK $(TARGET_DIR)$@.dtrace")
389 $(call quiet-command, find ../ -type f -name '*.o' -exec ../ctf.sh '{}' \;)
390 $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) ../trace-dtrace.o)
391 $(call CTFMERGE, $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
392 else
393 $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
394 $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
395 endif
396 else
397 $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
398 $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
399 endif
400
401
402
403
404 gdbstub-xml.c: $(TARGET_XML_FILES) $(SRC_PATH)/scripts/feature_to_c.sh
405 $(call quiet-command,rm -f $@ && $(SHELL) $(SRC_PATH)/scripts/feature_to_c.sh $@ $(TARGET_XML_FILES)," GEN $(TARGET_DIR)$@")
406
407 hmp-commands.h: $(SRC_PATH)/hmp-commands.hx
408 $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@")
409
410 qmp-commands.h: $(SRC_PATH)/qmp-commands.hx
411 $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@")
|
360 firmware.o: firmware.c
361 $(CC) $(HELPER_CFLAGS) $(CPPFLAGS) $(BASE_CFLAGS) -c -o $@ $<
362 endif
363
364 main.o: QEMU_CFLAGS+=$(GPROF_CFLAGS)
365
366 monitor.o: hmp-commands.h qmp-commands.h
367
368 $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y): $(GENERATED_HEADERS)
369
370 obj-y += $(addprefix ../, $(common-obj-y))
371 obj-y += $(addprefix ../libdis/, $(libdis-y))
372 obj-y += $(libobj-y)
373 obj-y += $(addprefix $(HWDIR)/, $(hw-obj-y))
374
375 endif # CONFIG_SOFTMMU
376
377 obj-y += $(addprefix ../, $(trace-obj-y))
378 obj-$(CONFIG_GDBSTUB_XML) += gdbstub-xml.o
379
380
381 ifeq ($(TRACE_BACKEND),dtrace)
382 ifneq ($(strip $(CONFIG_SOLARIS)),)
383 $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
384 $(call quiet-command, dtrace $(CONFIG_DTRACE_FLAGS) -o ../trace-dtrace.o -s ../trace-dtrace.dtrace -G $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)," LINK $(TARGET_DIR)$@.dtrace")
385 $(call CTFCONVERT_CMD)
386 $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) ../trace-dtrace.o)
387 $(call CTFMERGE_CMD, $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
388 else
389 $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
390 $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
391 endif
392 else
393 $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)
394 $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
395 endif
396
397
398
399
400 gdbstub-xml.c: $(TARGET_XML_FILES) $(SRC_PATH)/scripts/feature_to_c.sh
401 $(call quiet-command,rm -f $@ && $(SHELL) $(SRC_PATH)/scripts/feature_to_c.sh $@ $(TARGET_XML_FILES)," GEN $(TARGET_DIR)$@")
402
403 hmp-commands.h: $(SRC_PATH)/hmp-commands.hx
404 $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@")
405
406 qmp-commands.h: $(SRC_PATH)/qmp-commands.hx
407 $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@," GEN $(TARGET_DIR)$@")
|