aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-05-11 12:25:45 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-05-11 12:25:45 +0000
commita993ba85cf50932cca8d697e2d45145fb21afafe (patch)
treeca2dc079d63db82e58ca492d27cd3ab2a23063cf /Makefile
parent226c91327d1eebf9a70b670830c181a46c6c454b (diff)
alpha disas (Falk Hueffner)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@155 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c640bf8ebc..db25e80991 100644
--- a/Makefile
+++ b/Makefile
@@ -30,10 +30,11 @@ LDFLAGS+=-Wl,-T,s390.ld
endif
ifeq ($(ARCH),alpha)
+# -msmall-data is not used because we want two-instruction relocations
+# for the constant constructions
+OP_CFLAGS=-Wall -O2 -g
# Ensure there's only a single GP
CFLAGS += -msmall-data -msmall-text
-# FIXME Too lazy to deal with gprelhigh/gprellow for now, inhibit them
-OP_CFLAGS=$(CFLAGS) -mno-explicit-relocs
LDFLAGS+=-Wl,-T,alpha.ld
endif
@@ -63,7 +64,7 @@ OBJS+= libqemu.a
LIBOBJS+=thunk.o translate-i386.o op-i386.o exec-i386.o
# NOTE: the disassembler code is only needed for debugging
-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
ifeq ($(ARCH),ia64)
OBJS += ia64-syscall.o
@@ -73,6 +74,11 @@ all: qemu qemu-doc.html
qemu: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+ifeq ($(ARCH),alpha)
+# Mark as 32 bit binary, i. e. it will be mapped into the low 31 bit of
+# the address space (31 bit so sign extending doesn't matter)
+ echo -ne '\001\000\000\000' | dd of=qemu bs=1 seek=48 count=4 conv=notrunc
+endif
depend: $(SRCS)
$(CC) -MM $(CFLAGS) $^ 1>.depend