usaa24/sk1/Makefile

19 lines
313 B
Makefile
Raw Normal View History

2024-12-24 15:12:03 +00:00
CC = gcc
2024-12-26 15:59:56 +00:00
CFLAGS = -Wall -Wextra -O2
TARGET = compressor
2024-12-26 16:02:20 +00:00
OBJS = main.o compressor.o
2024-12-24 15:12:03 +00:00
2024-12-26 16:02:20 +00:00
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS)
2024-12-24 15:12:03 +00:00
2024-12-24 18:43:01 +00:00
main.o: main.c compressor.h
$(CC) $(CFLAGS) -c main.c
2024-12-24 15:12:03 +00:00
2024-12-24 18:43:01 +00:00
compressor.o: compressor.c compressor.h
$(CC) $(CFLAGS) -c compressor.c
2024-12-24 15:12:03 +00:00
clean:
2024-12-26 16:02:20 +00:00
rm -f $(OBJS) $(TARGET)