2025-01-28 19:11:59 +00:00
|
|
|
CC = gcc
|
2025-01-28 19:15:56 +00:00
|
|
|
CFLAGS = -Wall -Wextra -std=c99
|
2025-01-28 19:06:25 +00:00
|
|
|
|
2025-01-28 19:15:56 +00:00
|
|
|
all: compressor
|
2025-01-28 19:06:25 +00:00
|
|
|
|
2025-01-28 19:15:56 +00:00
|
|
|
compressor: main.o compressor.o
|
2025-01-28 19:18:45 +00:00
|
|
|
$(CC) $(CFLAGS) -o compressor main.o compressor.o
|
2025-01-28 19:06:25 +00:00
|
|
|
|
2025-01-28 19:15:56 +00:00
|
|
|
main.o: main.c compressor.h
|
2025-01-28 19:18:45 +00:00
|
|
|
$(CC) $(CFLAGS) -c main.c
|
2025-01-28 19:06:25 +00:00
|
|
|
|
2025-01-28 19:15:56 +00:00
|
|
|
compressor.o: compressor.c compressor.h
|
2025-01-28 19:18:45 +00:00
|
|
|
$(CC) $(CFLAGS) -c compressor.c
|
2025-01-28 19:06:25 +00:00
|
|
|
|
2025-01-28 19:15:56 +00:00
|
|
|
clean:
|
2025-01-28 19:18:45 +00:00
|
|
|
rm -f *.o compressor
|