From fcb0a17768142fbd660aae6a24015b67522b015a Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 4 Jan 2021 21:07:18 +0100 Subject: 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. --- utilities/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 utilities/Makefile (limited to 'utilities/Makefile') 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) -- cgit v1.2.3-70-g09d2