Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
ignoreddir/
.vscode/
*.exe*
*.exe

.tof.conf
tof_output.md

nob
nob.old
main
raylib
raylib.a
51 changes: 51 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
CC=gcc
AR=ar

EXE=creaturettes.exe

CFLAGS=-o $(EXE) -Wall -Wextra -std=c99 -Iraylib/src

SOURCES=src/main.c raylib.a

ifeq ($(OS), Windows_NT)
CMD=$(CC) $(SOURCES) $(CFLAGS) -lgd32 -lwinmm
else
CMD=$(CC) $(SOURCES) $(CFLAGS) -lm
endif

# If we're using TCC, we disable SIMD
ifeq ($(CC), tcc)
CONFIG_CMD=$(shell echo "#define STBIR_NO_SIMD 1" >> raylib/src/config.h )
else
CONFIG_CMD=
endif

build: raylib.a
$(CMD) -O0 -g -DPLATFORM_DESKTOP

release: raylib.a
$(CMD) -O3 -s -DRELEASE -DPLATFORM_DESKTOP

clang:
make release CC=clang

gcc:
make release CC=gcc

tcc:
make release CC=tcc AR="tcc -ar"

run: build
./$(EXE)

raylib:
git clone --depth 1 --branch 5.5 https://github.com/raysan5/raylib

raylib.a: raylib
$(CONFIG_CMD)
make -C raylib/src CC="$(CC)" AR="$(AR)" RAYLIB_MODULE_MODELS=FALSE
cp raylib/src/libraylib.a raylib.a

clean:
make -C raylib/src clean
rm -f *.a *.o $(EXE)
2,599 changes: 0 additions & 2,599 deletions raylib-5.5_linux_amd64/CHANGELOG

This file was deleted.

16 changes: 0 additions & 16 deletions raylib-5.5_linux_amd64/LICENSE

This file was deleted.

150 changes: 0 additions & 150 deletions raylib-5.5_linux_amd64/README.md

This file was deleted.

Loading