Add and adjust include directories.
authorPetter Urkedal <paurkedal@gmail.com>
Wed, 10 Aug 2011 17:38:35 +0000 (19:38 +0200)
committerPetter Urkedal <paurkedal@gmail.com>
Wed, 10 Aug 2011 17:38:35 +0000 (19:38 +0200)
* src/Makefile.am, tests/Makefile.am: Set compiler include paths
to $(top_builddir)/src and $(top_srcdir)/src.

src/Makefile.am
tests/Makefile.am

index a446571..875a7ce 100644 (file)
@@ -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
index 35dab38..3a339e4 100644 (file)
@@ -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