added basic run recipe
This commit is contained in:
parent
b3402255b1
commit
b2f820660f
5
makefile
5
makefile
@ -2,6 +2,8 @@ ASM=nasm
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
LINK=ld
|
LINK=ld
|
||||||
ISO=genisoimage
|
ISO=genisoimage
|
||||||
|
EMU=bochs
|
||||||
|
emuconfig='bochsrc.conf'
|
||||||
|
|
||||||
all: loader link iso
|
all: loader link iso
|
||||||
echo 'yeeting'
|
echo 'yeeting'
|
||||||
@ -15,6 +17,9 @@ loader: loader.asm
|
|||||||
link: loader.o
|
link: loader.o
|
||||||
$(LINK) -T link.ld -melf_i386 loader.o -o kernel.elf
|
$(LINK) -T link.ld -melf_i386 loader.o -o kernel.elf
|
||||||
|
|
||||||
|
run:
|
||||||
|
$(EMU) -f $(emuconfig) -q
|
||||||
|
|
||||||
# build the iso file into our target directory
|
# build the iso file into our target directory
|
||||||
iso:
|
iso:
|
||||||
$(ISO) -R \
|
$(ISO) -R \
|
||||||
|
Loading…
Reference in New Issue
Block a user