aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSamuel Fadel <samuel@nihil.ws>2023-04-19 14:19:49 +0200
committerSamuel Fadel <samuel@nihil.ws>2023-04-19 14:19:49 +0200
commit267c6a928789c7d0600935fea88fcdbddcf1ea58 (patch)
tree55c336f38f6ccdacd1b9b37a320cbeb452845f5c /Makefile
parentbd625917ceda9c824f2ce609846fd484d207f934 (diff)
Added Guix manifest file and new make target.
* Makefile: Added sanitize target * manifest.scm: Added
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6a4177a..62c49be 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,15 @@
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) -std=c99 -pedantic $(CFLAGS) -lcrypto -o lpass lpass.c
+ $(CC) $(PFLAGS) $(CFLAGS) -lcrypto -o lpass lpass.c
clean:
rm -rf lpass