From 13b518f17dfb92136f8a1484869de7c350588d24 Mon Sep 17 00:00:00 2001 From: Petter Urkedal Date: Wed, 10 Aug 2011 19:38:35 +0200 Subject: [PATCH] Add and adjust include directories. * src/Makefile.am, tests/Makefile.am: Set compiler include paths to $(top_builddir)/src and $(top_srcdir)/src. --- src/Makefile.am | 1 + tests/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index a446571..875a7ce 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,5 @@ AM_CFLAGS=@PICFLAG@ +AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src include_HEADERS=atomic_ops.h atomic_ops_stack.h atomic_ops_malloc.h lib_LIBRARIES = libatomic_ops.a libatomic_ops_gpl.a diff --git a/tests/Makefile.am b/tests/Makefile.am index 35dab38..3a339e4 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -6,7 +6,7 @@ EXTRA_DIST=test_atomic_include.template list_atomic.template run_parallel.h \ BUILT_SOURCES = test_atomic_include.h list_atomic.i CLEANFILES = list_atomic.i -AM_CPPFLAGS=-I$(srcdir)/../src +AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src TESTS=test_atomic test_atomic_pthreads test_stack test_malloc -- 2.50.0