diff --git a/sk1/Makefile b/sk1/Makefile index e69de29..e11572a 100644 --- a/sk1/Makefile +++ b/sk1/Makefile @@ -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