totp/Makefile
Adrien Gallouët e9d2642efc First draft
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-09-13 21:48:31 +00:00

18 lines
304 B
Makefile

CC = cc
CFLAGS = -Wall -O2
prefix = /usr/local
totp:
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) totp.c -o totp
install: totp
mkdir -p $(DESTDIR)$(prefix)/bin
mv -f totp $(DESTDIR)$(prefix)/bin
uninstall:
rm -f $(DESTDIR)$(prefix)/bin/totp
clean:
rm -f totp
.PHONY: totp install uninstall clean