configure/Makefiles for TT: many fixups

Redo the way the main CDE libs are specified in configure.ac... The
current way could not work due to evaluation issues, and the fact that
variables like $srcdir and the like are only valid in Makefiles, not
configure.

Use @LIBNAME@ rather then $(LIBNAME) in Makefile.am files - this way
the location is always evaluated when it's run, not in configure -
which can't work for a variety of reasons.

Got some of the TT binaries to build.

Made a new include/cppfile.inc file that can be used to pre-process
files.  The downside is that currently you can only pre-process one
file at a time per Makefile.  Something more robust is needed, but at
least tt/bin/shell now builds.  Will need to come up with a better way.
This commit is contained in:
Jon Trulson
2019-10-24 20:01:32 -06:00
parent f55e448fc7
commit bb4a2c7694
12 changed files with 33 additions and 39 deletions

View File

@@ -4,12 +4,9 @@ include ../../tooltalk.inc
noinst_SCRIPTS = ttce2xdr
ttce2xdr_CPPFLAGS = $(TIRPCINC) $(TT_VERSION_DEFINE)
all:: ttce2xdr
AM_CPPFLAGS = $(TIRPCINC) $(TT_VERSION_DEFINE)
CPPTARGET = ttce2xdr
CPPSRC = ttce2xdr.cpp
# FIXME - need solution here
# include $(srcdir)/include/cppfile.tmpl
include $(top_builddir)/include/cppfile.inc