2023-10-26 14:15:26 +02:00
|
|
|
.PHONY: clean, mrproper
|
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -g -Wall
|
|
|
|
|
2023-10-26 14:19:06 +02:00
|
|
|
all: bff
|
2023-10-26 14:15:26 +02:00
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
2023-10-26 14:19:06 +02:00
|
|
|
bff: main.o
|
2023-10-26 14:15:26 +02:00
|
|
|
$(CC) $(CFLAGS) -o $@ $+
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o core.*
|
|
|
|
|
|
|
|
mrproper: clean
|
2023-10-26 14:19:06 +02:00
|
|
|
rm -f bff
|