Files
2025-02-24 15:18:44 -05:00

25 lines
338 B
Makefile

CC = gcc
CFLAGS = -Wall -Wextra -std=c11
# The final executable name
TARGET = terrarium
# Source files
SRCS = main.c game.c ascii_plant_data.c
# Object files
OBJS = $(SRCS:.c=.o)
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS)
%.o: %.c
$(CC) $(CFLAGS) -c $<
clean:
rm -f $(TARGET) *.o
rm -f terrarium_save.dat