bff/Makefile

29 lines
418 B
Makefile
Raw Normal View History

2023-12-01 14:07:33 +01:00
.PHONY: clean, mrproper, uninstall, install
2023-10-26 14:15:26 +02:00
CC = gcc
CFLAGS = -g -Wall
2023-12-01 14:07:33 +01:00
LDFLAGS =
2023-10-26 14:15:26 +02:00
2023-12-01 14:07:33 +01:00
PREFIX = /usr/local
2023-10-26 14:15:26 +02:00
2023-12-01 14:07:33 +01:00
all: bff
bff.o: bff.c
2023-10-26 14:15:26 +02:00
$(CC) $(CFLAGS) -c -o $@ $<
2023-12-01 14:07:33 +01:00
bff: bff.o
2023-10-26 14:15:26 +02:00
$(CC) $(CFLAGS) -o $@ $+
2023-12-01 14:07:33 +01:00
install: bff
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f bff $(DESTDIR)$(PREFIX)/bin
chmod 755 $(DESTDIR)$(PREFIX)/bin/bff
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/bff
2023-10-26 14:15:26 +02:00
clean:
rm -f *.o core.*
mrproper: clean
2023-10-26 14:19:06 +02:00
rm -f bff