BOOST YOUR PROJECTS WITH KMAK
In this article, you will learn how to setup KMAK, a
minimal and lightweight, build system for your next
projects.
What Is KMAK?
KMAK (Komodore Make) is a lightweight and minimalist
build system written in C. It is inspired by Makefile
but much simpler with custom tasks support and zero
dependencies.
EXAMPLE
If you want to build a C++ project, you can write a
KMAK script file like so in a `make.kmk` file:
```kmak
# Variables
CXX = g++
SOURCE = src/Main.cpp src/glad.c
TARGET = project
LIBS = -lglfw3dll -lopengl32
# Tasks
task build
print Building...
cmd $(CXX) -o $(TARGET) $(SOURCE) $(LIBS)
task clean
cmd del $(TARGET).exe
```
Then you can run:
```batch
kmak make.kmk build
```
to build your project easily.
INSTALLATION
/!\ Warning /!\
Currently, KMAK is only available on Windows and if you are
using a Linux operation system, I advise you to stay tuned
for a coming Linux port.
To install KMAK, visit this page: https://komodoresoft.com/kmak/.
It will give you more information about KMAK's features.
BUILDING KMAK
Although KMAK is built with itself KMAK, you can also
compile manually, since it is very minimal.
1. Clone the repository
Type these commands where you want to build KMAK. The
location do not necceralily matters.
```cmd
git clone https://github.com/komodoresoft/KMAK.git
cd KMAK
```
2. Build KMAK
From here, you simply need to type this command, assuming
that you have a C compiler named `gcc` otherwise, replace
`gcc` by your compiler's name. It should work fine.
```batch
gcc kmak.c -o kmak
```
Then, you will have a copy of KMAK ready to use!
AUTHOR Marc-Daniel DALEBA
DATE 2025-07-29
Back to Komodore