diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2016-04-29 14:05:59 +0300 |
---|---|---|
committer | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2016-04-29 14:05:59 +0300 |
commit | c88385c69d6a8ed415b7bc2480d13683ac8f6ca0 (patch) | |
tree | 822d146e39967bbbb47160ca290317db1b80c365 | |
parent | 047956259b468724e9c9d4b6bc436f8ee1f85a57 (diff) |
makefile: Fix build from an external path.
When you build from an external path, compiler can't find convert.h
include, because it was specified relative to the current directory.
Change this to specify the include dit relative to the Makefile
location.
-rw-r--r-- | Transceiver52M/Makefile.am | 2 | ||||
-rw-r--r-- | Transceiver52M/x86/Makefile.am | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Transceiver52M/Makefile.am b/Transceiver52M/Makefile.am index d0a20f4..4ec06e0 100644 --- a/Transceiver52M/Makefile.am +++ b/Transceiver52M/Makefile.am @@ -21,7 +21,7 @@ include $(top_srcdir)/Makefile.common -AM_CPPFLAGS = -Wall $(STD_DEFINES_AND_INCLUDES) -I./common +AM_CPPFLAGS = -Wall $(STD_DEFINES_AND_INCLUDES) -I${srcdir}/common AM_CXXFLAGS = -ldl -lpthread SUBDIRS = arm x86 diff --git a/Transceiver52M/x86/Makefile.am b/Transceiver52M/x86/Makefile.am index e880351..eda1a17 100644 --- a/Transceiver52M/x86/Makefile.am +++ b/Transceiver52M/x86/Makefile.am @@ -1,5 +1,5 @@ if !ARCH_ARM -AM_CFLAGS = -Wall -std=gnu99 -march=native -I../common +AM_CFLAGS = -Wall -std=gnu99 -march=native -I${srcdir}/../common noinst_LTLIBRARIES = libarch.la |