aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2019-05-21 21:16:40 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2019-05-21 21:16:40 +0200
commiteae5589efa14dd13f42a9190414b62d4056f1221 (patch)
treeb494536444be9d6eaf2724c086cd4584a329aba6
parent5aa2b4c865122a569e142d830175e31972afae9d (diff)
downloadembedlog-eae5589efa14dd13f42a9190414b62d4056f1221.tar.gz
embedlog-eae5589efa14dd13f42a9190414b62d4056f1221.tar.bz2
embedlog-eae5589efa14dd13f42a9190414b62d4056f1221.zip
*/Makefile.am: usr $top_builddir for include path for embedlog.h
embedlog.h is now generated, so include paths must be changed so that path to generated file is passed. This is needed to make out of tree compilation work. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
-rw-r--r--examples/Makefile.am2
-rw-r--r--src/Makefile.am2
-rw-r--r--tst/Makefile.am2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index c081b20..adaa4d5 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -1,5 +1,5 @@
include $(top_srcdir)/embedlog-sources.mk
-CFLAGS += -I$(top_srcdir)/include -I$(top_srcdir)/src
+CFLAGS += -I$(top_builddir)/include -I$(top_srcdir)/src
EXTRA_PROGRAMS = print_to_file \
print_options \
print_simple \
diff --git a/src/Makefile.am b/src/Makefile.am
index 8bded60..1e190cc 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -6,7 +6,7 @@ libembedlog_la_SOURCES = $(embedlog_sources)
libembedlog_la_SOURCES += el-private.h \
valid.h
libembedlog_la_LDFLAGS = -version-info 5:0:5
-libembedlog_la_CFLAGS = -I$(top_srcdir)/include
+libembedlog_la_CFLAGS = -I$(top_builddir)/include
# static code analyzer
diff --git a/tst/Makefile.am b/tst/Makefile.am
index 1866f7b..75eca05 100644
--- a/tst/Makefile.am
+++ b/tst/Makefile.am
@@ -13,7 +13,7 @@ test_SOURCES += main.c \
mtest.h \
test-group-list.h
-test_CFLAGS = -I$(top_srcdir)/include \
+test_CFLAGS = -I$(top_builddir)/include \
-I$(top_srcdir)/src \
-I/usr/local/include \
-I/usr/include \