19 lines
313 B
Makefile
19 lines
313 B
Makefile
CC = gcc
|
|
CFLAGS = -Wall -Wextra -O2
|
|
TARGET = compressor
|
|
OBJS = main.o compressor.o
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS)
|
|
|
|
main.o: main.c compressor.h
|
|
$(CC) $(CFLAGS) -c main.c
|
|
|
|
compressor.o: compressor.c compressor.h
|
|
$(CC) $(CFLAGS) -c compressor.c
|
|
|
|
clean:
|
|
rm -f $(OBJS) $(TARGET)
|