usaa24/sk1/Makefile

18 lines
236 B
Makefile
Raw Normal View History

2025-01-28 19:11:59 +00:00
CC = gcc
CFLAGS = -Wall -Wextra -std=c11
SRC = compressor.c
OBJ = $(SRC:.c=.o)
TARGET = compressor
2025-01-28 19:06:25 +00:00
2025-01-28 19:11:59 +00:00
all: $(TARGET)
2025-01-28 19:06:25 +00:00
2025-01-28 19:11:59 +00:00
$(TARGET): $(OBJ)
$(CC) $(CFLAGS) -o $@ $(OBJ)
2025-01-28 19:06:25 +00:00
2025-01-28 19:11:59 +00:00
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
2025-01-28 19:06:25 +00:00
2025-01-28 19:11:59 +00:00
clean:
rm -f $(OBJ) $(TARGET)
2025-01-28 19:06:25 +00:00