metalsvm/arch/x86/kernel/Makefile

25 lines
513 B
Makefile

C_source = scc.c gdt.c kb.c timer.c irq.c isrs.c idt.c vga.c multiboot.c pci.c
ASM_source = entry.asm string.asm
OBJS += $(patsubst %.c, %.o, $(filter %.c, $(C_source)))
OBJS += $(patsubst %.asm, %.o, $(filter %.asm, $(ASM_source)))
# other implicit rules
%.o : %.c
$(CC) -c -D__KERNEL__ $(CFLAGS) -o $@ $<
%.o : %.asm
$(ASM) $(ASMFLAGS) -o $@ $<
default: $(OBJS)
all: $(OBJS)
clean:
$(RM) *~ *.o $(NAME)
depend:
$(CC) -MM $(CFLAGS) $(C_source) > Makefile.dep
-include Makefile.dep
# DO NOT DELETE