diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -1,5 +1,20 @@ -CC = gcc -CFLAGS = -O2 -Wall +CC=gcc +CFLAGS?=-O2 -Wall -Wextra -Werror +PREFIX?=/usr/local + +all: lpass lpass: lpass.c - $(CC) $(CFLAGS) -lcrypto -o lpass lpass.c + $(CC) -std=c99 -pedantic $(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 |