From 484cb420d28f3de262c7f6d2cd4eed8bf3ebd252 Mon Sep 17 00:00:00 2001 From: "Julian M. Kunkel" Date: Wed, 1 Jul 2020 09:19:10 +0100 Subject: [PATCH] Generate config file with build options --- src/Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Makefile.am b/src/Makefile.am index c718169..7f1be40 100755 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -133,3 +133,9 @@ MDTEST_CPPFLAGS = $(mdtest_CPPFLAGS) libaiori_a_SOURCES += $(extraSOURCES) libaiori_a_CPPFLAGS = $(extraCPPFLAGS) + +# Generate config file with build flags to allow reuse of library +all-local: build.conf +build.conf: + @echo LDFLAGS=$(LDFLAGS) $(extraLDFLAGS) $(extraLDADD) > build.conf + @echo CFLAGS=$(CFLAGS) $(extraCPPFLAGS) >> build.conf