From 0e7bc6e1119e076b1e30af0c7c7b5f70fb6aa5bc Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 20 Dec 2016 08:43:52 -0800 Subject: [PATCH] Compile libpainter only if enabled, fix path to libpainter.a When subpackages are compiled outside the build tree, the build artifacts are placed under top_builddir. --- Makefile.am | 8 +++++++- xrdp/Makefile.am | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 52ea2e61..a6ddaf1f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -33,6 +33,12 @@ else XRDPVRDIR = endif +if XRDP_PAINTER +PAINTERDIR = libpainter +else +PAINTERDIR = +endif + if XRDP_RFXCODEC RFXCODECDIR = librfxcodec else @@ -40,7 +46,6 @@ RFXCODECDIR = endif SUBDIRS = \ - libpainter \ common \ vnc \ rdp \ @@ -48,6 +53,7 @@ SUBDIRS = \ mc \ $(NEUTRINORDPDIR) \ libxrdp \ + $(PAINTERDIR) \ $(RFXCODECDIR) \ xrdp \ sesman \ diff --git a/xrdp/Makefile.am b/xrdp/Makefile.am index 8e22d182..f39610a0 100644 --- a/xrdp/Makefile.am +++ b/xrdp/Makefile.am @@ -36,7 +36,7 @@ endif if XRDP_PAINTER AM_CPPFLAGS += -DXRDP_PAINTER AM_CPPFLAGS += -I$(top_srcdir)/libpainter/include -XRDP_EXTRA_LIBS += $(top_srcdir)/libpainter/src/.libs/libpainter.a +XRDP_EXTRA_LIBS += $(top_builddir)/libpainter/src/.libs/libpainter.a endif sbin_PROGRAMS = \