Streamii 1.0.

This commit is contained in:
2025-04-03 12:31:59 +02:00
parent 12bb3a8e23
commit d4365b0efa
11 changed files with 379 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
CC = gcc
CFLAGS = -Wall -Wextra -std=c11 -D_DEFAULT_SOURCE
LDFLAGS = -lncurses
# Executable name
TARGET = streamii_tamagotchi
# Source files
SRCS = main.c tamagotchi.c ui.c
# Object files
OBJS = $(SRCS:.c=.o)
# Default target
all: $(TARGET)
# Linking the target executable
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
# Compiling source files
%.o: %.c
$(CC) $(CFLAGS) -c $<
# Clean up
clean:
rm -f $(OBJS) $(TARGET)
# Phony targets
.PHONY: all clean