aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-06-19 18:03:08 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-06-19 18:03:08 +0200
commit7a8d4d0934cb51c8ad7f7af84669bb0197c7b89e (patch)
treebaee714d2e4e2c9558b2496576e47fbc63ca9d67 /Makefile
parentdc8a5e4b433c2e6142060e4701fd456082461e72 (diff)
Zero incoming passwords in memory using libsodium
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 03ad55b..0ed32b2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
CC = gcc
-CFLAGS = -Wall -Wextra -std=c11 -g -fwrapv -D_DEFAULT_SOURCE
-LDFLAGS = -lsqlite3 -ldl
+CFLAGS = -Wall -Wextra -std=c11 -g -O2 -fwrapv -D_DEFAULT_SOURCE
+LDFLAGS = -ldl
+CFLAGS += $(shell pkg-config --cflags sqlite3 libsodium)
+LDFLAGS += $(shell pkg-config --libs sqlite3 libsodium)
TARGETS = tomsg_server