win32: add generic RC rules to rules.mak
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
75f6e8b0f1
commit
6821cdc7c8
2
Makefile
2
Makefile
@ -167,9 +167,7 @@ recurse-all: $(SUBDIR_RULES) $(ROMSUBDIR_RULES)
|
|||||||
bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS)
|
bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS)
|
||||||
|
|
||||||
version.o: $(SRC_PATH)/version.rc config-host.h | version.lo
|
version.o: $(SRC_PATH)/version.rc config-host.h | version.lo
|
||||||
$(call quiet-command,$(WINDRES) -I. -o $@ $<," RC $(TARGET_DIR)$@")
|
|
||||||
version.lo: $(SRC_PATH)/version.rc config-host.h
|
version.lo: $(SRC_PATH)/version.rc config-host.h
|
||||||
$(call quiet-command,$(LIBTOOL) --mode=compile --tag=RC $(WINDRES) -I. -o $@ $<,"lt RC $(TARGET_DIR)$@")
|
|
||||||
|
|
||||||
version-obj-$(CONFIG_WIN32) += version.o
|
version-obj-$(CONFIG_WIN32) += version.o
|
||||||
version-lobj-$(CONFIG_WIN32) += $(if $(LIBTOOL),version.lo)
|
version-lobj-$(CONFIG_WIN32) += $(if $(LIBTOOL),version.lo)
|
||||||
|
@ -19,6 +19,8 @@ QEMU_CFLAGS += -I$(<D) -I$(@D)
|
|||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(call quiet-command,$(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@")
|
$(call quiet-command,$(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@")
|
||||||
|
%.o: %.rc
|
||||||
|
$(call quiet-command,$(WINDRES) -I. -o $@ $<," RC $(TARGET_DIR)$@")
|
||||||
|
|
||||||
ifeq ($(LIBTOOL),)
|
ifeq ($(LIBTOOL),)
|
||||||
LIBTOOL = /bin/false
|
LIBTOOL = /bin/false
|
||||||
@ -29,6 +31,8 @@ else
|
|||||||
LIBTOOL += $(if $(V),,--quiet)
|
LIBTOOL += $(if $(V),,--quiet)
|
||||||
%.lo: %.c
|
%.lo: %.c
|
||||||
$(call quiet-command,$(LIBTOOL) --mode=compile --tag=CC $(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," lt CC $@")
|
$(call quiet-command,$(LIBTOOL) --mode=compile --tag=CC $(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," lt CC $@")
|
||||||
|
%.lo: %.rc
|
||||||
|
$(call quiet-command,$(LIBTOOL) --mode=compile --tag=RC $(WINDRES) -I. -o $@ $<,"lt RC $(TARGET_DIR)$@")
|
||||||
%.lo: %.dtrace
|
%.lo: %.dtrace
|
||||||
$(call quiet-command,$(LIBTOOL) --mode=compile --tag=CC dtrace -o $@ -G -s $<, " lt GEN $(TARGET_DIR)$@")
|
$(call quiet-command,$(LIBTOOL) --mode=compile --tag=CC dtrace -o $@ -G -s $<, " lt GEN $(TARGET_DIR)$@")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user