-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
44 lines (37 loc) · 682 Bytes
/
Copy pathmakefile
File metadata and controls
44 lines (37 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
MACHINE := NONE
ifeq ($(OS),Windows_NT)
MACHINE := WIN32
else
UNAME := $(shell uname -s)
ifeq ($(UNAME),Linux)
MACHINE :=Linux
endif
endif
cr:
nasm boot.asm -f bin -o boot_sec.bin
qemu-system-x86_64.exe boot_sec.bin
c:
nasm boot32.asm -f bin -o boot_sec.bin -l boot_sec.lst
r:
qemu-system-x86_64.exe boot_sec.bin
e:
vim boot.asm
m:
vim makefile
b:
@echo $(MACHINE)
ifeq ($(MACHINE),Linux)
@echo "Running for LINUX"
#bochs -qf ./bochsrc.linux
bochs -qf ./bochsrc.linux
else
@echo "Running for WIN32"
bochsdbg -qf ./bochsrc.win
#bochs -qf ./bochsrc.win
endif
c1:
nasm findx.asm -f bin -o boot_sec.bin
d:
bochsdbg.exe -qf bochsrc
i:
@echo $(MACHINE)