From e476231deb9212c58e3effa656c69d136f19070b Mon Sep 17 00:00:00 2001 From: Alexander Chemeris Date: Fri, 29 Apr 2016 14:05:59 +0300 Subject: 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. Signed-off-by: Tom Tsou --- Transceiver52M/Makefile.am | 2 +- Transceiver52M/x86/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Transceiver52M') 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 -- cgit v1.2.3