Update sk1/Makefile

This commit is contained in:
Yurii Chechur 2024-12-26 16:02:20 +00:00
parent 9f28b757e5
commit f0122c07a0

View File

@ -1,11 +1,12 @@
# Makefile
CC = gcc CC = gcc
CFLAGS = -Wall -Wextra -O2 CFLAGS = -Wall -Wextra -O2
OBJ = main.o compressor.o
TARGET = compressor TARGET = compressor
OBJS = main.o compressor.o
$(TARGET): $(OBJ) all: $(TARGET)
$(CC) $(OBJ) -o $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS)
main.o: main.c compressor.h main.o: main.c compressor.h
$(CC) $(CFLAGS) -c main.c $(CC) $(CFLAGS) -c main.c
@ -14,4 +15,4 @@ compressor.o: compressor.c compressor.h
$(CC) $(CFLAGS) -c compressor.c $(CC) $(CFLAGS) -c compressor.c
clean: clean:
rm -f $(OBJ) $(TARGET) rm -f $(OBJS) $(TARGET)