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 |
|
|
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 |
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 |