first commit

This commit is contained in:
benstrb 2025-11-14 20:18:36 +01:00
commit b07cee75ce
13 changed files with 12839 additions and 0 deletions

22
Makefile Normal file
View file

@ -0,0 +1,22 @@
CC = gcc
RAYLIB_PATH = /home/benag/Projects/C/raylib
CFLAGS = -Wall -O2 -I$(RAYLIB_PATH)/include
LDFLAGS = -L$(RAYLIB_PATH)/lib -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 \
-Wl,-rpath=$(RAYLIB_PATH)/lib
SRC = main.c
TARGET = MyGame
all: $(TARGET)
$(TARGET): $(SRC)
$(CC) $(CFLAGS) $(SRC) $(LDFLAGS) -o $(TARGET)
clean:
rm -f $(TARGET)
# Temporary LD_LIBRARY_PATH for one-off runs
run: $(TARGET)
LD_LIBRARY_PATH=$(RAYLIB_PATH)/lib:$$LD_LIBRARY_PATH ./$(TARGET)