]> Git Repo - qemu.git/blame - Makefile
more FPU context save tests
[qemu.git] / Makefile
CommitLineData
626df76a 1include config-host.mak
766a487a 2
7d13299d 3CFLAGS=-Wall -O2 -g
31e31b8a 4LDFLAGS=-g
766a487a 5LIBS=
0ecfa993 6DEFINES+=-D_GNU_SOURCE
1e43adfc 7TOOLS=qemu-mkcow
aa05ae6f 8
5a67135a 9all: dyngen $(TOOLS) qemu-doc.html qemu.1
626df76a
FB
10 for d in $(TARGET_DIRS); do \
11 make -C $$d $@ || exit 1 ; \
12 done
33e3963e 13
1e43adfc 14qemu-mkcow: qemu-mkcow.o
626df76a 15 $(HOST_CC) -o $@ $^ $(LIBS)
de83cd02 16
626df76a
FB
17dyngen: dyngen.o
18 $(HOST_CC) -o $@ $^ $(LIBS)
de83cd02 19
31e31b8a 20%.o: %.c
626df76a 21 $(HOST_CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
31e31b8a
FB
22
23clean:
2d80ae89
FB
24# avoid old build problems by removing potentially incorrect old files
25 rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
5a67135a 26 rm -f *.o *.a $(TOOLS) dyngen TAGS qemu.pod
68e73e39 27 make -C tests clean
626df76a
FB
28 for d in $(TARGET_DIRS); do \
29 make -C $$d $@ || exit 1 ; \
30 done
31e31b8a 31
7d13299d 32distclean: clean
2d80ae89 33 rm -f config-host.mak config-host.h
76bc6838 34 for d in $(TARGET_DIRS); do \
bc1b050d 35 rm -rf $$d || exit 1 ; \
76bc6838 36 done
7d13299d 37
626df76a 38install: all
d5a0b50c 39 mkdir -p $(prefix)/bin
626df76a 40 install -m 755 -s $(TOOLS) $(prefix)/bin
5a67135a
FB
41 mkdir -p $(sharedir)
42 install -m 644 pc-bios/bios.bin pc-bios/vgabios.bin $(sharedir)
43 mkdir -p $(mandir)/man1
44 install qemu.1 $(mandir)/man1
626df76a
FB
45 for d in $(TARGET_DIRS); do \
46 make -C $$d $@ || exit 1 ; \
47 done
612384d7 48
367e86e8 49# various test targets
82c7e2a4 50test speed test2: all
367e86e8 51 make -C tests $@
31e31b8a 52
367e86e8 53TAGS:
b9adb4a6 54 etags *.[ch] tests/*.[ch]
31e31b8a 55
3ef693a0
FB
56# documentation
57qemu-doc.html: qemu-doc.texi
58 texi2html -monolithic -number $<
59
5a67135a
FB
60qemu.1: qemu-doc.texi
61 ./texi2pod.pl $< qemu.pod
62 pod2man --section=1 --center=" " --release=" " qemu.pod > $@
63
1e43adfc 64FILE=qemu-$(shell cat VERSION)
586314f2 65
1e43adfc 66# tar release (use 'make -k tar' on a checkouted tree)
586314f2
FB
67tar:
68 rm -rf /tmp/$(FILE)
1e43adfc 69 cp -r . /tmp/$(FILE)
76b62fd0 70 ( cd /tmp ; tar zcvf ~/$(FILE).tar.gz $(FILE) --exclude CVS )
586314f2
FB
71 rm -rf /tmp/$(FILE)
72
76b62fd0 73# generate a binary distribution
d691f669 74tarbin:
76b62fd0
FB
75 ( cd / ; tar zcvf ~/qemu-$(VERSION)-i386.tar.gz \
76 $(prefix)/bin/qemu $(prefix)/bin/qemu-fast \
77 $(prefix)/bin/qemu-i386 \
78 $(prefix)/bin/qemu-arm \
79 $(prefix)/bin/qemu-sparc \
c0637b37 80 $(prefix)/bin/qemu-ppc \
76b62fd0
FB
81 $(sharedir)/bios.bin \
82 $(sharedir)/vgabios.bin \
83 $(mandir)/man1/qemu.1 )
d691f669 84
31e31b8a
FB
85ifneq ($(wildcard .depend),)
86include .depend
87endif
This page took 0.057466 seconds and 4 git commands to generate.