23 lines
698 B
Makefile
23 lines
698 B
Makefile
default:
|
|
just --list
|
|
|
|
run_gamarjoba: build_gamarjoba
|
|
./gamarjoba_munde/gamarjoba
|
|
|
|
build_gamarjoba:
|
|
nasm -f elf64 -o gamarjoba_munde/gamarjoba.o gamarjoba_munde/gamarjoba.asm
|
|
ld -o gamarjoba_munde/gamarjoba gamarjoba_munde/gamarjoba.o
|
|
|
|
build_baremetal_gamarjoba:
|
|
#!/usr/bin/env bash
|
|
cd baremetal_gamarjoba
|
|
gcc -m32 -ffreestanding -o include.o -c include.c
|
|
nasm -f elf32 -i ../common baremetal_gamarjoba.asm
|
|
ld -m elf_i386 -nostdlib -T ../common/linker.ld baremetal_gamarjoba.o include.o -o baremetal_gamarjoba
|
|
|
|
|
|
run_baremetal_gamarjoba: build_baremetal_gamarjoba
|
|
#!/usr/bin/env bash
|
|
cd baremetal_gamarjoba
|
|
qemu-system-i386 -kernel baremetal_gamarjoba
|