summaryrefslogtreecommitdiff
path: root/applications/goldman
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-05-20 17:40:47 -0400
committerBenji Dial <benji@benjidial.net>2024-05-20 17:40:47 -0400
commit9af5588c30c4126a2800aae1afcb0de2c373dc6c (patch)
treed2a48a97b1664f958b5f88a8b0c03ef8366b0f49 /applications/goldman
parent5a54df93c4e9368c36e69d1e9c88cd2904e92308 (diff)
downloadhilbert-os-9af5588c30c4126a2800aae1afcb0de2c373dc6c.tar.gz
rewrite application stuff in the kernel to support multitasking
Diffstat (limited to 'applications/goldman')
-rw-r--r--applications/goldman/makefile12
-rw-r--r--applications/goldman/source/main.cpp4
2 files changed, 16 insertions, 0 deletions
diff --git a/applications/goldman/makefile b/applications/goldman/makefile
new file mode 100644
index 0000000..5b93fe4
--- /dev/null
+++ b/applications/goldman/makefile
@@ -0,0 +1,12 @@
+SOURCES = \
+ main.cpp
+
+build/%.cpp.o: source/%.cpp
+ @mkdir -p $(@D)
+ $(HILBERT_CC) -c $^ -o $@
+
+build/goldman.elf: $(SOURCES:%=build/%.o)
+ $(HILBERT_CC) $^ -o $@
+
+clean:
+ rm -rf build
diff --git a/applications/goldman/source/main.cpp b/applications/goldman/source/main.cpp
new file mode 100644
index 0000000..28ed00a
--- /dev/null
+++ b/applications/goldman/source/main.cpp
@@ -0,0 +1,4 @@
+int main(int, char **) {
+ while (1)
+ ;
+}