6 DEFINES
=-DHAVE_BYTESWAP_H
9 CFLAGS
+=-fomit-frame-pointer
10 OP_CFLAGS
=$(CFLAGS
) -mpreferred-stack-boundary
=2
12 OP_CFLAGS
+= -falign-functions
=0
14 OP_CFLAGS
+= -malign-functions
=0
23 # very important to generate a return at the end of every operation
24 OP_CFLAGS
+=-fno-reorder-blocks
-fno-optimize-sibling-calls
27 #########################################################
29 DEFINES
+=-D_GNU_SOURCE
39 OBJS
= elfload.o main.o thunk.o syscall.o
40 OBJS
+=translate-i386.o op-i386.o exec-i386.o
41 # NOTE: the disassembler code is only needed for debugging
42 OBJS
+=i386-dis.o dis-buf.o
48 $(CC
) -Wl
,-T
,$(LDSCRIPT
) $(LDFLAGS
) -o
$@
$^
$(LIBS
)
51 $(CC
) -MM
$(CFLAGS
) $^
1>.depend
55 $(HOST_CC
) -O2
-Wall
-g
$< -o
$@
57 translate-i386.o
: translate-i386.c op-i386.h cpu-i386.h
59 op-i386.h
: op-i386.o dyngen
62 op-i386.o
: op-i386.c opreg_template.h ops_template.h
63 $(CC
) $(OP_CFLAGS
) $(DEFINES
) -c
-o
$@
$<
66 $(CC
) $(CFLAGS
) $(DEFINES
) -c
-o
$@
$<
69 $(MAKE
) -C tests
clean
70 rm -f
*.o
*~ gemu dyngen TAGS
73 rm -f config.mak config.h
75 # various test targets
80 etags
*.
[ch
] i386
/*.
[ch
]
83 COPYING.LIB dyngen.c ioctls.h ops_template.h syscall_types.h\
84 Makefile elf.h linux_bin.h segment.h thunk.c\
85 TODO elfload.c main.c signal.c thunk.h\
86 cpu-i386.h gemu.h op-i386.c syscall-i386.h translate-i386.c\
87 dis-asm.h gen-i386.h op-i386.h syscall.c\
88 dis-buf.c i386-dis.c opreg_template.h syscall_defs.h\
89 i386.
ld ppc.
ld exec-i386.h exec-i386.c configure VERSION \
91 tests
/test-i386.c tests
/test-i386-shift.h tests
/test-i386.h\
92 tests
/test-i386-muldiv.h\
93 tests
/test2.c tests
/hello.c tests
/sha1.c
100 cp
-P
$(FILES
) /tmp
/$(FILE
)
101 ( cd
/tmp
; tar zcvf ~
/$(FILE
).
tar.gz
$(FILE
) )
104 ifneq ($(wildcard .depend
),)