diff options
author | Juan Quintela <quintela@redhat.com> | 2009-07-16 18:34:04 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-16 17:28:55 -0500 |
commit | 16394485414cba50b9cd357fcab7d7bf3c584c46 (patch) | |
tree | 7c4ece2cce7474b3612bd51af12f27c8e34e2a54 | |
parent | 1c8726725896c4457c03b2858e0525008bb42032 (diff) |
Refactor a single rule to generate all qemu-* executables
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | Makefile.target | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/Makefile.target b/Makefile.target index bb2a93a346..bcacbbde30 100644 --- a/Makefile.target +++ b/Makefile.target @@ -300,9 +300,7 @@ obj-m68k-y += m68k-sim.o m68k-semi.o # cpu_signal_handler() in cpu-exec.c. signal.o: CFLAGS += $(HELPER_CFLAGS) -$(QEMU_PROG): ARLIBS=../libqemu_user.a libqemu.a -$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) ../libqemu_user.a libqemu.a - $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)) +ARLIBS=../libqemu_user.a libqemu.a ifeq ($(ARCH),alpha) # Mark as 32 bit binary, i. e. it will be mapped into the low 31 bit of @@ -332,9 +330,7 @@ obj-y = main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o \ # cpu_signal_handler() in cpu-exec.c. signal.o: CFLAGS += $(HELPER_CFLAGS) -$(QEMU_PROG): ARLIBS=libqemu.a -$(QEMU_PROG): $(obj-y) libqemu.a - $(call LINK,$(obj-y)) +ARLIBS=libqemu.a endif #CONFIG_DARWIN_USER @@ -432,9 +428,7 @@ obj-y += uaccess.o # cpu_signal_handler() in cpu-exec.c. signal.o: CFLAGS += $(HELPER_CFLAGS) -$(QEMU_PROG): ARLIBS=libqemu.a ../libqemu_user.a -$(QEMU_PROG): $(obj-y) libqemu.a ../libqemu_user.a - $(call LINK,$(obj-y)) +ARLIBS=libqemu.a ../libqemu_user.a endif #CONFIG_BSD_USER @@ -683,13 +677,15 @@ vl.o: qemu-options.h monitor.o: qemu-monitor.h -$(QEMU_PROG): LIBS += $(SDL_LIBS) $(COCOA_LIBS) $(CURSES_LIBS) $(BRLAPI_LIBS) $(VDE_LIBS) $(CURL_LIBS) -$(QEMU_PROG): ARLIBS=../libqemu_common.a libqemu.a $(HWLIB) -$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) ../libqemu_common.a libqemu.a $(HWLIB) - $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)) +LIBS += $(SDL_LIBS) $(COCOA_LIBS) $(CURSES_LIBS) $(BRLAPI_LIBS) $(VDE_LIBS) $(CURL_LIBS) +ARLIBS=../libqemu_common.a libqemu.a $(HWLIB) endif # !CONFIG_USER_ONLY +$(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) $(ARLIBS) + $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y)) + + gdbstub-xml.c: $(TARGET_XML_FILES) feature_to_c.sh ifeq ($(TARGET_XML_FILES),) $(call quiet-command,rm -f $@ && echo > $@," GEN $(TARGET_DIR)$@") |