usaa24/sk1/Makefile

18 lines
301 B
Makefile

# Makefile
CC = gcc
CFLAGS = -Wall -Wextra -O2
OBJ = main.o compressor.o
TARGET = compressor
$(TARGET): $(OBJ)
$(CC) $(OBJ) -o $(TARGET)
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 $(OBJ) $(TARGET)