Annotation of qemu/Makefile.target, revision 1.1.1.8

1.1       root        1: include config.mak
1.1.1.7   root        2: include $(SRC_PATH)/rules.mak
1.1       root        3: 
                      4: TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
1.1.1.6   root        5: VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw
1.1.1.7   root        6: CPPFLAGS=-I. -I.. -I$(TARGET_PATH) -I$(SRC_PATH) -MMD -MT $@ -MP -DNEED_CPU_H
1.1       root        7: #CFLAGS+=-Werror
                      8: LIBS=
1.1.1.7   root        9: 
                     10: ifdef CONFIG_USER_ONLY
                     11: # user emulator name
                     12: QEMU_PROG=qemu-$(TARGET_ARCH2)
                     13: else
1.1       root       14: # system emulator name
                     15: ifeq ($(TARGET_ARCH), i386)
1.1.1.7   root       16: QEMU_PROG=qemu$(EXESUF)
1.1       root       17: else
1.1.1.7   root       18: QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
1.1       root       19: endif
                     20: endif
                     21: 
1.1.1.7   root       22: PROGS=$(QEMU_PROG)
                     23: 
                     24: # cc-option
                     25: # Usage: CFLAGS+=$(call cc-option, $(CFLAGS), -falign-functions=0, -malign-functions=0)
                     26: 
                     27: cc-option = $(shell if $(CC) $(1) $(2) -S -o /dev/null -xc /dev/null \
                     28:               > /dev/null 2>&1; then echo "$(2)"; else echo "$(3)"; fi ;)
                     29: 
                     30: HELPER_CFLAGS=
                     31: 
                     32: ifeq ($(ARCH),i386)
                     33: HELPER_CFLAGS+=-fomit-frame-pointer
                     34: endif
                     35: 
1.1.1.8 ! root       36: ifeq ($(subst ppc64,ppc,$(ARCH))$(TARGET_BASE_ARCH),ppcppc)
        !            37: translate.o: CFLAGS := $(CFLAGS) $(call cc-option, $(CFLAGS), -fno-unit-at-a-time,)
1.1.1.7   root       38: endif
                     39: 
1.1.1.8 ! root       40: ifeq ($(ARCH),sparc)
        !            41:   ifneq ($(CONFIG_SOLARIS),y)
        !            42:     HELPER_CFLAGS+=-ffixed-i0
1.1.1.7   root       43:   endif
                     44: endif
                     45: 
                     46: ifeq ($(ARCH),alpha)
                     47: # Ensure there's only a single GP
                     48: CFLAGS+=-msmall-data
                     49: endif
                     50: 
                     51: ifeq ($(ARCH),ia64)
                     52: CFLAGS+=-mno-sdata
                     53: endif
                     54: 
                     55: CPPFLAGS+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
1.1.1.8 ! root       56: CPPFLAGS+=-U_FORTIFY_SOURCE
1.1.1.7   root       57: LIBS+=-lm
                     58: ifdef CONFIG_WIN32
                     59: LIBS+=-lwinmm -lws2_32 -liphlpapi
                     60: endif
                     61: ifdef CONFIG_SOLARIS
                     62: LIBS+=-lsocket -lnsl -lresolv
                     63: ifdef NEEDS_LIBSUNMATH
                     64: LIBS+=-lsunmath
                     65: LDFLAGS+=-L/opt/SUNWspro/prod/lib -R/opt/SUNWspro/prod/lib
                     66: CFLAGS+=-I/opt/SUNWspro/prod/include/cc
                     67: endif
                     68: endif
                     69: 
                     70: kvm.o: CFLAGS+=$(KVM_CFLAGS)
                     71: kvm-all.o: CFLAGS+=$(KVM_CFLAGS)
                     72: 
                     73: all: $(PROGS)
1.1.1.8 ! root       74: # Dummy command so that make thinks it has done something
        !            75:        @true
1.1.1.7   root       76: 
                     77: #########################################################
                     78: # cpu emulator library
1.1.1.8 ! root       79: libobj-y = exec.o translate-all.o cpu-exec.o translate.o host-utils.o
        !            80: libobj-$(CONFIG_KQEMU) += kqemu.o
1.1.1.7   root       81: # TCG code generator
1.1.1.8 ! root       82: libobj-y += tcg/tcg.o tcg/tcg-runtime.o
1.1.1.7   root       83: CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
                     84: ifeq ($(ARCH),sparc64)
                     85: CPPFLAGS+=-I$(SRC_PATH)/tcg/sparc
                     86: endif
                     87: ifdef CONFIG_SOFTFLOAT
1.1.1.8 ! root       88: libobj-y += fpu/softfloat.o
1.1       root       89: else
1.1.1.8 ! root       90: libobj-y += fpu/softfloat-native.o
1.1       root       91: endif
1.1.1.7   root       92: CPPFLAGS+=-I$(SRC_PATH)/fpu
1.1.1.8 ! root       93: libobj-y += op_helper.o helper.o
1.1       root       94: 
1.1.1.7   root       95: ifeq ($(TARGET_BASE_ARCH), arm)
1.1.1.8 ! root       96: libobj-y += neon_helper.o iwmmxt_helper.o
1.1       root       97: endif
                     98: 
1.1.1.7   root       99: ifeq ($(TARGET_BASE_ARCH), alpha)
1.1.1.8 ! root      100: libobj-y += alpha_palcode.o
1.1.1.7   root      101: endif
1.1.1.6   root      102: 
1.1.1.7   root      103: ifeq ($(TARGET_BASE_ARCH), cris)
1.1.1.8 ! root      104: libobj-y += cris-dis.o
1.1.1.7   root      105: 
                    106: ifndef CONFIG_USER_ONLY
1.1.1.8 ! root      107: libobj-y += mmu.o
1.1.1.7   root      108: endif
                    109: endif
                    110: 
                    111: # NOTE: the disassembler code is only needed for debugging
1.1.1.8 ! root      112: libobj-y += disas.o
1.1.1.7   root      113: ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386)
                    114: USE_I386_DIS=y
                    115: endif
                    116: ifeq ($(findstring x86_64, $(TARGET_ARCH) $(ARCH)),x86_64)
                    117: USE_I386_DIS=y
                    118: endif
1.1.1.8 ! root      119: libobj-$(USE_I386_DIS) += i386-dis.o
1.1.1.7   root      120: ifeq ($(findstring alpha, $(TARGET_ARCH) $(ARCH)),alpha)
1.1.1.8 ! root      121: libobj-y += alpha-dis.o
1.1.1.7   root      122: endif
                    123: ifeq ($(findstring ppc, $(TARGET_BASE_ARCH) $(ARCH)),ppc)
1.1.1.8 ! root      124: libobj-y += ppc-dis.o
        !           125: endif
        !           126: ifeq ($(findstring microblaze, $(TARGET_BASE_ARCH) $(ARCH)),microblaze)
        !           127: libobj-y += microblaze-dis.o
        !           128: ifndef CONFIG_USER_ONLY
        !           129: libobj-y += mmu.o
        !           130: endif
1.1.1.7   root      131: endif
                    132: ifeq ($(findstring mips, $(TARGET_BASE_ARCH) $(ARCH)),mips)
1.1.1.8 ! root      133: libobj-y += mips-dis.o
1.1.1.7   root      134: endif
                    135: ifeq ($(findstring sparc, $(TARGET_BASE_ARCH) $(ARCH)),sparc)
1.1.1.8 ! root      136: libobj-y += sparc-dis.o
1.1.1.7   root      137: endif
                    138: ifeq ($(findstring arm, $(TARGET_ARCH) $(ARCH)),arm)
1.1.1.8 ! root      139: libobj-y += arm-dis.o
1.1.1.7   root      140: endif
                    141: ifeq ($(findstring m68k, $(TARGET_ARCH) $(ARCH)),m68k)
1.1.1.8 ! root      142: libobj-y += m68k-dis.o
1.1.1.7   root      143: endif
                    144: ifeq ($(findstring sh4, $(TARGET_ARCH) $(ARCH)),sh4)
1.1.1.8 ! root      145: libobj-y += sh4-dis.o
1.1.1.7   root      146: endif
                    147: ifeq ($(findstring hppa, $(TARGET_BASE_ARCH) $(ARCH)),hppa)
1.1.1.8 ! root      148: libobj-y += hppa-dis.o
1.1.1.7   root      149: endif
                    150: ifeq ($(findstring s390, $(TARGET_ARCH) $(ARCH)),s390)
1.1.1.8 ! root      151: libobj-y += s390-dis.o
1.1.1.7   root      152: endif
1.1.1.6   root      153: 
1.1.1.7   root      154: # libqemu
                    155: 
1.1.1.8 ! root      156: libqemu.a: $(libobj-y)
1.1.1.7   root      157: 
                    158: translate.o: translate.c cpu.h
                    159: 
                    160: translate-all.o: translate-all.c cpu.h
                    161: 
                    162: tcg/tcg.o: cpu.h
                    163: 
                    164: # HELPER_CFLAGS is used for all the code compiled with static register
                    165: # variables
1.1.1.8 ! root      166: op_helper.o: CFLAGS += $(HELPER_CFLAGS)
1.1.1.7   root      167: 
                    168: cpu-exec.o: CFLAGS += $(HELPER_CFLAGS)
                    169: 
                    170: #########################################################
                    171: # Linux user emulator target
1.1.1.6   root      172: 
1.1.1.7   root      173: ifdef CONFIG_LINUX_USER
                    174: 
                    175: VPATH+=:$(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
                    176: CPPFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
                    177: 
                    178: ifdef CONFIG_STATIC
                    179: LDFLAGS+=-static
                    180: endif
1.1.1.5   root      181: 
1.1       root      182: ifeq ($(ARCH),i386)
                    183: ifdef TARGET_GPROF
                    184: USE_I386_LD=y
                    185: endif
                    186: ifdef CONFIG_STATIC
                    187: USE_I386_LD=y
                    188: endif
                    189: ifdef USE_I386_LD
1.1.1.7   root      190: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1       root      191: else
                    192: # WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object
                    193: # that the kernel ELF loader considers as an executable. I think this
                    194: # is the simplest way to make it self virtualizable!
1.1.1.7   root      195: LDFLAGS+=-Wl,-shared
1.1       root      196: endif
                    197: endif
                    198: 
                    199: ifeq ($(ARCH),x86_64)
1.1.1.7   root      200: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1       root      201: endif
                    202: 
                    203: ifeq ($(ARCH),ppc)
1.1.1.7   root      204: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
                    205: endif
                    206: 
                    207: ifeq ($(ARCH),ppc64)
                    208: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1.1.5   root      209: endif
1.1       root      210: 
                    211: ifeq ($(ARCH),s390)
1.1.1.7   root      212: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1       root      213: endif
                    214: 
                    215: ifeq ($(ARCH),sparc)
1.1.1.7   root      216: # -static is used to avoid g1/g3 usage by the dynamic linker   
                    217: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld -static
1.1.1.4   root      218: endif
1.1       root      219: 
                    220: ifeq ($(ARCH),sparc64)
1.1.1.7   root      221: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1       root      222: endif
                    223: 
                    224: ifeq ($(ARCH),alpha)
1.1.1.7   root      225: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1       root      226: endif
                    227: 
                    228: ifeq ($(ARCH),ia64)
1.1.1.7   root      229: LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1       root      230: endif
                    231: 
                    232: ifeq ($(ARCH),arm)
1.1.1.7   root      233: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1       root      234: endif
                    235: 
                    236: ifeq ($(ARCH),m68k)
1.1.1.7   root      237: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1.1.5   root      238: endif
                    239: 
                    240: ifeq ($(ARCH),mips)
1.1.1.6   root      241: ifeq ($(WORDS_BIGENDIAN),yes)
1.1.1.7   root      242: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1.1.6   root      243: else
1.1.1.7   root      244: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
1.1.1.6   root      245: endif
1.1       root      246: endif
                    247: 
1.1.1.6   root      248: ifeq ($(ARCH),mips64)
                    249: ifeq ($(WORDS_BIGENDIAN),yes)
1.1.1.7   root      250: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1.1.6   root      251: else
1.1.1.7   root      252: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
1.1.1.6   root      253: endif
1.1.1.3   root      254: endif
1.1       root      255: 
                    256: # profiling code
                    257: ifdef TARGET_GPROF
1.1.1.7   root      258: LDFLAGS+=-p
                    259: CFLAGS+=-p
1.1       root      260: endif
                    261: 
1.1.1.8 ! root      262: obj-y = main.o syscall.o strace.o mmap.o signal.o path.o thunk.o \
        !           263:       elfload.o linuxload.o uaccess.o envlist.o gdbstub.o gdbstub-xml.o \
        !           264:       ioport-user.o
        !           265: obj-$(TARGET_HAS_BFLT) += flatload.o
        !           266: 
1.1.1.6   root      267: ifdef TARGET_HAS_ELFLOAD32
                    268: elfload32.o: elfload.c
                    269: endif
1.1.1.8 ! root      270: obj-$(TARGET_HAS_ELFLOAD32) += elfload32.o
1.1.1.4   root      271: 
1.1       root      272: ifeq ($(TARGET_ARCH), i386)
1.1.1.8 ! root      273: obj-y += vm86.o
1.1.1.5   root      274: endif
                    275: 
1.1.1.8 ! root      276: nwfpe-obj-y := fpa11.o fpa11_cpdo.o fpa11_cpdt.o fpa11_cprt.o fpopcode.o
        !           277: nwfpe-obj-y += single_cpdo.o double_cpdo.o extended_cpdo.o
        !           278: obj-arm-y +=  $(addprefix nwfpe/, $(nwfpe-obj-y))
        !           279: obj-arm-y += arm-semi.o
1.1.1.5   root      280: 
1.1.1.8 ! root      281: obj-m68k-y += m68k-sim.o m68k-semi.o
1.1       root      282: 
1.1.1.7   root      283: # Note: this is a workaround. The real fix is to avoid compiling
                    284: # cpu_signal_handler() in cpu-exec.c.
                    285: signal.o: CFLAGS += $(HELPER_CFLAGS)
1.1       root      286: 
1.1.1.8 ! root      287: ARLIBS=../libqemu_user.a libqemu.a
1.1.1.7   root      288: endif #CONFIG_LINUX_USER
1.1       root      289: 
1.1.1.8 ! root      290: LIBS+= $(PTHREADLIBS)
        !           291: LIBS+= $(CLOCKLIBS)
        !           292: 
1.1.1.7   root      293: #########################################################
                    294: # Darwin user emulator target
1.1       root      295: 
1.1.1.7   root      296: ifdef CONFIG_DARWIN_USER
1.1       root      297: 
1.1.1.7   root      298: VPATH+=:$(SRC_PATH)/darwin-user
                    299: CPPFLAGS+=-I$(SRC_PATH)/darwin-user -I$(SRC_PATH)/darwin-user/$(TARGET_ARCH)
1.1       root      300: 
1.1.1.7   root      301: # Leave some space for the regular program loading zone
                    302: LDFLAGS+=-Wl,-segaddr,__STD_PROG_ZONE,0x1000 -image_base 0x0e000000
1.1       root      303: 
1.1.1.7   root      304: LIBS+=-lmx
                    305: 
1.1.1.8 ! root      306: obj-y = main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o \
        !           307:         gdbstub.o gdbstub-xml.o ioport-user.o
1.1.1.3   root      308: 
1.1.1.7   root      309: # Note: this is a workaround. The real fix is to avoid compiling
                    310: # cpu_signal_handler() in cpu-exec.c.
                    311: signal.o: CFLAGS += $(HELPER_CFLAGS)
                    312: 
1.1.1.8 ! root      313: ARLIBS=libqemu.a
1.1.1.7   root      314: 
                    315: endif #CONFIG_DARWIN_USER
                    316: 
                    317: #########################################################
                    318: # BSD user emulator target
                    319: 
                    320: ifdef CONFIG_BSD_USER
                    321: 
                    322: VPATH+=:$(SRC_PATH)/bsd-user
                    323: CPPFLAGS+=-I$(SRC_PATH)/bsd-user -I$(SRC_PATH)/bsd-user/$(TARGET_ARCH)
                    324: 
                    325: ifdef CONFIG_STATIC
                    326: LDFLAGS+=-static
1.1.1.6   root      327: endif
                    328: 
1.1.1.7   root      329: ifeq ($(ARCH),i386)
                    330: ifdef TARGET_GPROF
                    331: USE_I386_LD=y
                    332: endif
                    333: ifdef CONFIG_STATIC
                    334: USE_I386_LD=y
                    335: endif
                    336: ifdef USE_I386_LD
                    337: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
                    338: else
                    339: # WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object
                    340: # that the kernel ELF loader considers as an executable. I think this
                    341: # is the simplest way to make it self virtualizable!
                    342: LDFLAGS+=-Wl,-shared
                    343: endif
1.1.1.6   root      344: endif
                    345: 
1.1.1.7   root      346: ifeq ($(ARCH),x86_64)
                    347: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
                    348: endif
1.1.1.6   root      349: 
1.1.1.7   root      350: ifeq ($(ARCH),ppc)
                    351: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1.1.6   root      352: endif
1.1.1.7   root      353: 
                    354: ifeq ($(ARCH),ppc64)
                    355: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1.1.5   root      356: endif
                    357: 
1.1.1.7   root      358: ifeq ($(ARCH),s390)
                    359: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1       root      360: endif
1.1.1.7   root      361: 
                    362: ifeq ($(ARCH),sparc)
                    363: # -static is used to avoid g1/g3 usage by the dynamic linker
                    364: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld -static
1.1       root      365: endif
1.1.1.7   root      366: 
                    367: ifeq ($(ARCH),sparc64)
                    368: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1       root      369: endif
1.1.1.7   root      370: 
                    371: ifeq ($(ARCH),alpha)
                    372: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1       root      373: endif
1.1.1.7   root      374: 
                    375: ifeq ($(ARCH),ia64)
                    376: LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1       root      377: endif
1.1.1.7   root      378: 
                    379: ifeq ($(ARCH),arm)
                    380: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1       root      381: endif
1.1.1.7   root      382: 
                    383: ifeq ($(ARCH),m68k)
                    384: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
1.1       root      385: endif
1.1.1.7   root      386: 
                    387: ifeq ($(ARCH),mips)
                    388: ifeq ($(WORDS_BIGENDIAN),yes)
                    389: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
                    390: else
                    391: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
1.1       root      392: endif
1.1.1.2   root      393: endif
1.1.1.7   root      394: 
                    395: ifeq ($(ARCH),mips64)
                    396: ifeq ($(WORDS_BIGENDIAN),yes)
                    397: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH).ld
                    398: else
                    399: LDFLAGS+=-Wl,-T,$(SRC_PATH)/$(ARCH)el.ld
1.1       root      400: endif
1.1.1.6   root      401: endif
1.1.1.3   root      402: 
1.1.1.8 ! root      403: obj-y = main.o bsdload.o elfload.o mmap.o path.o signal.o strace.o syscall.o \
        !           404:         gdbstub.o gdbstub-xml.o ioport-user.o
        !           405: obj-y += uaccess.o
1.1       root      406: 
1.1.1.7   root      407: # Note: this is a workaround. The real fix is to avoid compiling
                    408: # cpu_signal_handler() in cpu-exec.c.
                    409: signal.o: CFLAGS += $(HELPER_CFLAGS)
1.1       root      410: 
1.1.1.8 ! root      411: ARLIBS=libqemu.a ../libqemu_user.a
1.1.1.7   root      412: 
                    413: endif #CONFIG_BSD_USER
1.1       root      414: 
1.1.1.7   root      415: #########################################################
                    416: # System emulator target
                    417: ifndef CONFIG_USER_ONLY
                    418: 
1.1.1.8 ! root      419: obj-y = vl.o osdep.o monitor.o pci.o loader.o isa_mmio.o machine.o \
        !           420:         gdbstub.o gdbstub-xml.o msix.o ioport.o
1.1.1.7   root      421: # virtio has to be here due to weird dependency between PCI and virtio-net.
                    422: # need to fix this properly
1.1.1.8 ! root      423: obj-y += virtio-blk.o virtio-balloon.o virtio-net.o virtio-console.o
        !           424: obj-$(CONFIG_KVM) += kvm.o kvm-all.o
1.1       root      425: 
1.1.1.7   root      426: LIBS+=-lz
1.1.1.2   root      427: ifdef CONFIG_ALSA
                    428: LIBS += -lasound
                    429: endif
1.1.1.7   root      430: ifdef CONFIG_ESD
                    431: LIBS += -lesd
                    432: endif
                    433: ifdef CONFIG_PA
                    434: LIBS += -lpulse-simple
                    435: endif
1.1.1.2   root      436: ifdef CONFIG_DSOUND
                    437: LIBS += -lole32 -ldxguid
1.1       root      438: endif
                    439: ifdef CONFIG_FMOD
                    440: LIBS += $(CONFIG_FMOD_LIB)
                    441: endif
1.1.1.7   root      442: ifdef CONFIG_OSS
                    443: LIBS += $(CONFIG_OSS_LIB)
                    444: endif
1.1.1.6   root      445: 
1.1.1.8 ! root      446: sound-obj-y =
        !           447: sound-obj-$(CONFIG_SB16) += sb16.o
        !           448: sound-obj-$(CONFIG_ES1370) += es1370.o
        !           449: sound-obj-$(CONFIG_AC97) += ac97.o
        !           450: sound-obj-$(CONFIG_ADLIB) += fmopl.o adlib.o
        !           451: sound-obj-$(CONFIG_GUS) += gus.o gusemu_hal.o gusemu_mixer.o
        !           452: sound-obj-$(CONFIG_CS4231A) += cs4231a.o
        !           453: 
1.1.1.2   root      454: ifdef CONFIG_ADLIB
1.1.1.7   root      455: adlib.o fmopl.o: CFLAGS := ${CFLAGS} -DBUILD_Y8950=0
                    456: endif
1.1.1.6   root      457: 
                    458: ifdef CONFIG_VNC_TLS
                    459: CPPFLAGS += $(CONFIG_VNC_TLS_CFLAGS)
                    460: LIBS += $(CONFIG_VNC_TLS_LIBS)
                    461: endif
1.1.1.4   root      462: 
1.1.1.8 ! root      463: ifdef CONFIG_VNC_SASL
        !           464: CPPFLAGS += $(CONFIG_VNC_SASL_CFLAGS)
        !           465: LIBS += $(CONFIG_VNC_SASL_LIBS)
        !           466: endif
        !           467: 
1.1.1.7   root      468: ifdef CONFIG_BLUEZ
                    469: LIBS += $(CONFIG_BLUEZ_LIBS)
                    470: endif
                    471: 
1.1.1.8 ! root      472: # xen backend driver support
        !           473: obj-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o
        !           474: ifeq ($(CONFIG_XEN), y)
        !           475:   LIBS += $(XEN_LIBS)
        !           476: endif
1.1.1.2   root      477: 
                    478: # USB layer
1.1.1.8 ! root      479: obj-y += usb-ohci.o
1.1.1.3   root      480: 
                    481: # PCI network cards
1.1.1.8 ! root      482: obj-y += eepro100.o
        !           483: obj-y += ne2000.o
        !           484: obj-y += pcnet.o
        !           485: obj-y += rtl8139.o
        !           486: obj-y += e1000.o
1.1.1.7   root      487: 
1.1.1.8 ! root      488: # Generic watchdog support and some watchdog devices
        !           489: obj-y += wdt_ib700.o wdt_i6300esb.o
1.1       root      490: 
                    491: # Hardware support
1.1.1.8 ! root      492: obj-i386-y = ide.o pckbd.o vga.o $(sound-obj-y) dma.o
        !           493: obj-i386-y += fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o
        !           494: obj-i386-y += cirrus_vga.o apic.o ioapic.o parallel.o acpi.o piix_pci.o
        !           495: obj-i386-y += usb-uhci.o vmmouse.o vmport.o vmware_vga.o hpet.o
        !           496: obj-i386-y += device-hotplug.o pci-hotplug.o smbios.o
        !           497: 
        !           498: ifeq ($(TARGET_BASE_ARCH), i386)
1.1.1.6   root      499: CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
1.1       root      500: endif
1.1.1.8 ! root      501: 
1.1.1.6   root      502: # shared objects
1.1.1.8 ! root      503: obj-ppc-y = ppc.o ide.o vga.o $(sound-obj-y) dma.o openpic.o
1.1.1.6   root      504: # PREP target
1.1.1.8 ! root      505: obj-ppc-y += pckbd.o serial.o i8259.o i8254.o fdc.o mc146818rtc.o
        !           506: obj-ppc-y += prep_pci.o ppc_prep.o
1.1.1.6   root      507: # Mac shared devices
1.1.1.8 ! root      508: obj-ppc-y += macio.o cuda.o adb.o mac_nvram.o mac_dbdma.o
1.1.1.6   root      509: # OldWorld PowerMac
1.1.1.8 ! root      510: obj-ppc-y += heathrow_pic.o grackle_pci.o ppc_oldworld.o
1.1.1.6   root      511: # NewWorld PowerMac
1.1.1.8 ! root      512: obj-ppc-y += unin_pci.o ppc_newworld.o
1.1.1.6   root      513: # PowerPC 4xx boards
1.1.1.8 ! root      514: obj-ppc-y += pflash_cfi02.o ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
        !           515: obj-ppc-y += ppc440.o ppc440_bamboo.o
1.1.1.7   root      516: # PowerPC E500 boards
1.1.1.8 ! root      517: obj-ppc-y += ppce500_pci.o ppce500_mpc8544ds.o
        !           518: obj-ppc-$(CONFIG_KVM) += kvm_ppc.o
        !           519: 
        !           520: ifeq ($(TARGET_BASE_ARCH), ppc)
        !           521: CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
        !           522: endif
        !           523: 
1.1.1.7   root      524: ifdef FDT_LIBS
1.1.1.8 ! root      525: obj-ppc-y += device_tree.o
1.1.1.7   root      526: LIBS+= $(FDT_LIBS)
                    527: endif
1.1.1.8 ! root      528: 
        !           529: obj-mips-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
        !           530: obj-mips-y += mips_timer.o mips_int.o dma.o vga.o serial.o i8254.o i8259.o rc4030.o
        !           531: obj-mips-y += g364fb.o jazz_led.o dp8393x.o
        !           532: obj-mips-y += ide.o gt64xxx.o pckbd.o fdc.o mc146818rtc.o usb-uhci.o acpi.o ds1225y.o
        !           533: obj-mips-y += piix_pci.o parallel.o cirrus_vga.o pcspk.o $(sound-obj-y)
        !           534: obj-mips-y += mipsnet.o
        !           535: obj-mips-y += pflash_cfi01.o
        !           536: obj-mips-y += vmware_vga.o
        !           537: 
1.1.1.6   root      538: ifeq ($(TARGET_BASE_ARCH), mips)
1.1.1.7   root      539: CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
1.1       root      540: endif
1.1.1.8 ! root      541: 
        !           542: obj-microblaze-y = petalogix_s3adsp1800_mmu.o
        !           543: 
        !           544: obj-microblaze-y += microblaze_pic_cpu.o
        !           545: obj-microblaze-y += xilinx_intc.o
        !           546: obj-microblaze-y += xilinx_timer.o
        !           547: obj-microblaze-y += xilinx_uartlite.o
        !           548: obj-microblaze-y += xilinx_ethlite.o
        !           549: 
        !           550: obj-microblaze-y += pflash_cfi02.o
        !           551: 
        !           552: ifdef FDT_LIBS
        !           553: obj-microblaze-y += device_tree.o
        !           554: LIBS+= $(FDT_LIBS)
        !           555: endif
        !           556: 
1.1.1.7   root      557: # Boards
1.1.1.8 ! root      558: obj-cris-y = cris_pic_cpu.o etraxfs.o axis_dev88.o
1.1.1.7   root      559: 
                    560: # IO blocks
1.1.1.8 ! root      561: obj-cris-y += etraxfs_dma.o
        !           562: obj-cris-y += etraxfs_pic.o
        !           563: obj-cris-y += etraxfs_eth.o
        !           564: obj-cris-y += etraxfs_timer.o
        !           565: obj-cris-y += etraxfs_ser.o
        !           566: 
        !           567: obj-cris-y += pflash_cfi02.o
1.1.1.7   root      568: 
1.1       root      569: ifeq ($(TARGET_ARCH), sparc64)
1.1.1.8 ! root      570: obj-sparc-y = sun4u.o ide.o pckbd.o vga.o apb_pci.o
        !           571: obj-sparc-y += fdc.o mc146818rtc.o serial.o
        !           572: obj-sparc-y += cirrus_vga.o parallel.o
        !           573: else
        !           574: obj-sparc-y = sun4m.o tcx.o iommu.o slavio_intctl.o
        !           575: obj-sparc-y += slavio_timer.o slavio_misc.o fdc.o sparc32_dma.o
        !           576: obj-sparc-y += cs4231.o eccmemctl.o sbi.o sun4c_intctl.o
        !           577: endif
        !           578: 
        !           579: obj-arm-y = integratorcp.o versatilepb.o smc91c111.o arm_pic.o arm_timer.o
        !           580: obj-arm-y += arm_boot.o pl011.o pl031.o pl050.o pl080.o pl110.o pl181.o pl190.o
        !           581: obj-arm-y += versatile_pci.o
        !           582: obj-arm-y += realview_gic.o realview.o arm_sysctl.o mpcore.o
        !           583: obj-arm-y += armv7m.o armv7m_nvic.o stellaris.o pl022.o stellaris_enet.o
        !           584: obj-arm-y += pl061.o
        !           585: obj-arm-y += arm-semi.o
        !           586: obj-arm-y += pxa2xx.o pxa2xx_pic.o pxa2xx_gpio.o pxa2xx_timer.o pxa2xx_dma.o
        !           587: obj-arm-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o
        !           588: obj-arm-y += pflash_cfi01.o gumstix.o
        !           589: obj-arm-y += zaurus.o ide.o serial.o spitz.o tosa.o tc6393xb.o
        !           590: obj-arm-y += omap1.o omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o
        !           591: obj-arm-y += omap2.o omap_dss.o soc_dma.o
        !           592: obj-arm-y += omap_sx1.o palm.o tsc210x.o
        !           593: obj-arm-y += nseries.o blizzard.o onenand.o vga.o cbus.o tusb6010.o usb-musb.o
        !           594: obj-arm-y += mst_fpga.o mainstone.o
        !           595: obj-arm-y += musicpal.o pflash_cfi02.o
        !           596: obj-arm-y += framebuffer.o
        !           597: obj-arm-y += syborg.o syborg_fb.o syborg_interrupt.o syborg_keyboard.o
        !           598: obj-arm-y += syborg_serial.o syborg_timer.o syborg_pointer.o syborg_rtc.o
        !           599: obj-arm-y += syborg_virtio.o
        !           600: 
1.1.1.2   root      601: ifeq ($(TARGET_BASE_ARCH), arm)
1.1.1.6   root      602: CPPFLAGS += -DHAS_AUDIO
1.1.1.3   root      603: endif
1.1.1.8 ! root      604: 
        !           605: obj-sh4-y = shix.o r2d.o sh7750.o sh7750_regnames.o tc58128.o
        !           606: obj-sh4-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o serial.o
        !           607: obj-sh4-y += ide.o
        !           608: 
        !           609: obj-m68k-y = an5206.o mcf5206.o mcf_uart.o mcf_intc.o mcf5208.o mcf_fec.o
        !           610: obj-m68k-y += m68k-semi.o dummy_m68k.o
        !           611: 
1.1       root      612: ifdef CONFIG_COCOA
1.1.1.2   root      613: COCOA_LIBS=-F/System/Library/Frameworks -framework Cocoa -framework IOKit
                    614: ifdef CONFIG_COREAUDIO
                    615: COCOA_LIBS+=-framework CoreAudio
                    616: endif
1.1       root      617: endif
                    618: ifdef CONFIG_SLIRP
1.1.1.5   root      619: CPPFLAGS+=-I$(SRC_PATH)/slirp
1.1       root      620: endif
                    621: 
                    622: # specific flags are needed for non soft mmu emulator
                    623: ifdef CONFIG_STATIC
1.1.1.7   root      624: LDFLAGS+=-static
1.1       root      625: endif
                    626: ifndef CONFIG_DARWIN
                    627: ifndef CONFIG_WIN32
1.1.1.3   root      628: ifndef CONFIG_SOLARIS
1.1.1.7   root      629: ifndef CONFIG_AIX
                    630: LIBS+=-lutil
                    631: endif
1.1       root      632: endif
                    633: endif
1.1.1.3   root      634: endif
1.1       root      635: ifdef TARGET_GPROF
1.1.1.7   root      636: vl.o: CFLAGS+=-p
                    637: LDFLAGS+=-p
1.1       root      638: endif
                    639: 
                    640: ifeq ($(ARCH),ia64)
1.1.1.7   root      641: LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld
1.1.1.4   root      642: endif
                    643: 
1.1.1.2   root      644: ifdef CONFIG_WIN32
                    645: SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole
                    646: endif
                    647: 
1.1.1.7   root      648: # profiling code
                    649: ifdef TARGET_GPROF
                    650: LDFLAGS+=-p
                    651: main.o: CFLAGS+=-p
                    652: endif
1.1       root      653: 
1.1.1.8 ! root      654: vl.o: CFLAGS+=$(SDL_CFLAGS)
1.1       root      655: 
1.1.1.8 ! root      656: vl.o: qemu-options.h
        !           657: 
        !           658: monitor.o: qemu-monitor.h
        !           659: 
        !           660: LIBS += $(SDL_LIBS) $(COCOA_LIBS) $(CURSES_LIBS) $(BRLAPI_LIBS) $(VDE_LIBS) $(CURL_LIBS)
        !           661: ARLIBS=../libqemu_common.a libqemu.a $(HWLIB)
1.1.1.2   root      662: 
1.1.1.7   root      663: endif # !CONFIG_USER_ONLY
1.1       root      664: 
1.1.1.8 ! root      665: $(QEMU_PROG): $(obj-y) $(obj-$(TARGET_BASE_ARCH)-y) $(ARLIBS)
        !           666:        $(call LINK,$(obj-y) $(obj-$(TARGET_BASE_ARCH)-y))
        !           667: 
        !           668: 
1.1.1.7   root      669: gdbstub-xml.c: $(TARGET_XML_FILES) feature_to_c.sh
                    670: ifeq ($(TARGET_XML_FILES),)
1.1.1.8 ! root      671:        $(call quiet-command,rm -f $@ && echo > $@,"  GEN   $(TARGET_DIR)$@")
1.1.1.5   root      672: else
1.1.1.8 ! root      673:        $(call quiet-command,rm -f $@ && $(SHELL) $(SRC_PATH)/feature_to_c.sh $@ $(TARGET_XML_FILES),"  GEN   $(TARGET_DIR)$@")
1.1.1.5   root      674: endif
                    675: 
1.1.1.8 ! root      676: qemu-options.h: $(SRC_PATH)/qemu-options.hx
        !           677:        $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@,"  GEN   $(TARGET_DIR)$@")
        !           678: 
        !           679: qemu-monitor.h: $(SRC_PATH)/qemu-monitor.hx
        !           680:        $(call quiet-command,sh $(SRC_PATH)/hxtool -h < $< > $@,"  GEN   $(TARGET_DIR)$@")
        !           681: 
1.1       root      682: clean:
1.1.1.7   root      683:        rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o
                    684:        rm -f *.d */*.d tcg/*.o
1.1.1.8 ! root      685:        rm -f qemu-options.h qemu-monitor.h gdbstub-xml.c
1.1       root      686: 
1.1.1.6   root      687: install: all
1.1       root      688: ifneq ($(PROGS),)
1.1.1.8 ! root      689:        $(INSTALL) -m 755 $(STRIP_OPT) $(PROGS) "$(DESTDIR)$(bindir)"
1.1       root      690: endif
                    691: 
1.1.1.6   root      692: # Include automatically generated dependency files
                    693: -include $(wildcard *.d */*.d)

unix.superglobalmegacorp.com