From 099c68b4b55ea00f1f878569f402c1d219051c54 Mon Sep 17 00:00:00 2001 From: josh Date: Sun, 4 Jan 2026 23:41:12 -0600 Subject: [PATCH] first commit --- .gitignore | 8 ++++++++ LICENSE.md | 19 +++++++++++++++++++ Makefile | 21 +++++++++++++++++++++ README.md | 3 +++ main.c | 7 +++++++ 5 files changed, 58 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE.md create mode 100644 Makefile create mode 100644 README.md create mode 100644 main.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..95265bb --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +app + +*.o +*.d +*.i +*.s +*.so +*.a diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..8b22bbf --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,19 @@ +zlib License + +(C) 2026 Joshua Wright + +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any damages +arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..96838ea --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +all: app + +app: main.c + @gcc -std=c23 -ggdb -Wall -Wextra -pedantic -O0 main.c -o app + +.PHONY: clean run test debug + +clean: + @rm -rf app + +run: app + -@./app + @rm -rf app + +test: app + @valgrind ./app + @rm -rf app + +debug: app + @gdb ./app + @rm -rf app diff --git a/README.md b/README.md new file mode 100644 index 0000000..2efa069 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# C Raylib Example + +This is a how to example of how to use raylib and raygui in C. diff --git a/main.c b/main.c new file mode 100644 index 0000000..c995d6f --- /dev/null +++ b/main.c @@ -0,0 +1,7 @@ +#include + +int main(void) { + printf("Hello\n"); + + return 0; +}