win32: move Makefile dependencies on version-obj-y to rules.mak
This makes the test on $(LIBTOOL) work. Otherwise, LIBTOOL is /bin/false by the time the test is done. Fixes Win32 compilation without a working cross-libtool. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
6821cdc7c8
commit
c02817e5bf
3
Makefile
3
Makefile
@ -170,8 +170,7 @@ version.o: $(SRC_PATH)/version.rc config-host.h | version.lo
|
|||||||
version.lo: $(SRC_PATH)/version.rc config-host.h
|
version.lo: $(SRC_PATH)/version.rc config-host.h
|
||||||
|
|
||||||
version-obj-$(CONFIG_WIN32) += version.o
|
version-obj-$(CONFIG_WIN32) += version.o
|
||||||
version-lobj-$(CONFIG_WIN32) += $(if $(LIBTOOL),version.lo)
|
version-lobj-$(CONFIG_WIN32) += version.lo
|
||||||
Makefile: $(version-obj-y) $(version-lobj-y)
|
|
||||||
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
@ -22,12 +22,15 @@ QEMU_CFLAGS += -I$(<D) -I$(@D)
|
|||||||
%.o: %.rc
|
%.o: %.rc
|
||||||
$(call quiet-command,$(WINDRES) -I. -o $@ $<," RC $(TARGET_DIR)$@")
|
$(call quiet-command,$(WINDRES) -I. -o $@ $<," RC $(TARGET_DIR)$@")
|
||||||
|
|
||||||
|
Makefile: $(version-obj-y)
|
||||||
|
|
||||||
ifeq ($(LIBTOOL),)
|
ifeq ($(LIBTOOL),)
|
||||||
LIBTOOL = /bin/false
|
LIBTOOL = /bin/false
|
||||||
LINK = $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ \
|
LINK = $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ \
|
||||||
$(sort $(filter %.o, $1)) $(filter-out %.o, $1) $(version-obj-y) \
|
$(sort $(filter %.o, $1)) $(filter-out %.o, $1) $(version-obj-y) \
|
||||||
$(LIBS)," LINK $(TARGET_DIR)$@")
|
$(LIBS)," LINK $(TARGET_DIR)$@")
|
||||||
else
|
else
|
||||||
|
Makefile: $(version-lobj-y)
|
||||||
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 $@")
|
||||||
|
Loading…
Reference in New Issue
Block a user