move stuff aroundd
This commit is contained in:
19
src/kernel/makefile
Normal file
19
src/kernel/makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
CC = i386-elf-gcc -ffreestanding -m32
|
||||
|
||||
kernel.bin: entry.o kernel.o mem.o print.o
|
||||
i386-elf-ld -o kernel.bin -Ttext 0x1000 entry.o kernel.o mem.o print.o --oformat binary
|
||||
|
||||
entry.o: entry.asm
|
||||
nasm -f elf -o entry.o entry.asm
|
||||
|
||||
kernel.o: kernel.c
|
||||
$(CC) -c -o kernel.o kernel.c
|
||||
|
||||
mem.o: mem.c
|
||||
$(CC) -c -o mem.o mem.c
|
||||
|
||||
print.o: print.c
|
||||
$(CC) -c -o print.o print.c
|
||||
|
||||
clean:
|
||||
@rm *.o *.bin 2>/dev/null || true
|
||||
Reference in New Issue
Block a user