blob: 635759afa0d8f383cf8197f0a6f84f7cb6b8ff89 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
ARCH16 := i8086
ARCH64 := i386:x86-64
guest: guest16 guest64
disasm: disasm16 disasm64
guest%: guest.ld guest%.S
$(CC) $(CFLAGS) -m$* -o $@ -nostdlib -ffreestanding -Wpedantic -Wall -Wextra -Werror -T guest.ld guest$*.S
disasm%: guest%
objdump -D -b binary -m $(ARCH$*) -M intel $^
clean:
$(RM) guest16 guest64
|