Files
fiche/Makefile
Robert Schütz e3f7005180 Move /bin suffix to $prefix
This makes it a lot more portable. For example, on NixOS, there is no `bin` directory.
2017-10-02 19:03:43 +02:00

15 lines
294 B
Makefile

# for debug add -g -O0 to line below
CFLAGS+=-pthread -O2 -Wall -Wextra -Wpedantic -Wstrict-overflow -fno-strict-aliasing -std=gnu11 -g -O0
prefix=/usr/local/bin
all:
${CC} main.c fiche.c $(CFLAGS) -o fiche
install: fiche
install -m 0755 fiche $(prefix)
clean:
rm -f fiche
.PHONY: clean