diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..be2be35 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "Alepha"] + path = Alepha + url = https://gitea.nerdland.org/alepha/Alepha diff --git a/Alepha b/Alepha new file mode 160000 index 0000000..de94ae4 --- /dev/null +++ b/Alepha @@ -0,0 +1 @@ +Subproject commit de94ae4d08701a68dba0065ab2142fd66bc1bba8000000000000000000000000 diff --git a/Makefile b/Makefile index 47d3e23..0a4b46b 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,19 @@ CXXFLAGS+= -std=c++17 -O3 CXXFLAGS+= -I /usr/local/include +LDFLAGS+= -Wl,-rpath,'$$ORIGIN/' + all: passgen pingen +passgen: libalepha.so + +.PHONY: __build_alepha + +libalepha.so: + mkdir -p build_alepha + cd build_alepha; cmake -GNinja -DCMAKE_BUILD_TYPE=Release ../Alepha; cp ../Alepha/helpful-things/Makefile .; make + cp build_alepha/libalepha.so . + clean: - rm -f passgen + rm -f passgen pingen + rm -fR build_alepha libalepha.so