aboutsummaryrefslogtreecommitdiff
path: root/utilities/Makefile
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2021-01-04 21:07:18 +0100
committerTom Smeding <tom.smeding@gmail.com>2021-01-04 21:07:18 +0100
commitfcb0a17768142fbd660aae6a24015b67522b015a (patch)
tree81eb85a72734497020197e8c3c3d52a4edaaed08 /utilities/Makefile
parent32566e4d640e354adaa83cf9b7240bfc2cdd83e3 (diff)
utilities: hash_pass: Password hashing utility (doesn't work yet)
It nicely gives a hash, but the server doesn't accept the corresponding password afterwards. Probably did something stupid.
Diffstat (limited to 'utilities/Makefile')
-rw-r--r--utilities/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/utilities/Makefile b/utilities/Makefile
new file mode 100644
index 0000000..684054a
--- /dev/null
+++ b/utilities/Makefile
@@ -0,0 +1,20 @@
+CC = gcc
+CFLAGS = -Wall -Wextra -std=c11 -g -O2 -D_DEFAULT_SOURCE
+LDFLAGS =
+CFLAGS += $(shell pkg-config --cflags libsodium)
+LDFLAGS += $(shell pkg-config --libs libsodium)
+
+SOURCES = $(wildcard *.c)
+TARGETS = $(SOURCES:.c=)
+
+
+.PHONY: all clean
+
+all: $(TARGETS)
+
+clean:
+ rm -f $(TARGETS)
+
+
+$(TARGETS): %: %.c
+ $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)