# Compiler settings
CC = gcc
CFLAGS = -Wall -Wextra -std=c99 -I dependancies

# Linker settings
LDFLAGS = -L dependancies
# Standard Linux dependencies required by Raylib
LDLIBS = -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 -lfann

# Project files
TARGET = creature_sim
SRC = main.c

# Default target
all: $(TARGET)

# Compile the executable
$(TARGET): $(SRC)
	$(CC) $(CFLAGS) $(SRC) -o $(TARGET) $(LDFLAGS) $(LDLIBS)

# Clean up build files
clean:
	rm -f $(TARGET)

.PHONY: all clean
