tt/tttk: play symlink games so tttk can build
authorJon Trulson <jon@radscan.com>
Thu, 24 Oct 2019 20:06:29 +0000 (14:06 -0600)
committerJon Trulson <jon@radscan.com>
Thu, 24 Oct 2019 20:29:29 +0000 (14:29 -0600)
With this, we can now build the tooltalk library successfully.

cde/lib/tt/lib/tttk/Makefile.am

index bbcce6957ba629c40f5dd07293343684026d9d20..15085884abec557ba503e715433b753c633c7732 100644 (file)
@@ -8,6 +8,20 @@ header_HEADERS = tttk.h
 
 noinst_LTLIBRARIES = libtttk.la
 
+# We need to build a symlink to ../api/c/ so that contructs like
+# include <Tt/somefile.h> can work, since we no longer have a global
+# 'includes' phase during the build that installes include files
+# similiar to what you would expect if they were installed on the
+# system.
+
+BUILT_SOURCES = Tt
+CLEANFILES = Tt
+Tt: Makefile
+       $(RM) Tt
+       $(LN_S) ../api/c Tt
+
+libtttk_la_CXXFLAGS = $(TIRPCINC) $(TT_VERSION_DEFINE) -I../ -I../../lib
+
 libtttk_la_SOURCES = ttdesktop.C     ttdtfile.C      ttdtprocid.C \
                     ttmedia.C       tttk.C          tttk2free.C \
                     tttkmessage.C   tttkpattern.C   tttkutils.C