86 |
main.o: CFLAGS+=-p |
main.o: CFLAGS+=-p |
87 |
endif |
endif |
88 |
|
|
89 |
OBJS= elfload.o main.o syscall.o mmap.o signal.o vm86.o path.o |
OBJS= elfload.o main.o syscall.o mmap.o signal.o path.o |
90 |
|
ifeq ($(TARGET_ARCH), i386) |
91 |
|
OBJS+= vm86.o |
92 |
|
endif |
93 |
SRCS:= $(OBJS:.o=.c) |
SRCS:= $(OBJS:.o=.c) |
94 |
OBJS+= libqemu.a |
OBJS+= libqemu.a |
95 |
|
|
96 |
LIBOBJS+=thunk.o translate-i386.o op-i386.o helper-i386.o exec-i386.o exec.o |
# cpu emulator library |
97 |
|
LIBOBJS=thunk.o exec.o translate.o cpu-exec.o |
98 |
|
|
99 |
|
ifeq ($(TARGET_ARCH), i386) |
100 |
|
LIBOBJS+=translate-i386.o op-i386.o helper-i386.o |
101 |
|
endif |
102 |
|
ifeq ($(TARGET_ARCH), arm) |
103 |
|
LIBOBJS+=translate-arm.o op-arm.o |
104 |
|
endif |
105 |
|
|
106 |
# NOTE: the disassembler code is only needed for debugging |
# NOTE: the disassembler code is only needed for debugging |
107 |
LIBOBJS+=disas.o i386-dis.o |
LIBOBJS+=disas.o |
108 |
ifeq ($(ARCH),alpha) |
ifeq ($(findstring i386, $(TARGET_ARCH) $(ARCH)),i386) |
109 |
|
LIBOBJS+=i386-dis.o |
110 |
|
endif |
111 |
|
ifeq ($(findstring alpha, $(TARGET_ARCH) $(ARCH)),alpha) |
112 |
LIBOBJS+=alpha-dis.o |
LIBOBJS+=alpha-dis.o |
113 |
endif |
endif |
114 |
ifeq ($(ARCH),ppc) |
ifeq ($(findstring ppc, $(TARGET_ARCH) $(ARCH)),ppc) |
115 |
LIBOBJS+=ppc-dis.o |
LIBOBJS+=ppc-dis.o |
116 |
endif |
endif |
117 |
ifeq ($(ARCH),sparc) |
ifeq ($(findstring sparc, $(TARGET_ARCH) $(ARCH)),sparc) |
118 |
LIBOBJS+=sparc-dis.o |
LIBOBJS+=sparc-dis.o |
119 |
endif |
endif |
120 |
ifeq ($(ARCH),arm) |
ifeq ($(findstring arm, $(TARGET_ARCH) $(ARCH)),arm) |
121 |
LIBOBJS+=arm-dis.o |
LIBOBJS+=arm-dis.o |
122 |
endif |
endif |
123 |
|
|
147 |
dyngen: dyngen.c |
dyngen: dyngen.c |
148 |
$(HOST_CC) -O2 -Wall -g $< -o $@ |
$(HOST_CC) -O2 -Wall -g $< -o $@ |
149 |
|
|
150 |
translate-i386.o: translate-i386.c op-i386.h opc-i386.h cpu-i386.h |
translate-$(TARGET_ARCH).o: translate-$(TARGET_ARCH).c gen-op-$(TARGET_ARCH).h opc-$(TARGET_ARCH).h cpu-$(TARGET_ARCH).h |
151 |
|
|
152 |
op-i386.h: op-i386.o dyngen |
translate.o: translate.c op-$(TARGET_ARCH).h opc-$(TARGET_ARCH).h cpu-$(TARGET_ARCH).h |
153 |
|
|
154 |
|
op-$(TARGET_ARCH).h: op-$(TARGET_ARCH).o dyngen |
155 |
./dyngen -o $@ $< |
./dyngen -o $@ $< |
156 |
|
|
157 |
opc-i386.h: op-i386.o dyngen |
opc-$(TARGET_ARCH).h: op-$(TARGET_ARCH).o dyngen |
158 |
./dyngen -c -o $@ $< |
./dyngen -c -o $@ $< |
159 |
|
|
160 |
op-i386.o: op-i386.c opreg_template.h ops_template.h |
gen-op-$(TARGET_ARCH).h: op-$(TARGET_ARCH).o dyngen |
161 |
|
./dyngen -g -o $@ $< |
162 |
|
|
163 |
|
op-$(TARGET_ARCH).o: op-$(TARGET_ARCH).c |
164 |
$(CC) $(OP_CFLAGS) $(DEFINES) -c -o $@ $< |
$(CC) $(OP_CFLAGS) $(DEFINES) -c -o $@ $< |
165 |
|
|
166 |
helper-i386.o: helper-i386.c |
helper-$(TARGET_ARCH).o: helper-$(TARGET_ARCH).c |
167 |
$(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $< |
$(CC) $(HELPER_CFLAGS) $(DEFINES) -c -o $@ $< |
168 |
|
|
169 |
|
op-i386.o: op-i386.c opreg_template.h ops_template.h |
170 |
|
|
171 |
|
op-arm.o: op-arm.c op-arm-template.h |
172 |
|
|
173 |
%.o: %.c |
%.o: %.c |
174 |
$(CC) $(CFLAGS) $(DEFINES) -c -o $@ $< |
$(CC) $(CFLAGS) $(DEFINES) -c -o $@ $< |
175 |
|
|
196 |
|
|
197 |
FILES= \ |
FILES= \ |
198 |
README README.distrib COPYING COPYING.LIB TODO Changelog VERSION \ |
README README.distrib COPYING COPYING.LIB TODO Changelog VERSION \ |
199 |
dyngen.c dyngen.h ioctls.h ops_template.h op_string.h syscall_types.h\ |
configure \ |
200 |
Makefile elf.h thunk.c\ |
dyngen.c dyngen.h dyngen-exec.h ioctls.h syscall_types.h \ |
201 |
elfload.c main.c signal.c thunk.h exec.h\ |
Makefile elf.h elfload.c main.c signal.c qemu.h \ |
202 |
cpu-i386.h qemu.h op-i386.c helper-i386.c syscall-i386.h translate-i386.c\ |
syscall.c syscall_defs.h vm86.c path.c mmap.c \ |
203 |
syscall.c opreg_template.h syscall_defs.h vm86.c\ |
ppc.ld alpha.ld s390.ld sparc.ld arm.ld\ |
204 |
dis-asm.h disas.c disas.h alpha-dis.c ppc-dis.c i386-dis.c sparc-dis.c arm-dis.c\ |
thunk.c cpu-exec.c translate.c cpu-all.h thunk.h exec.h\ |
205 |
ppc.ld alpha.ld s390.ld sparc.ld arm.ld exec-i386.h exec-i386.c path.c exec.c mmap.c configure \ |
exec.c cpu-exec.c\ |
206 |
tests/Makefile\ |
cpu-i386.h op-i386.c helper-i386.c syscall-i386.h translate-i386.c \ |
207 |
tests/test-i386.c tests/test-i386-shift.h tests/test-i386.h\ |
exec-i386.h ops_template.h op_string.h opreg_template.h \ |
208 |
tests/test-i386-muldiv.h tests/test-i386-code16.S\ |
cpu-arm.h syscall-arm.h exec-arm.h op-arm.c translate-arm.c op-arm-template.h \ |
209 |
tests/hello.c tests/hello tests/sha1.c \ |
dis-asm.h disas.c disas.h alpha-dis.c ppc-dis.c i386-dis.c sparc-dis.c \ |
210 |
|
arm-dis.c \ |
211 |
|
tests/Makefile \ |
212 |
|
tests/test-i386.c tests/test-i386-shift.h tests/test-i386.h \ |
213 |
|
tests/test-i386-muldiv.h tests/test-i386-code16.S tests/test-i386-vm86.S \ |
214 |
|
tests/hello.c tests/hello \ |
215 |
|
tests/hello-arm.c tests/hello-arm \ |
216 |
|
tests/sha1.c \ |
217 |
tests/testsig.c tests/testclone.c tests/testthread.c \ |
tests/testsig.c tests/testclone.c tests/testthread.c \ |
218 |
tests/runcom.c tests/pi_10.com \ |
tests/runcom.c tests/pi_10.com \ |
219 |
tests/test_path.c \ |
tests/test_path.c \ |