/[qemu]/qemu/Makefile
ViewVC logotype

Diff of /qemu/Makefile

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

revision 1.25 by bellard, Sat May 10 12:37:12 2003 UTC revision 1.26 by bellard, Sun May 11 12:25:45 2003 UTC
# Line 30  LDFLAGS+=-Wl,-T,s390.ld Line 30  LDFLAGS+=-Wl,-T,s390.ld
30  endif  endif
31    
32  ifeq ($(ARCH),alpha)  ifeq ($(ARCH),alpha)
33    # -msmall-data is not used because we want two-instruction relocations
34    # for the constant constructions
35    OP_CFLAGS=-Wall -O2 -g
36  # Ensure there's only a single GP  # Ensure there's only a single GP
37  CFLAGS += -msmall-data -msmall-text  CFLAGS += -msmall-data -msmall-text
 # FIXME Too lazy to deal with gprelhigh/gprellow for now, inhibit them  
 OP_CFLAGS=$(CFLAGS) -mno-explicit-relocs  
38  LDFLAGS+=-Wl,-T,alpha.ld  LDFLAGS+=-Wl,-T,alpha.ld
39  endif  endif
40    
# Line 63  OBJS+= libqemu.a Line 64  OBJS+= libqemu.a
64    
65  LIBOBJS+=thunk.o translate-i386.o op-i386.o exec-i386.o  LIBOBJS+=thunk.o translate-i386.o op-i386.o exec-i386.o
66  # NOTE: the disassembler code is only needed for debugging  # NOTE: the disassembler code is only needed for debugging
67  LIBOBJS+=disas.o ppc-dis.o i386-dis.o dis-buf.o  LIBOBJS+=disas.o ppc-dis.o i386-dis.o alpha-dis.o dis-buf.o
68    
69  ifeq ($(ARCH),ia64)  ifeq ($(ARCH),ia64)
70  OBJS += ia64-syscall.o  OBJS += ia64-syscall.o
# Line 73  all: qemu qemu-doc.html Line 74  all: qemu qemu-doc.html
74    
75  qemu: $(OBJS)  qemu: $(OBJS)
76          $(CC) $(LDFLAGS) -o $@ $^  $(LIBS)          $(CC) $(LDFLAGS) -o $@ $^  $(LIBS)
77    ifeq ($(ARCH),alpha)
78    # Mark as 32 bit binary, i. e. it will be mapped into the low 31 bit of
79    # the address space (31 bit so sign extending doesn't matter)
80            echo -ne '\001\000\000\000' | dd of=qemu bs=1 seek=48 count=4 conv=notrunc
81    endif
82    
83  depend: $(SRCS)  depend: $(SRCS)
84          $(CC) -MM $(CFLAGS) $^ 1>.depend          $(CC) -MM $(CFLAGS) $^ 1>.depend

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

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