usaa24/sk1/Makefile

24 lines
250 B
Makefile
Raw Normal View History

2025-01-28 20:21:20 +00:00
2025-01-28 19:25:38 +00:00
CC = gcc
CFLAGS = -Wall -Wextra -std=c99
2025-01-28 20:17:12 +00:00
TARGET = compressor
SRCS = main.c compressor.c
OBJS = $(SRCS:.c=.o)
2025-01-28 19:25:38 +00:00
2025-01-28 20:17:12 +00:00
all: $(TARGET)
2025-01-28 19:25:38 +00:00
2025-01-28 20:17:12 +00:00
$(TARGET): $(OBJS)
2025-01-28 20:21:20 +00:00
$(CC) $(CFLAGS) -o $@ $^
2025-01-28 20:17:12 +00:00
2025-01-28 20:21:20 +00:00
%.o: %.c
2025-01-28 20:17:12 +00:00
$(CC) $(CFLAGS) -c $< -o $@
2025-01-28 19:25:38 +00:00
clean:
2025-01-28 20:17:12 +00:00
rm -f $(OBJS) $(TARGET)