Commit e3086fbf8f3e8242f7b5040a7a080e051bb9c2b3
1 parent
7c3fc84d
kqemu support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1277 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
15 additions
and
2 deletions
Makefile
| ... | ... | @@ -17,6 +17,9 @@ all: dyngen$(EXESUF) $(TOOLS) $(DOCS) |
| 17 | 17 | for d in $(TARGET_DIRS); do \ |
| 18 | 18 | $(MAKE) -C $$d $@ || exit 1 ; \ |
| 19 | 19 | done |
| 20 | +ifdef CONFIG_KQEMU | |
| 21 | + $(MAKE) -C kqemu | |
| 22 | +endif | |
| 20 | 23 | |
| 21 | 24 | qemu-img$(EXESUF): qemu-img.c block.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c |
| 22 | 25 | $(CC) -DQEMU_TOOL $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $@ $^ -lz $(LIBS) |
| ... | ... | @@ -32,6 +35,9 @@ clean: |
| 32 | 35 | for d in $(TARGET_DIRS); do \ |
| 33 | 36 | $(MAKE) -C $$d $@ || exit 1 ; \ |
| 34 | 37 | done |
| 38 | +ifdef CONFIG_KQEMU | |
| 39 | + $(MAKE) -C kqemu clean | |
| 40 | +endif | |
| 35 | 41 | |
| 36 | 42 | distclean: clean |
| 37 | 43 | rm -f config-host.mak config-host.h |
| ... | ... | @@ -63,6 +69,9 @@ endif |
| 63 | 69 | for d in $(TARGET_DIRS); do \ |
| 64 | 70 | $(MAKE) -C $$d $@ || exit 1 ; \ |
| 65 | 71 | done |
| 72 | +ifdef CONFIG_KQEMU | |
| 73 | + cd kqemu ; ./install.sh | |
| 74 | +endif | |
| 66 | 75 | |
| 67 | 76 | # various test targets |
| 68 | 77 | test speed test2: all | ... | ... |
Makefile.target
| ... | ... | @@ -237,8 +237,8 @@ SRCS:= $(OBJS:.o=.c) |
| 237 | 237 | OBJS+= libqemu.a |
| 238 | 238 | |
| 239 | 239 | # cpu emulator library |
| 240 | -LIBOBJS=exec.o translate-all.o cpu-exec.o\ | |
| 241 | - translate.o op.o | |
| 240 | +LIBOBJS=exec.o kqemu.o translate-all.o cpu-exec.o\ | |
| 241 | + translate.o op.o | |
| 242 | 242 | |
| 243 | 243 | ifeq ($(TARGET_ARCH), i386) |
| 244 | 244 | LIBOBJS+=helper.o helper2.o |
| ... | ... | @@ -363,6 +363,10 @@ ifndef CONFIG_WIN32 |
| 363 | 363 | VL_LIBS=-lutil |
| 364 | 364 | endif |
| 365 | 365 | endif |
| 366 | +ifdef TARGET_GPROF | |
| 367 | +vl.o: CFLAGS+=-p | |
| 368 | +VL_LDFLAGS+=-p | |
| 369 | +endif | |
| 366 | 370 | |
| 367 | 371 | $(QEMU_SYSTEM): $(VL_OBJS) libqemu.a |
| 368 | 372 | $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(VL_LIBS) | ... | ... |