summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-24 14:59:16 -0800
committerZachary T Welch <zw@superlucidity.net>2009-12-03 01:54:15 -0800
commit896ac8d4ef3212f80887bf009d626c5becb1240a (patch)
treeb354b4f49ff4ef632a364117f6559b2d47cacf27
parenta976ce2dd4d3d6f0e851a5903494805ea60133f4 (diff)
downloadopenocd_libswd-896ac8d4ef3212f80887bf009d626c5becb1240a.tar.gz
openocd_libswd-896ac8d4ef3212f80887bf009d626c5becb1240a.tar.bz2
openocd_libswd-896ac8d4ef3212f80887bf009d626c5becb1240a.tar.xz
openocd_libswd-896ac8d4ef3212f80887bf009d626c5becb1240a.zip
allow #include directives to use module name
Includes the src directory in the search path, so header files may be migrated from: #include "foo.h" to #include <module/foo.h> which is more conducive for installation.
-rw-r--r--src/flash/Makefile.am1
-rw-r--r--src/flash/nand/Makefile.am1
-rw-r--r--src/flash/nor/Makefile.am1
-rw-r--r--src/helper/Makefile.am1
-rw-r--r--src/jtag/Makefile.am1
-rw-r--r--src/jtag/drivers/Makefile.am1
-rw-r--r--src/pld/Makefile.am1
-rw-r--r--src/svf/Makefile.am1
-rw-r--r--src/target/Makefile.am1
-rw-r--r--src/xsvf/Makefile.am1
10 files changed, 10 insertions, 0 deletions
diff --git a/src/flash/Makefile.am b/src/flash/Makefile.am
index 54a5116e..ee322eee 100644
--- a/src/flash/Makefile.am
+++ b/src/flash/Makefile.am
@@ -3,6 +3,7 @@ SUBDIRS = \
nand
AM_CPPFLAGS = \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/src/helper \
-I$(top_srcdir)/src/jtag \
-I$(top_srcdir)/src/target
diff --git a/src/flash/nand/Makefile.am b/src/flash/nand/Makefile.am
index e95717e2..921b7f3d 100644
--- a/src/flash/nand/Makefile.am
+++ b/src/flash/nand/Makefile.am
@@ -1,4 +1,5 @@
AM_CPPFLAGS = \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/src/flash \
-I$(top_srcdir)/src/helper \
-I$(top_srcdir)/src/jtag \
diff --git a/src/flash/nor/Makefile.am b/src/flash/nor/Makefile.am
index d2d99981..1be84bec 100644
--- a/src/flash/nor/Makefile.am
+++ b/src/flash/nor/Makefile.am
@@ -1,4 +1,5 @@
AM_CPPFLAGS = \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/src/helper \
-I$(top_srcdir)/src/jtag \
-I$(top_srcdir)/src/flash \
diff --git a/src/helper/Makefile.am b/src/helper/Makefile.am
index 01e805eb..bf8527f8 100644
--- a/src/helper/Makefile.am
+++ b/src/helper/Makefile.am
@@ -1,4 +1,5 @@
AM_CPPFLAGS = \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/src/server \
-I$(top_srcdir)/src/target \
-DPKGDATADIR=\"$(pkgdatadir)\"
diff --git a/src/jtag/Makefile.am b/src/jtag/Makefile.am
index 421987c4..4ca0c782 100644
--- a/src/jtag/Makefile.am
+++ b/src/jtag/Makefile.am
@@ -1,4 +1,5 @@
AM_CPPFLAGS = \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/src/helper \
-I$(top_srcdir)/src/target
diff --git a/src/jtag/drivers/Makefile.am b/src/jtag/drivers/Makefile.am
index 15fbae39..4e2bce04 100644
--- a/src/jtag/drivers/Makefile.am
+++ b/src/jtag/drivers/Makefile.am
@@ -1,4 +1,5 @@
AM_CPPFLAGS = \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/src/helper \
-I$(top_srcdir)/src/jtag
diff --git a/src/pld/Makefile.am b/src/pld/Makefile.am
index 06d4fc4d..d99a89cd 100644
--- a/src/pld/Makefile.am
+++ b/src/pld/Makefile.am
@@ -1,4 +1,5 @@
AM_CPPFLAGS = \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/src/server \
-I$(top_srcdir)/src/helper \
-I$(top_srcdir)/src/jtag
diff --git a/src/svf/Makefile.am b/src/svf/Makefile.am
index 4dbd57fa..10cb9671 100644
--- a/src/svf/Makefile.am
+++ b/src/svf/Makefile.am
@@ -1,4 +1,5 @@
AM_CPPFLAGS = \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/src/server \
-I$(top_srcdir)/src/helper \
-I$(top_srcdir)/src/jtag
diff --git a/src/target/Makefile.am b/src/target/Makefile.am
index 6d2b76d9..cd903551 100644
--- a/src/target/Makefile.am
+++ b/src/target/Makefile.am
@@ -6,6 +6,7 @@ OOCD_TRACE_FILES =
endif
AM_CPPFLAGS = \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/src/helper \
-I$(top_srcdir)/src/jtag \
-I$(top_srcdir)/src/xsvf
diff --git a/src/xsvf/Makefile.am b/src/xsvf/Makefile.am
index fd9f8c3f..5a58e269 100644
--- a/src/xsvf/Makefile.am
+++ b/src/xsvf/Makefile.am
@@ -1,4 +1,5 @@
AM_CPPFLAGS = \
+ -I$(top_srcdir)/src \
-I$(top_srcdir)/src/server \
-I$(top_srcdir)/src/helper \
-I$(top_srcdir)/src/svf \