diff options
| author | Emil Williams | 2026-01-31 14:13:10 +0000 |
|---|---|---|
| committer | Emil Williams | 2026-01-31 14:13:10 +0000 |
| commit | 9efa9a51eda66f212847ce3e5576a8d3078ca899 (patch) | |
| tree | 34dd60911d3cee81e27b866fc6fbc4e46b2e398a | |
| download | EUROPAXI-9efa9a51eda66f212847ce3e5576a8d3078ca899.tar.xz EUROPAXI-9efa9a51eda66f212847ce3e5576a8d3078ca899.tar.zst | |
init
| -rw-r--r-- | .gitignore | 1 | ||||
| -rwxr-xr-x | Makefile | 47 | ||||
| -rw-r--r-- | README | 3 | ||||
| -rw-r--r-- | api/README | 1 | ||||
| -rw-r--r-- | include/.gitignore | 2 | ||||
| -rw-r--r-- | source/main.c | 27 |
6 files changed, 81 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5eb5067 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +EUROPA|XI diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..90e1138 --- /dev/null +++ b/Makefile @@ -0,0 +1,47 @@ +#!/usr/bin/make -f +# Don't fucking touch this without a good reason or I will fucking strangle you + +CFLAGS := -std=gnu23 +CPPFLAGS := -Iinclude +LDFLAGS := -lm + +DEBUG := 1 + +ifeq (${DEBUG},1) + CFLAGS += -Og -ggdb -pg -fno-inline -Wall -Wextra -Wpedantic -Wshadow -Wundef +else + CFLAGS += -O2 -flto=auto + CPPFLAGS += -DNDEBUG -D_FORTIFY_SOURCE=2 +endif + +SOURCE.dir := source +OBJECT.dir := object +HEADER := $(wildcard *.h) # yeah it's duplicative however that is unimportant +SOURCE.orig := $(wildcard ${SOURCE.dir}/*.c) +SOURCE.orig := $(SOURCE.orig:${SOURCE.dir}/%=%) +SOURCE := $(addprefix ${SOURCE.dir}/, $(SOURCE.orig)) +OBJECT := $(addprefix ${OBJECT.dir}/, $(SOURCE.orig:.c=.o)) + +${OBJECT.dir}/%.o: ${SOURCE.dir}/%.c + @echo "CC $<" + @${COMPILE.c} $(CPPFLAGS) -o $@ $< + +all: EUROPA\|XI + +clean: + rm -f $(OBJECT) EUROPA\|XI + +EUROPA|XI: $(HEADER) | $(OBJECT) + @echo "LD $@" + @${LINK.c} -o "$@" $| library/libraylib.amd64.a $(LDFLAGS) + +library/libraylib.amd64.a: + @rm -rf /tmp/raylib-5.5_linux_amd64 + wget -P /tmp/ "https://github.com/raysan5/raylib/releases/download/5.5/raylib-5.5_linux_amd64.tar.gz" + @tar xvC /tmp/ -f /tmp/raylib-5.5_linux_amd64.tar.gz \ + raylib-5.5_linux_amd64/lib/libraylib.a \ + raylib-5.5_linux_amd64/LICENSE \ + raylib-5.5_linux_amd64/include + @cp -f /tmp/raylib-5.5_linux_amd64/lib/libraylib.a library/libraylib.amd64.a + @cp -f /tmp/raylib-5.5_linux_amd64/include/* include/ + @cp -n /tmp/raylib-5.5_linux_amd64/LICENSE library/libraylib.LICENSE.a @@ -0,0 +1,3 @@ +EUROPA|XI + +"The one and only." diff --git a/api/README b/api/README new file mode 100644 index 0000000..9b3bbb7 --- /dev/null +++ b/api/README @@ -0,0 +1 @@ +We should define the API shit here or via Email. diff --git a/include/.gitignore b/include/.gitignore new file mode 100644 index 0000000..0f2b0da --- /dev/null +++ b/include/.gitignore @@ -0,0 +1,2 @@ +ray* +rl* diff --git a/source/main.c b/source/main.c new file mode 100644 index 0000000..552b906 --- /dev/null +++ b/source/main.c @@ -0,0 +1,27 @@ +#include <raylib.h> + +int main (int count, char ** arguments) +{ + /* :config */ + int horizontal = 1920, vertical = 1080; + + /* this idented (DENTED) style is autistic and dumb but I like it visually */ + { + SetConfigFlags(FLAG_WINDOW_RESIZABLE); + /* tell raylib to shut up */ + /* SetTraceLogLevel(LOG_NONE); */ + InitWindow(horizontal, vertical, arguments[0]); + SetWindowState(FLAG_WINDOW_HIDDEN); + InitAudioDevice(); + SetWindowPosition(0, 0); + } + /* loop to end all loops */ + { + + } +stop: + SetWindowState(FLAG_WINDOW_HIDDEN); + CloseAudioDevice(); + CloseWindow(); + return 0; +} |
