# Makefile for creating the boot sector and kernel loader code

# Programs
AS	= nasm
ASFLAGS	= -fbin

# Rules
%.o:%.asm
	$(AS) $(ASFLAGS) -o $@ $<

# Definitions
OBJECTS	= bootsector.o secloader.o kernel.o
TARGET	= boot.bin

# Options
all: $(OBJECTS)
	cat $(OBJECTS) > $(TARGET)
clean:
	rm -f $(OBJECTS) $(TARGET)
