Initial commit.

This commit is contained in:
2025-12-05 21:14:29 -05:00
commit 0984dec745
13 changed files with 190 additions and 0 deletions

24
config.mk Normal file
View File

@@ -0,0 +1,24 @@
NAME = terrin
TARGET = $(NAME).out
SRC_DIR = src
INC_DIR = $(SRC_DIR)/include
BUILD_DIR = build
OBJ_DIR = $(BUILD_DIR)/obj
CC = clang -std=c23
LINK = clang
CFLAGS = -Wall -DDBG -ggdb -fsanitize=leak
LDFLAGS = -lGL -lX11 -lXi -lXcursor -ldl -lpthread -lm
PRINT = echo -e
SRC_FILES = $(wildcard $(SRC_DIR)/*.c)
INC_FILES = $(wildcard $(INC_DIR)/*.h)
OBJ_FILES = $(patsubst $(SRC_DIR)/%.c, $(OBJ_DIR)/%.o, $(SRC_FILES))
OBJ_FILES_NOMAIN = $(filter-out $(OBJ_DIR)/main.o, $(OBJ_FILES)) # Object files without main.c.
RESETCOLOR = \033[0m
WHITE = $(RESETCOLOR)\033[0m
WHITE_BOLD = $(RESETCOLOR)\033[0;1m
RED_BOLD = $(RESETCOLOR)\033[31;1m