root / Makefile @ facc68be
History | View | Annotate | Download (2.8 kB)
1 | 626df76a | bellard | include config-host.mak |
---|---|---|---|
2 | 766a487a | bellard | |
3 | 7d13299d | bellard | CFLAGS=-Wall -O2 -g |
4 | 31e31b8a | bellard | LDFLAGS=-g |
5 | 766a487a | bellard | LIBS= |
6 | 0ecfa993 | bellard | DEFINES+=-D_GNU_SOURCE |
7 | 626df76a | bellard | TOOLS=vlmkcow |
8 | aa05ae6f | bellard | |
9 | 626df76a | bellard | all: dyngen $(TOOLS) qemu-doc.html |
10 | 626df76a | bellard | for d in $(TARGET_DIRS); do \ |
11 | 626df76a | bellard | make -C $$d $@ || exit 1 ; \ |
12 | 626df76a | bellard | done |
13 | 33e3963e | bellard | |
14 | 33e3963e | bellard | vlmkcow: vlmkcow.o |
15 | 626df76a | bellard | $(HOST_CC) -o $@ $^ $(LIBS) |
16 | de83cd02 | bellard | |
17 | 626df76a | bellard | dyngen: dyngen.o |
18 | 626df76a | bellard | $(HOST_CC) -o $@ $^ $(LIBS) |
19 | de83cd02 | bellard | |
20 | 31e31b8a | bellard | %.o: %.c |
21 | 626df76a | bellard | $(HOST_CC) $(CFLAGS) $(DEFINES) -c -o $@ $< |
22 | 31e31b8a | bellard | |
23 | 31e31b8a | bellard | clean: |
24 | 2d80ae89 | bellard | # avoid old build problems by removing potentially incorrect old files |
25 | 2d80ae89 | bellard | 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 |
26 | 626df76a | bellard | rm -f *.o *.a $(TOOLS) dyngen TAGS |
27 | 626df76a | bellard | for d in $(TARGET_DIRS); do \ |
28 | 626df76a | bellard | make -C $$d $@ || exit 1 ; \ |
29 | 626df76a | bellard | done |
30 | 31e31b8a | bellard | |
31 | 7d13299d | bellard | distclean: clean |
32 | 2d80ae89 | bellard | rm -f config-host.mak config-host.h |
33 | 76bc6838 | bellard | for d in $(TARGET_DIRS); do \ |
34 | 76bc6838 | bellard | rm -f $$d/config.h $$d/config.mak || exit 1 ; \ |
35 | 76bc6838 | bellard | done |
36 | 7d13299d | bellard | |
37 | 626df76a | bellard | install: all |
38 | d5a0b50c | bellard | mkdir -p $(prefix)/bin |
39 | 626df76a | bellard | install -m 755 -s $(TOOLS) $(prefix)/bin |
40 | 626df76a | bellard | for d in $(TARGET_DIRS); do \ |
41 | 626df76a | bellard | make -C $$d $@ || exit 1 ; \ |
42 | 626df76a | bellard | done |
43 | 612384d7 | bellard | |
44 | 367e86e8 | bellard | # various test targets |
45 | 626df76a | bellard | test speed: all |
46 | 367e86e8 | bellard | make -C tests $@ |
47 | 31e31b8a | bellard | |
48 | 367e86e8 | bellard | TAGS: |
49 | b9adb4a6 | bellard | etags *.[ch] tests/*.[ch] |
50 | 31e31b8a | bellard | |
51 | 3ef693a0 | bellard | # documentation |
52 | 3ef693a0 | bellard | qemu-doc.html: qemu-doc.texi |
53 | 3ef693a0 | bellard | texi2html -monolithic -number $< |
54 | 3ef693a0 | bellard | |
55 | 586314f2 | bellard | FILES= \ |
56 | fd429f2f | bellard | README README.distrib COPYING COPYING.LIB TODO Changelog VERSION \ |
57 | 76bc6838 | bellard | configure Makefile Makefile.target \ |
58 | de83cd02 | bellard | dyngen.c dyngen.h dyngen-exec.h ioctls.h syscall_types.h \ |
59 | 76bc6838 | bellard | elf.h elfload.c main.c signal.c qemu.h \ |
60 | de83cd02 | bellard | syscall.c syscall_defs.h vm86.c path.c mmap.c \ |
61 | 76bc6838 | bellard | i386.ld ppc.ld alpha.ld s390.ld sparc.ld arm.ld m68k.ld \ |
62 | 76bc6838 | bellard | vl.c i386-vl.ld vl.h block.c vlmkcow.c vga.c vga_template.h sdl.c \ |
63 | 76bc6838 | bellard | thunk.c cpu-exec.c translate.c cpu-all.h cpu-defs.h thunk.h exec.h\ |
64 | 76bc6838 | bellard | exec.c cpu-exec.c gdbstub.c bswap.h \ |
65 | 76bc6838 | bellard | cpu-i386.h op-i386.c helper-i386.c helper2-i386.c syscall-i386.h translate-i386.c \ |
66 | 4690764b | bellard | exec-i386.h ops_template.h ops_template_mem.h op_string.h opreg_template.h \ |
67 | 76bc6838 | bellard | ops_mem.h softmmu_template.h softmmu_header.h \ |
68 | de83cd02 | bellard | cpu-arm.h syscall-arm.h exec-arm.h op-arm.c translate-arm.c op-arm-template.h \ |
69 | de83cd02 | bellard | dis-asm.h disas.c disas.h alpha-dis.c ppc-dis.c i386-dis.c sparc-dis.c \ |
70 | de83cd02 | bellard | arm-dis.c \ |
71 | de83cd02 | bellard | tests/Makefile \ |
72 | de83cd02 | bellard | tests/test-i386.c tests/test-i386-shift.h tests/test-i386.h \ |
73 | de83cd02 | bellard | tests/test-i386-muldiv.h tests/test-i386-code16.S tests/test-i386-vm86.S \ |
74 | 322d0c66 | bellard | tests/hello-i386.c tests/hello-i386 \ |
75 | de83cd02 | bellard | tests/hello-arm.c tests/hello-arm \ |
76 | de83cd02 | bellard | tests/sha1.c \ |
77 | 3ef693a0 | bellard | tests/testsig.c tests/testclone.c tests/testthread.c \ |
78 | fd429f2f | bellard | tests/runcom.c tests/pi_10.com \ |
79 | 1eb87257 | bellard | tests/test_path.c \ |
80 | 3ef693a0 | bellard | qemu-doc.texi qemu-doc.html |
81 | 586314f2 | bellard | |
82 | 3ef693a0 | bellard | FILE=qemu-$(VERSION) |
83 | 586314f2 | bellard | |
84 | 586314f2 | bellard | tar: |
85 | 586314f2 | bellard | rm -rf /tmp/$(FILE) |
86 | 586314f2 | bellard | mkdir -p /tmp/$(FILE) |
87 | 586314f2 | bellard | cp -P $(FILES) /tmp/$(FILE) |
88 | 586314f2 | bellard | ( cd /tmp ; tar zcvf ~/$(FILE).tar.gz $(FILE) ) |
89 | 586314f2 | bellard | rm -rf /tmp/$(FILE) |
90 | 586314f2 | bellard | |
91 | d691f669 | bellard | # generate a binary distribution including the test binary environnment |
92 | d691f669 | bellard | BINPATH=/usr/local/qemu-i386 |
93 | d691f669 | bellard | |
94 | d691f669 | bellard | tarbin: |
95 | 1eb87257 | bellard | tar zcvf /tmp/qemu-$(VERSION)-i386-glibc21.tar.gz \ |
96 | 1eb87257 | bellard | $(BINPATH)/etc $(BINPATH)/lib $(BINPATH)/bin $(BINPATH)/usr |
97 | 1eb87257 | bellard | tar zcvf /tmp/qemu-$(VERSION)-i386-wine.tar.gz \ |
98 | 1eb87257 | bellard | $(BINPATH)/wine |
99 | d691f669 | bellard | |
100 | 31e31b8a | bellard | ifneq ($(wildcard .depend),) |
101 | 31e31b8a | bellard | include .depend |
102 | 31e31b8a | bellard | endif |