blob: 03f01c437c545b4c14a77a4628111862dc20d51b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
.POSIX:
CC = cc
CFLAGS = \
-Wall -Wextra -pedantic -Wshadow -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wmissing-prototypes -Wmissing-declarations \
-Wredundant-decls -Wnested-externs -Winline -Wno-long-long \
-Wconversion -Wstrict-prototypes \
-O3 -march=native -mtune=native -pipe
LDLIBS = -luriparser -lssl -lcrypto
PREFIX = /usr/local
DPREFIX = ${DESTDIR}${PREFIX}
all: totp
totp: main.o b32.o
${CC} ${LDLIBS} -o $@ main.o b32.o
main.o: main.c b32.h
b32.o: b32.c b32.h
install:
mkdir -p ${DPREFIX}/bin ${DPREFIX}/share/man/man1
cp totp ${DPREFIX}/bin
cp totp.1 ${DPREFIX}/share/man/man1
clean:
rm -f totp *.o
|