~ecs/k

k/Makefile -rw-r--r-- 256 bytes
354b6b99 — Eyal Sawady Initial commit 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
AS:=nasm
CC:=cproc
LD:=ld

qemu: all
	qemu-system-x86_64 -drive file=k,format=raw

all: boot.o cboot.o
	$(LD) -T link.ld -o k boot.o cboot.o

boot.o: boot.S
	$(AS) -f elf64 -o boot.o boot.S

cboot.o: boot.c
	$(CC) -c boot.c -o cboot.o

clean:
	rm -f *.o k