aboutsummaryrefslogblamecommitdiff
path: root/src/kernel/Makefile
blob: a6f9a1b60c0925790521e46dbabe29aac0f1415b (plain) (tree)
1
2
3
4
5
6
7
 
                                   
                                                                                    
                                                                 
                                                                         
 
                                                                                             




                                               
                

                     
 
                                              


                                 
OBJ = core/loader.o core/dbglog.o \
	core/gdt.o core/idt.o core/interrupt.o core/context_switch.o core/thread.o \
	core/frame.o core/paging.o core/region.o core/kmalloc.o \
	user/vfs.o user/nullfs.o user/process.o user/elf.o user/syscall.o

LIB = ../common/libc/libc.lib ../common/libkogata/libkogata.lib ../common/libalgo/libalgo.lib

CFLAGS = -I ./include -I ../common/include

LDFLAGS = -T linker.ld -Xlinker -Map=kernel.map

OUT = kernel.lib

include ../rules.make

kernel.bin: kernel.lib core/kmain.o core/sys.o
	$(LD) $(LDFLAGS) -o $@ $^

all: $(OUT) kernel.bin