Update sk1/Makefile

This commit is contained in:
Yurii Chechur 2024-12-24 15:12:03 +00:00
parent 3cd1c0107f
commit ad3be0b3af

View File

@ -0,0 +1,21 @@
CC = gcc
CFLAGS = -Wall -Wextra -std=c11
SRC = main.c compressor.c
HEADERS = compressor.h
OBJ = $(SRC:.c=.o)
TARGET = compressor
all: $(TARGET)
$(TARGET): $(OBJ)
$(CC) $(CFLAGS) -o $@ $^
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJ) $(TARGET)
.PHONY: all clean