makefile: support out of tree builds

This commit is contained in:
cathugger
2019-03-17 02:23:10 +02:00
parent 5c58f03805
commit c9d4f79b9f
3 changed files with 23 additions and 13 deletions

View File

@@ -293,9 +293,13 @@ yes|pcre2)
;;
esac
# recreate dir tree, because otherwise gcc will fuck up
(cd "$srcdir" && find ed25519 -type d) | xargs mkdir -p
AC_SUBST(CSTD,["$cstd"])
AC_SUBST(ED25519IMPL,["$ed25519impl"])
AC_SUBST(MYDEFS,["$MYDEFS"])
AC_SUBST(MAINLIB,["$MAINLIB"])
AC_SUBST(NOPIE,["$nopie"])
AC_SUBST(SRCDIR,["$srcdir"])
AC_OUTPUT(Makefile)