aboutsummaryrefslogtreecommitdiffhomepage
path: root/guest/Makefile
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-05-30 02:03:21 +0200
committerjohannst <johannes.stoelp@gmail.com>2021-05-30 02:03:21 +0200
commit659cd8adbd940c4a7566cdc4a461ba05b5d2177c (patch)
treedcd49ec45a4216418a16df6d1c88020e3a2416c6 /guest/Makefile
parent85d55ca8f2539a5f766aa375b011163832d5a592 (diff)
downloadmini-kvm-rs-659cd8adbd940c4a7566cdc4a461ba05b5d2177c.tar.gz
mini-kvm-rs-659cd8adbd940c4a7566cdc4a461ba05b5d2177c.zip
added long mode example with 4 level paging
Diffstat (limited to 'guest/Makefile')
-rw-r--r--guest/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/guest/Makefile b/guest/Makefile
index e3f1e1b..a2eea1b 100644
--- a/guest/Makefile
+++ b/guest/Makefile
@@ -1,8 +1,17 @@
+guest: guest16 guest64
+disasm: disasm16 disasm64
+
guest16: guest.ld guest16.S
$(CC) $(CFLAGS) -m16 -o $@ -nostdlib -ffreestanding -Wpedantic -Wall -Wextra -Werror -T guest.ld guest16.S
-disasm: guest16
+guest64: guest.ld guest64.S
+ $(CC) $(CFLAGS) -m64 -o $@ -nostdlib -fPIC -ffreestanding -Wpedantic -Wall -Wextra -Werror -T guest.ld guest64.S
+
+disasm16: guest16
objdump -D -b binary -m i8086 -M intel $^
+disasm64: guest64
+ objdump -D -b binary -m i386:x86-64 -M intel $^
+
clean:
- $(RM) guest16
+ $(RM) guest16 guest64