Files
2048/Makefile
T
SnailMan eb8834324e Split the game core and ui code into their respective modules
Game state struct ends the variable mess in main.c
2026-03-06 15:24:33 +01:00

20 lines
273 B
Makefile

CC = gcc
CFLAGS = -Wall -Wextra -std=c11
LIBS = -lraylib -lm -lpthread -ldl
TARGET = main
SRC = main.c game.c ui.c
all: $(TARGET)
$(TARGET): $(SRC)
$(CC) $(CFLAGS) $(SRC) -o $(TARGET) $(LIBS)
clean:
rm -f $(TARGET)
run: $(TARGET)
./$(TARGET)
.PHONY: all clean run