Update sk1/Makefile

This commit is contained in:
Yurii Yakovenko 2025-01-28 20:21:20 +00:00
parent a8e1e4d96d
commit 68f7676c38

View File

@ -1,12 +1,9 @@
CC = gcc
CFLAGS = -Wall -Wextra -std=c99
TARGET = compressor
SRCS = main.c compressor.c
HEADERS = compressor.h
OBJS = $(SRCS:.c=.o)
@ -14,20 +11,13 @@ all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $(TARGET) $(OBJS)
$(CC) $(CFLAGS) -o $@ $^
%.o: %.c $(HEADERS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
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"