Revision 586314f2 Makefile

b/Makefile
34 34
DEFINES+=-DCONFIG_PREFIX=\"/usr/local\"
35 35
LDSCRIPT=$(ARCH).ld
36 36
LIBS+=-ldl -lm
37
VERSION=0.1
37 38

  
38
#DEFINES+= -DGEMU -DDOSEMU -DNO_TRACE_MSGS
39
#OBJS= i386/fp87.o i386/interp_main.o i386/interp_modrm.o i386/interp_16_32.o \
40
#      i386/interp_32_16.o i386/interp_32_32.o i386/emu-utils.o \
41
#      i386/dis8086.o i386/emu-ldt.o
39
OBJS= elfload.o main.o thunk.o syscall.o
42 40
OBJS+=translate-i386.o op-i386.o
43
OBJS+= elfload.o main.o thunk.o syscall.o
44 41
# NOTE: the disassembler code is only needed for debugging
45 42
OBJS+=i386-dis.o dis-buf.o
46 43
SRCS = $(OBJS:.o=.c)
......
53 50
depend: $(SRCS)
54 51
	$(CC) -MM $(CFLAGS) $^ 1>.depend
55 52

  
56
# old i386 emulator
57
i386/interp_32_32.o: i386/interp_32_32.c i386/interp_gen.h
58

  
59
i386/interp_gen.h: i386/gencode
60
	./i386/gencode > $@
61

  
62
i386/gencode: i386/gencode.c
63
	$(CC) -O2 -Wall -g $< -o $@
64

  
65 53
# new i386 emulator
66 54
dyngen: dyngen.c
67 55
	$(HOST_CC) -O2 -Wall -g $< -o $@
......
78 66
	$(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
79 67

  
80 68
clean:
81
	rm -f *.o *~ i386/*.o i386/*~ gemu TAGS
69
	rm -f *.o *~ gemu dyngen TAGS
82 70

  
83 71
# various test targets
84 72
test speed: gemu
......
87 75
TAGS: 
88 76
	etags *.[ch] i386/*.[ch]
89 77

  
78
FILES= \
79
COPYING.LIB  dyngen.c    ioctls.h          ops_template.h  syscall_types.h\
80
Makefile     elf.h       linux_bin.h       segment.h       thunk.c\
81
TODO         elfload.c   main.c            signal.c        thunk.h\
82
cpu-i386.h   gemu.h      op-i386.c         syscall-i386.h  translate-i386.c\
83
dis-asm.h    gen-i386.h  op-i386.h         syscall.c\
84
dis-buf.c    i386-dis.c  opreg_template.h  syscall_defs.h\
85
i386.ld ppc.ld\
86
tests/test-i386.c tests/test-i386-shift.h tests/test-i386.h\
87
tests/test2.c tests/hello.c tests/sha1.c tests/test1.c
88

  
89
FILE=gemu-$(VERSION)
90

  
91
tar:
92
	rm -rf /tmp/$(FILE)
93
	mkdir -p /tmp/$(FILE)
94
	cp -P $(FILES) /tmp/$(FILE)
95
	( cd /tmp ; tar zcvf ~/$(FILE).tar.gz $(FILE) )
96
	rm -rf /tmp/$(FILE)
97

  
90 98
ifneq ($(wildcard .depend),)
91 99
include .depend
92 100
endif

Also available in: Unified diff