diff options
Diffstat (limited to 'Makefile.target')
-rw-r--r-- | Makefile.target | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile.target b/Makefile.target index ee54438674..cfb3cd88fc 100644 --- a/Makefile.target +++ b/Makefile.target @@ -17,8 +17,14 @@ else QEMU_SYSTEM=qemu endif -ifndef CONFIG_SOFTMMU +ifdef CONFIG_USER_ONLY PROGS=$(QEMU_USER) +else +ifeq ($(ARCH),i386) +ifeq ($(TARGET_ARCH), i386) +PROGS+=$(QEMU_SYSTEM) +endif +endif endif ifdef CONFIG_STATIC @@ -41,9 +47,6 @@ else # is the simplest way to make it self virtualizable! LDFLAGS+=-Wl,-shared endif -ifeq ($(TARGET_ARCH), i386) -PROGS+=$(QEMU_SYSTEM) -endif endif ifeq ($(ARCH),ppc) @@ -171,7 +174,7 @@ sdl.o: sdl.c $(CC) $(CFLAGS) $(DEFINES) $(SDL_CFLAGS) -c -o $@ $< depend: $(SRCS) - $(CC) -MM $(CFLAGS) $^ 1>.depend + $(CC) -MM $(CFLAGS) $(DEFINES) $^ 1>.depend # libqemu |