Streamii 1.0.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user