summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2013-10-31 00:21:56 -0700
committerKenneth Graunke <kenneth@whitecape.org>2013-10-31 00:26:18 -0700
commita28e4200ef25fb9348be6dfbb77981c926f9c9c7 (patch)
tree629858cccfc9dfe816dccbd813790e0c2bf26821
parented993e821c8d65a01f18272219f70599794f0edf (diff)
Fix out of tree builds.HEADmaster
This was helpful for packaging on Gentoo, which defaults to out of tree builds for autotools projects. Cc: Ian Romanick <idr@freedesktop.org>
-rw-r--r--src/Makefile.am10
1 files 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