summaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-24 00:11:51 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-04-24 00:11:51 +0000
commit039d3da3653a76cc00c67be273799c4f0b007f88 (patch)
treec3545dbd32c9569ccc4480342148c54d08591a63 /tests/Makefile
parenta7e61ed44693062abac4cc3d7a72794545969111 (diff)
downloadqemu-039d3da3653a76cc00c67be273799c4f0b007f88.tar.gz
added user mode libqemu usage example
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@739 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 25742e2aed..5116294561 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -62,6 +62,11 @@ speed: sha1 sha1-i386
runcom: runcom.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+# NOTE: -fomit-frame-pointer is currently needed : this is a bug in libqemu
+qruncom: qruncom.c ../i386-user/libqemu.a
+ $(CC) $(CFLAGS) -fomit-frame-pointer $(LDFLAGS) -I../target-i386 -I.. -I../i386-user \
+ -o $@ $< -L../i386-user -lqemu -lm
+
# arm test
hello-arm: hello-arm.o
arm-linux-ld -o $@ $<