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
# 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)
$(CC) $(CFLAGS) $(DEFINES) $(SDL_CFLAGS) -c -o $@ $<
depend: $(SRCS)
- $(CC) -MM $(CFLAGS) $^ 1>.depend
+ $(CC) -MM $(CFLAGS) $(DEFINES) $^ 1>.depend
# libqemu