/[qemu]/qemu/Makefile.target
ViewVC logotype

Diff of /qemu/Makefile.target

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.52 by bellard, Sun Dec 19 23:33:47 2004 UTC revision 1.53 by bellard, Mon Jan 3 23:38:39 2005 UTC
# Line 1  Line 1 
1  include config.mak  include config.mak
2    
3  TARGET_PATH=$(SRC_PATH)/target-$(TARGET_ARCH)  TARGET_BASE_ARCH:=$(TARGET_ARCH)
4    ifeq ($(TARGET_ARCH), x86_64)
5    TARGET_BASE_ARCH:=i386
6    endif
7    TARGET_PATH=$(SRC_PATH)/target-$(TARGET_BASE_ARCH)
8  VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw:$(SRC_PATH)/audio  VPATH=$(SRC_PATH):$(TARGET_PATH):$(SRC_PATH)/hw:$(SRC_PATH)/audio
9  DEFINES=-I. -I$(TARGET_PATH) -I$(SRC_PATH)  DEFINES=-I. -I$(TARGET_PATH) -I$(SRC_PATH)
10  ifdef CONFIG_USER_ONLY  ifdef CONFIG_USER_ONLY
# Line 8  VPATH+=:$(SRC_PATH)/linux-user Line 12  VPATH+=:$(SRC_PATH)/linux-user
12  DEFINES+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH)  DEFINES+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH)
13  endif  endif
14  CFLAGS=-Wall -O2 -g -fno-strict-aliasing  CFLAGS=-Wall -O2 -g -fno-strict-aliasing
15    #CFLAGS+=-Werror
16  LDFLAGS=-g  LDFLAGS=-g
17  LIBS=  LIBS=
18  HELPER_CFLAGS=$(CFLAGS)  HELPER_CFLAGS=$(CFLAGS)
# Line 52  endif # ARCH != i386 Line 57  endif # ARCH != i386
57    
58  endif # TARGET_ARCH = i386  endif # TARGET_ARCH = i386
59    
60    ifeq ($(TARGET_ARCH), x86_64)
61    ifdef CONFIG_SOFTMMU
62    PROGS+=$(QEMU_SYSTEM)
63    endif
64    endif # TARGET_ARCH = x86_64
65    
66  ifeq ($(TARGET_ARCH), ppc)  ifeq ($(TARGET_ARCH), ppc)
67    
68  ifeq ($(ARCH), ppc)  ifeq ($(ARCH), ppc)
# Line 64  PROGS+=$(QEMU_SYSTEM) Line 75  PROGS+=$(QEMU_SYSTEM)
75  endif  endif
76  endif # ARCH = i386  endif # ARCH = i386
77    
78  ifeq ($(ARCH), amd64)  ifeq ($(ARCH), x86_64)
79  ifdef CONFIG_SOFTMMU  ifdef CONFIG_SOFTMMU
80  PROGS+=$(QEMU_SYSTEM)  PROGS+=$(QEMU_SYSTEM)
81  endif  endif
82  endif # ARCH = amd64  endif # ARCH = x86_64
83    
84  endif # TARGET_ARCH = ppc  endif # TARGET_ARCH = ppc
85    
# Line 84  PROGS+=$(QEMU_SYSTEM) Line 95  PROGS+=$(QEMU_SYSTEM)
95  endif  endif
96  endif # ARCH = i386  endif # ARCH = i386
97    
98  ifeq ($(ARCH), amd64)  ifeq ($(ARCH), x86_64)
99  ifdef CONFIG_SOFTMMU  ifdef CONFIG_SOFTMMU
100  PROGS+=$(QEMU_SYSTEM)  PROGS+=$(QEMU_SYSTEM)
101  endif  endif
102  endif # ARCH = amd64  endif # ARCH = x86_64
103    
104  endif # TARGET_ARCH = sparc  endif # TARGET_ARCH = sparc
105  endif # !CONFIG_USER_ONLY  endif # !CONFIG_USER_ONLY
# Line 122  LDFLAGS+=-Wl,-shared Line 133  LDFLAGS+=-Wl,-shared
133  endif  endif
134  endif  endif
135    
136  ifeq ($(ARCH),amd64)  ifeq ($(ARCH),x86_64)
137  OP_CFLAGS=$(CFLAGS) -falign-functions=0  OP_CFLAGS=$(CFLAGS) -falign-functions=0
138  LDFLAGS+=-Wl,-T,$(SRC_PATH)/amd64.ld  LDFLAGS+=-Wl,-T,$(SRC_PATH)/x86_64.ld
139  endif  endif
140    
141  ifeq ($(ARCH),ppc)  ifeq ($(ARCH),ppc)
# Line 226  LIBOBJS+=translate-copy.o Line 237  LIBOBJS+=translate-copy.o
237  endif  endif
238  endif  endif
239    
240    ifeq ($(TARGET_ARCH), x86_64)
241    LIBOBJS+=helper.o helper2.o
242    endif
243    
244  ifeq ($(TARGET_ARCH), ppc)  ifeq ($(TARGET_ARCH), ppc)
245  LIBOBJS+= op_helper.o helper.o  LIBOBJS+= op_helper.o helper.o
246  endif  endif
# Line 239  LIBOBJS+=disas.o Line 254  LIBOBJS+=disas.o
254  ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386)  ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386)
255  USE_I386_DIS=y  USE_I386_DIS=y
256  endif  endif
257  ifeq ($(findstring amd64, $(TARGET_ARCH) $(ARCH)),amd64)  ifeq ($(findstring x86_64, $(TARGET_ARCH) $(ARCH)),x86_64)
258  USE_I386_DIS=y  USE_I386_DIS=y
259  endif  endif
260  ifdef USE_I386_DIS  ifdef USE_I386_DIS
# Line 297  audio.o fmodaudio.o: DEFINES := -I$(CONF Line 312  audio.o fmodaudio.o: DEFINES := -I$(CONF
312  LIBS += $(CONFIG_FMOD_LIB)  LIBS += $(CONFIG_FMOD_LIB)
313  endif  endif
314    
315  ifeq ($(TARGET_ARCH), i386)  ifeq ($(TARGET_BASE_ARCH), i386)
316  # Hardware support  # Hardware support
317  VL_OBJS+= ide.o ne2000.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)  VL_OBJS+= ide.o ne2000.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)
318  VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o  VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o
319  VL_OBJS+= cirrus_vga.o mixeng.o  VL_OBJS+= cirrus_vga.o mixeng.o apic.o
320  endif  endif
321  ifeq ($(TARGET_ARCH), ppc)  ifeq ($(TARGET_ARCH), ppc)
322  VL_OBJS+= ppc.o ide.o ne2000.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)  VL_OBJS+= ppc.o ide.o ne2000.o pckbd.o vga.o $(SOUND_HW) dma.o $(AUDIODRV)
# Line 376  op.o: op.c Line 391  op.o: op.c
391  helper.o: helper.c  helper.o: helper.c
392          $(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $<          $(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $<
393    
394  ifeq ($(TARGET_ARCH), i386)  ifeq ($(TARGET_BASE_ARCH), i386)
395  op.o: op.c opreg_template.h ops_template.h ops_template_mem.h ops_mem.h  op.o: op.c opreg_template.h ops_template.h ops_template_mem.h ops_mem.h
396  endif  endif
397    

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26