usaa24/sk1/Makefile

36 lines
488 B
Plaintext
Raw Normal View History

2025-01-28 20:17:12 +00:00
2025-01-28 19:25:38 +00:00
CC = gcc
CFLAGS = -Wall -Wextra -std=c99
2025-01-28 20:17:12 +00:00
TARGET = compressor
SRCS = main.c compressor.c
HEADERS = compressor.h
OBJS = $(SRCS:.c=.o)
2025-01-28 19:25:38 +00:00
2025-01-28 20:17:12 +00:00
all: $(TARGET)
2025-01-28 19:25:38 +00:00
2025-01-28 20:17:12 +00:00
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $(TARGET) $(OBJS)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
2025-01-28 19:25:38 +00:00
clean:
2025-01-28 20:17:12 +00:00
rm -f $(OBJS) $(TARGET)
help:
@echo "Usage: make [target]"
@echo "Targets:"
@echo " all - Build the project"
@echo " clean - Remove all built files"
@echo " help - Show this help message"