-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kthd: stub for kernel thread helper daemon
- Loading branch information
1 parent
6e0ef8f
commit a37d289
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
PLATFORM=x86_64-lux | ||
CCFLAGS=-Wall -c -I./src/include -O3 | ||
LDFLAGS=-llux | ||
CC=x86_64-lux-gcc | ||
LD=x86_64-lux-gcc | ||
SRC:=$(shell find ./src -type f -name "*.c") | ||
OBJ:=$(SRC:.c=.o) | ||
|
||
all: kthd | ||
|
||
%.o: %.c | ||
@echo "\x1B[0;1;32m cc \x1B[0m $<" | ||
@$(CC) $(CCFLAGS) -o $@ $< | ||
|
||
kthd: $(OBJ) | ||
@echo "\x1B[0;1;93m ld \x1B[0m kthd" | ||
@$(LD) $(OBJ) -o kthd $(LDFLAGS) | ||
|
||
install: kthd | ||
@cp kthd ../out/ | ||
|
||
clean: | ||
@rm -f kthd $(OBJ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
* luxOS - a unix-like operating system | ||
* Omar Elghoul, 2024 | ||
* | ||
* kthd: Kernel Thread Helper Daemon | ||
*/ | ||
|
||
int main() { | ||
return 0; // stub | ||
} |