blob: 62c49befd32ab594a067974762ae1d465f031b1b (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
CC=gcc
CFLAGS?=-O2 -Wall -Wextra -Werror
PFLAGS=-std=c99 -pedantic
PREFIX?=/usr/local
all: lpass
sanitize: lpass.c
$(CC) $(PFLAGS) -g -fsanitize=undefined -fsanitize=leak -fsanitize=address -fno-omit-frame-pointer -fanalyzer -lcrypto lpass.c
lpass: lpass.c
$(CC) $(PFLAGS) $(CFLAGS) -lcrypto -o lpass lpass.c
clean:
rm -rf lpass
install: all
mkdir -p $(PREFIX)/bin
install -m755 lpass $(PREFIX)/bin/lpass
uninstall:
rm -rf $(PREFIX)/bin/lpass
.PHONY: all clean install uninstall
|