2019-09-24 12:39:05 +02:00
|
|
|
OBJS = multiboot.asm.o kernel_loader.asm.o ports.asm.o \
|
|
|
|
gdt.asm.o idt.asm.o interrupts.asm.o assert.o
|
2019-07-03 12:15:40 +02:00
|
|
|
|
|
|
|
ASM = nasm
|
|
|
|
ASMFLAGS = -f elf
|
2019-09-24 12:39:05 +02:00
|
|
|
CC = i686-elf-gcc # cross-compiler
|
|
|
|
CFLAGS = -m32 -fno-stack-protector -ffreestanding -Wall -Wextra -Werror -g -c
|
2019-07-03 12:15:40 +02:00
|
|
|
|
|
|
|
all: $(OBJS)
|
2019-07-03 21:04:05 +02:00
|
|
|
%.asm.o: %.asm
|
2019-09-24 12:39:05 +02:00
|
|
|
$(ASM) $(ASMFLAGS) $< -o $@
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) $< -o $@
|