From 97deedd97a1d026586afa23d47a00322bcd22e59 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Sun, 15 Jun 2025 09:40:02 +0200 Subject: Update auf neue lua-bcrypt version --- makefile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index f98f66c..e0a8644 100644 --- a/makefile +++ b/makefile @@ -1,13 +1,22 @@ all: bcrypt-test -CFLAGS =-Wall -Werror -std=c99 -pedantic -g +# git clone https://github.com/mikejsavage/lua-bcrypt.git +LUA_BCRYPT_PATH=../lua-bcrypt/src -bcrypt-test: bcrypt-test.o - cc -o $@ bcrypt-test.o lua-bcrypt/bcrypt.a +CFLAGS =-Wall -Werror -Wno-pointer-sign -std=c17 -O2 -I$(LUA_BCRYPT_PATH) -bcrypt-test.o: bcrypt-test.c +bcrypt-test: bcrypt-test.o bcrypt-lib.a + cc -o $@ bcrypt-test.o bcrypt-lib.a + +bcrypt-lib.a: bcrypt.o blowfish.o ggentropy.o safebfuns.o + ar -crs $@ $^ + +%.o: %.c + cc $(CFLAGS) -o $@ -c $< + +%.o: $(LUA_BCRYPT_PATH)/%.c cc $(CFLAGS) -o $@ -c $< .PHONY: clean clean: - rm -f bcrypt-test bcrypt-test.o + rm -f bcrypt-test *.a *.o -- cgit v1.3