Initial commit
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 1 May 2020 18:48:05 +0000 (13:48 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 1 May 2020 18:48:05 +0000 (13:48 -0500)
.gitignore [new file with mode: 0644]
.vimspector.json [new file with mode: 0644]
Makefile [new file with mode: 0644]
onyx [new file with mode: 0755]
onyx.c [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..97c16aa
--- /dev/null
@@ -0,0 +1,2 @@
+**/*.o
+*.o
diff --git a/.vimspector.json b/.vimspector.json
new file mode 100644 (file)
index 0000000..ee0c1bf
--- /dev/null
@@ -0,0 +1,25 @@
+{
+    "configurations": {
+        "cpptools-run": {
+            "adapter": "vscode-cpptools",
+            "configuration": {
+                "type": "cppdbg",
+                "request": "launch",
+                "program": "${workspaceFolder}/onyx",
+                "args": ["demo.onyx"],
+                "stopAtEntry": true,
+                "cwd": "${workspaceFolder}",
+                "environment": [],
+                "externalConsole": false,
+                "MIMode": "gdb",
+                "setupCommands": [
+                    {
+                        "description": "Enable pretty-printing for gdb",
+                        "text": "-enable-pretty-printing",
+                        "ignoreFailures": true
+                    }
+                ]
+            }
+        }
+    }
+}
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..86761a4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+OBJ_FILES=\
+       onyx.o
+
+CC=gcc
+INCLUDES=
+LIBS=
+FLGAS=-g
+
+%.o: %.c
+       $(CC) $(FLAGS) -c $< -o $@ $(INCLUDES)
+
+onyx: $(OBJ_FILES)
+       $(CC) $(FLAGS) $< -o $@ $(LIBS)
+
+all: onyx clean
diff --git a/onyx b/onyx
new file mode 100755 (executable)
index 0000000..e33fe9c
Binary files /dev/null and b/onyx differ
diff --git a/onyx.c b/onyx.c
new file mode 100644 (file)
index 0000000..b028e3b
--- /dev/null
+++ b/onyx.c
@@ -0,0 +1,9 @@
+
+#include <stdio.h> // TODO: Replace with custom lib
+#include <stdlib.h> // TODO: Replace with custom lib
+
+int main() {
+       puts("Hello World!");
+
+       return 0;
+}