]> git.proxmox.com Git - mirror_qemu.git/blame - Makefile
This commit was generated by cvs2svn to compensate for changes in r2,
[mirror_qemu.git] / Makefile
CommitLineData
31e31b8a
FB
1CFLAGS=-Wall -O2 -g
2LDFLAGS=-g
3DEFINES=-D_GNU_SOURCE -DGEMU -DDOSEMU #-DNO_TRACE_MSGS
4
5OBJS= i386/fp87.o i386/interp_main.o i386/interp_modrm.o i386/interp_16_32.o \
6 i386/interp_32_16.o i386/interp_32_32.o i386/emu-utils.o \
7 i386/dis8086.o i386/emu-ldt.o
8OBJS+= elfload.o main.o thunk.o syscall.o
9
10SRCS = $(OBJS:.o=.c)
11
12all: gemu
13
14gemu: $(OBJS)
15 $(CC) -Wl,-T,i386.ld $(LDFLAGS) -o $@ $(OBJS)
16
17depend: $(SRCS)
18 $(CC) -MM $(CFLAGS) $^ 1>.depend
19
20%.o: %.c
21 $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
22
23clean:
24 rm -f *.o *~ i386/*.o i386/*~ gemu hello test1 test2 TAGS
25
26hello: hello.c
27 $(CC) -nostdlib $(CFLAGS) -static $(LDFLAGS) -o $@ $<
28
29test1: test1.c
30 $(CC) $(CFLAGS) -static $(LDFLAGS) -o $@ $<
31
32test2: test2.c
33 $(CC) $(CFLAGS) -static $(LDFLAGS) -o $@ $<
34
35ifneq ($(wildcard .depend),)
36include .depend
37endif