First small step
This commit is contained in:
@@ -137,3 +137,6 @@ dkms.conf
|
||||
*.out
|
||||
*.app
|
||||
|
||||
build/
|
||||
nob
|
||||
nob.old
|
||||
@@ -0,0 +1,21 @@
|
||||
#define NOB_IMPLEMENTATION
|
||||
#include "nob.h"
|
||||
|
||||
#define BUILD_FOLDER "build/"
|
||||
#define SRC_FOLDER "src/"
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
NOB_GO_REBUILD_URSELF(argc, argv);
|
||||
|
||||
if (!nob_mkdir_if_not_exists(BUILD_FOLDER))
|
||||
return 1;
|
||||
|
||||
Nob_Cmd cmd = {0};
|
||||
|
||||
nob_cmd_append(&cmd, "cc", "-Wall", "-Wextra", "-o", BUILD_FOLDER "kernel", SRC_FOLDER "kernel.c");
|
||||
|
||||
if (!nob_cmd_run(&cmd))
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
#include "stdio.h"
|
||||
|
||||
int main() {
|
||||
printf("Hello, world!\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user