Building the KarlOS kernel
After all the neccessary dependencies have been installed and config.mk has been configured, you can build KarlOS by simply running make in the root directory of the repository.
Adding new source files to the build
Any time you want to add a new source file (C or Assembly) to the kernel, you will have to add it to the list of sources in the Makefile.
Source files which contain code that is largely independent of the CPU architecture should be added to KERNEL_SOURCES.
Sources which are specific to x86-64 (AMD64) should be added to KERNEL_SOURCES_x86_64.