]> source.dussan.org Git - tigervnc.git/commitdiff
Improve out-of-tree build of Xvnc/libvnc.so
authorPierre Ossman <ossman@cendio.se>
Fri, 13 Apr 2018 11:39:16 +0000 (13:39 +0200)
committerPierre Ossman <ossman@cendio.se>
Fri, 13 Apr 2018 11:39:16 +0000 (13:39 +0200)
With the new unixcommon library we have things outside of common/,
so make the handling of out-of-tree builds more general.

unix/xserver/hw/vnc/Makefile.am

index e8fa38e8c2dcf7055d0a2782f7394baa689adbff..470424b51e36e478cd9b325538368cfd462c0b83 100644 (file)
@@ -1,12 +1,12 @@
 TIGERVNC_SRCDIR=${top_srcdir}/../..
-LIB_DIR=${top_builddir}/../../common
-
-RFB_LIB=$(LIB_DIR)/rfb/librfb.la
-RDR_LIB=$(LIB_DIR)/rdr/librdr.la
-OS_LIB=$(LIB_DIR)/os/libos.la
-NETWORK_LIB=$(LIB_DIR)/network/libnetwork.la
-XREGION_LIB=$(LIB_DIR)/Xregion/libXregion.la
-UNIXCOMMON_LIB=${top_builddir}/../common/libunixcommon.la
+TIGERVNC_BUILDDIR=${TIGERVNC_SRCDIR}
+
+RFB_LIB=$(TIGERVNC_BUILDDIR)/common/rfb/librfb.la
+RDR_LIB=$(TIGERVNC_BUILDDIR)/common/rdr/librdr.la
+OS_LIB=$(TIGERVNC_BUILDDIR)/common/os/libos.la
+NETWORK_LIB=$(TIGERVNC_BUILDDIR)/common/network/libnetwork.la
+XREGION_LIB=$(TIGERVNC_BUILDDIR)/common/Xregion/libXregion.la
+UNIXCOMMON_LIB=$(TIGERVNC_BUILDDIR)/unix/common/libunixcommon.la
 COMMON_LIBS=$(NETWORK_LIB) $(RFB_LIB) $(RDR_LIB) $(XREGION_LIB) $(OS_LIB) $(UNIXCOMMON_LIB)
 
 noinst_LTLIBRARIES = libvnccommon.la