From: Brendan Hansen Date: Fri, 1 May 2020 18:48:05 +0000 (-0500) Subject: Initial commit X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=68d343ac03d7d8a9bcb21ccb928a16387bc7036a;p=onyx.git Initial commit --- 68d343ac03d7d8a9bcb21ccb928a16387bc7036a diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..97c16aa3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +**/*.o +*.o diff --git a/.vimspector.json b/.vimspector.json new file mode 100644 index 00000000..ee0c1bfc --- /dev/null +++ b/.vimspector.json @@ -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 index 00000000..86761a43 --- /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 index 00000000..e33fe9cd Binary files /dev/null and b/onyx differ diff --git a/onyx.c b/onyx.c new file mode 100644 index 00000000..b028e3b1 --- /dev/null +++ b/onyx.c @@ -0,0 +1,9 @@ + +#include // TODO: Replace with custom lib +#include // TODO: Replace with custom lib + +int main() { + puts("Hello World!"); + + return 0; +}