Revision 3ef693a0 Makefile

b/Makefile
28 28

  
29 29
DEFINES+=-D_GNU_SOURCE
30 30
LDSCRIPT=$(ARCH).ld
31
LIBS+=-ldl -lm
31
LIBS+=-lm
32 32

  
33 33
# profiling code
34 34
ifdef TARGET_GPROF
......
36 36
main.o: CFLAGS+=-p
37 37
endif
38 38

  
39
OBJS= elfload.o main.o thunk.o syscall.o signal.o libgemu.a
39
OBJS= elfload.o main.o syscall.o signal.o
40
SRCS:= $(OBJS:.o=.c)
41
OBJS+= libqemu.a
40 42

  
41
LIBOBJS+=translate-i386.o op-i386.o exec-i386.o
43
LIBOBJS+=thunk.o translate-i386.o op-i386.o exec-i386.o
42 44
# NOTE: the disassembler code is only needed for debugging
43 45
LIBOBJS+=i386-dis.o dis-buf.o
44
SRCS = $(OBJS:.o=.c)
45 46

  
46
all: gemu
47
all: qemu qemu-doc.html
47 48

  
48
gemu: $(OBJS)
49
qemu: $(OBJS)
49 50
	$(CC) -Wl,-T,$(LDSCRIPT) $(LDFLAGS) -o $@ $^  $(LIBS)
50 51

  
51 52
depend: $(SRCS)
52 53
	$(CC) -MM $(CFLAGS) $^ 1>.depend
53 54

  
54
# libgemu 
55
# libqemu 
55 56

  
56
libgemu.a: $(LIBOBJS)
57
libqemu.a: $(LIBOBJS)
57 58
	rm -f $@
58 59
	$(AR) rcs $@ $(LIBOBJS)
59 60

  
......
73 74

  
74 75
clean:
75 76
	$(MAKE) -C tests clean
76
	rm -f *.o  *.a *~ gemu dyngen TAGS
77
	rm -f *.o  *.a *~ qemu dyngen TAGS
77 78

  
78 79
distclean: clean
79 80
	rm -f config.mak config.h
80 81

  
81
install: gemu
82
	install -m755 -s gemu $(prefix)/bin
82
install: qemu
83
	install -m 755 -s qemu $(prefix)/bin
83 84

  
84 85
# various test targets
85
test speed: gemu
86
test speed: qemu
86 87
	make -C tests $@
87 88

  
88 89
TAGS: 
89 90
	etags *.[ch] i386/*.[ch]
90 91

  
92
# documentation
93
qemu-doc.html: qemu-doc.texi
94
	texi2html -monolithic -number $<
95

  
91 96
FILES= \
92
COPYING.LIB  dyngen.c    ioctls.h          ops_template.h  syscall_types.h\
97
README COPYING COPYING.LIB TODO Changelog VERSION \
98
dyngen.c ioctls.h ops_template.h  syscall_types.h\
93 99
Makefile     elf.h       linux_bin.h       segment.h       thunk.c\
94
TODO         elfload.c   main.c            signal.c        thunk.h\
95
cpu-i386.h   gemu.h      op-i386.c opc-i386.h syscall-i386.h  translate-i386.c\
100
elfload.c   main.c            signal.c        thunk.h\
101
cpu-i386.h   qemu.h      op-i386.c opc-i386.h syscall-i386.h  translate-i386.c\
96 102
dis-asm.h    gen-i386.h  op-i386.h         syscall.c\
97 103
dis-buf.c    i386-dis.c  opreg_template.h  syscall_defs.h\
98
i386.ld ppc.ld exec-i386.h exec-i386.c configure VERSION \
104
i386.ld ppc.ld exec-i386.h exec-i386.c configure \
99 105
tests/Makefile\
100 106
tests/test-i386.c tests/test-i386-shift.h tests/test-i386.h\
101 107
tests/test-i386-muldiv.h tests/test-i386-code16.S\
102 108
tests/hello.c tests/hello tests/sha1.c \
103
tests/testsig.c tests/testclone.c tests/testthread.c 
109
tests/testsig.c tests/testclone.c tests/testthread.c \
110
qemu-doc.texi qemu-doc.html
104 111

  
105
FILE=gemu-$(VERSION)
112
FILE=qemu-$(VERSION)
106 113

  
107 114
tar:
108 115
	rm -rf /tmp/$(FILE)

Also available in: Unified diff