[glu3-devel] [PATCH (glu3)] Fix out of tree builds.

Kenneth Graunke kenneth at whitecape.org
Thu Oct 31 08:28:44 CET 2013


This was helpful for packaging on Gentoo, which defaults to out of tree
builds for autotools projects.

Cc: Ian Romanick <idr at freedesktop.org>
---
 src/Makefile.am | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index c3e0335..43b22e2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -20,8 +20,8 @@
 # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
 # USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-AM_CXXFLAGS=-I../include
-AM_CFLAGS=-I../include
+AM_CXXFLAGS=-I$(top_srcdir)/include
+AM_CFLAGS=-I$(top_srcdir)/include
 
 lib_LIBRARIES = libGLU3.a
 libGLU3_a_SOURCES = matrix.c load_text.c arcball.c revolve.c mesh.cpp \
@@ -29,6 +29,8 @@ libGLU3_a_SOURCES = matrix.c load_text.c arcball.c revolve.c mesh.cpp \
 	buffer.c buffer.h shape.cpp
 
 libGLU3includedir = ${includedir}
-libGLU3include_HEADERS = ../include/glu3.h ../include/glu3_scalar.h
+libGLU3include_HEADERS = \
+	$(top_srcdir)/include/glu3.h $(top_srcdir)/include/glu3_scalar.h
 
-noinst_HEADERS = ../include/GL/glext.h ../include/GL/wglext.h
+noinst_HEADERS = \
+	$(top_srcdir)/include/GL/glext.h $(top_srcdir)/include/GL/wglext.h
-- 
1.8.3.2



More information about the GLU3-devel mailing list