diff options
author | bellard | 2003-02-18 23:55:36 +0100 |
---|---|---|
committer | bellard | 2003-02-18 23:55:36 +0100 |
commit | 31e31b8a248ffa216223dad49f75efbdfca5df23 (patch) | |
tree | 7a2e4a2e20da5bd5d61f906f6d75dab2d3418e5f /Makefile | |
parent | Standard project directories initialized by cvs2svn. (diff) | |
download | qemu-31e31b8a248ffa216223dad49f75efbdfca5df23.tar.gz qemu-31e31b8a248ffa216223dad49f75efbdfca5df23.tar.xz qemu-31e31b8a248ffa216223dad49f75efbdfca5df23.zip |
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000..4e5689a644 --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +CFLAGS=-Wall -O2 -g +LDFLAGS=-g +DEFINES=-D_GNU_SOURCE -DGEMU -DDOSEMU #-DNO_TRACE_MSGS + +OBJS= i386/fp87.o i386/interp_main.o i386/interp_modrm.o i386/interp_16_32.o \ + i386/interp_32_16.o i386/interp_32_32.o i386/emu-utils.o \ + i386/dis8086.o i386/emu-ldt.o +OBJS+= elfload.o main.o thunk.o syscall.o + +SRCS = $(OBJS:.o=.c) + +all: gemu + +gemu: $(OBJS) + $(CC) -Wl,-T,i386.ld $(LDFLAGS) -o $@ $(OBJS) + +depend: $(SRCS) + $(CC) -MM $(CFLAGS) $^ 1>.depend + +%.o: %.c + $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $< + +clean: + rm -f *.o *~ i386/*.o i386/*~ gemu hello test1 test2 TAGS + +hello: hello.c + $(CC) -nostdlib $(CFLAGS) -static $(LDFLAGS) -o $@ $< + +test1: test1.c + $(CC) $(CFLAGS) -static $(LDFLAGS) -o $@ $< + +test2: test2.c + $(CC) $(CFLAGS) -static $(LDFLAGS) -o $@ $< + +ifneq ($(wildcard .depend),) +include .depend +endif |