diff --git a/sk1/Makefile b/sk1/Makefile index 5dc548b..4d26641 100644 --- a/sk1/Makefile +++ b/sk1/Makefile @@ -1,11 +1,12 @@ -# Makefile CC = gcc CFLAGS = -Wall -Wextra -O2 -OBJ = main.o compressor.o TARGET = compressor +OBJS = main.o compressor.o -$(TARGET): $(OBJ) - $(CC) $(OBJ) -o $(TARGET) +all: $(TARGET) + +$(TARGET): $(OBJS) + $(CC) $(CFLAGS) -o $@ $(OBJS) main.o: main.c compressor.h $(CC) $(CFLAGS) -c main.c @@ -14,4 +15,4 @@ compressor.o: compressor.c compressor.h $(CC) $(CFLAGS) -c compressor.c clean: - rm -f $(OBJ) $(TARGET) + rm -f $(OBJS) $(TARGET)