dthelp: get parts of it building.
authorJon Trulson <jon@radscan.com>
Mon, 23 Mar 2020 19:51:01 +0000 (13:51 -0600)
committerJon Trulson <jon@radscan.com>
Mon, 23 Mar 2020 19:51:01 +0000 (13:51 -0600)
This was a patch from Peter G, though modified a bit regarding the
LDADDs the way we do them now.

cde/programs/dthelp/Makefile.am
cde/programs/dthelp/dthelpdemo/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/dthelpgen/Makefile.am
cde/programs/dthelp/dthelpgen/helpgen.c
cde/programs/dthelp/dthelpview/Main.c
cde/programs/dthelp/dthelpview/Makefile.am
cde/programs/dthelp/dthelpview/Util.c

index fe5465fb0ca6a9f524b99b59f57be5fe260018f9..810da52f50cbef0a390ea48b2decc0cd30d2e4d9 100644 (file)
@@ -1,3 +1,5 @@
 MAINTAINERCLEANFILES = Makefile.in
 
-SUBDIRS = parser dthelpview dthelpdemo dthelpgen dthelpprint
+SUBDIRS = dthelpview dthelpgen dthelpdemo
+
+#NOTYET  = parser dthelpprint
diff --git a/cde/programs/dthelp/dthelpdemo/Makefile.am b/cde/programs/dthelp/dthelpdemo/Makefile.am
new file mode 100644 (file)
index 0000000..379300c
--- /dev/null
@@ -0,0 +1,10 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dthelpdemo
+
+dthelpdemo_CPPFLAGS = -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
+                  -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
+
+dthelpdemo_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
+
+dthelpdemo_SOURCES = Main.c HourGlass.c HelpCache.c
index dd7be1f44625e1a9644f653e402d19b6423ce39c..54894875898a22953c0cdd8f1d4f5adbecdff9bd 100644 (file)
@@ -4,9 +4,10 @@ bin_PROGRAMS = dthelpgen
 
 bin_SCRIPTS = dthelpgen.dtsh
 
-dthelpgen_CPPFLAGS = -I.. -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
-                  -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
+dthelpgen_CPPFLAGS = -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
+                  -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\" \
+                  -I ../../../lib/DtHelp
 
-dthelpgen_LDADD = $(LIBHELP) $(LIBSVC) $(LIBTT) $(XTOOLLIB) ${X_LIBS}
+dthelpgen_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
 
 dthelpgen_SOURCES = helpgen.c
index 882369abbba6c2e9f3d93360d032bc31a91894c2..d4cb64a1becb9636dfd2cde0549d11c49577ee11 100644 (file)
 #include <Dt/Help.h>
 #include <Dt/EnvControlP.h>
 
-#include "HelpP.h"        /* in DtHelp library */
+#include "Dt/HelpP.h"        /* in DtHelp library */
 #include "GenUtilsP.h"    /* in DtHelp library */
 #include "ObsoleteP.h"    /* in DtHelp library */
-#include "bufioI.h"       /* for AccessI.h     */
-#include "Access.h"       /* in DtHelp library */
-#include "AccessP.h"      /* in DtHelp library */
-#include "AccessI.h"      /* in DtHelp library */
+#include "DtI/bufioI.h"       /* for AccessI.h     */
+#include "DtI/Access.h"       /* in DtHelp library */
+#include "DtI/AccessP.h"      /* in DtHelp library */
+#include "DtI/AccessI.h"      /* in DtHelp library */
 #include "AccessCCDFI.h"  /* in DtHelp library */
 #include "StringFuncsI.h" /* in DtHelp library */
 
index 8180dc9b46809372f200743026b2ffd8c1a1aa12..1b6d04d94683f22156bd890ca1e79ff1bdb3ecf0 100644 (file)
@@ -74,7 +74,7 @@
 /* Local Includes */
 
 #include <DtI/HelposI.h>
-#include <DtI/HelpP.h>
+#include <Dt/HelpP.h>
 #include <DtI/FileUtilsI.h>
 #include "Main.h"
 #include "UtilI.h"
index a6de404d0bf964f76a92d1b37eb943097df49e70..1e51688e1eb6dbdfa3faa05de96a1f74cd7cd1ef 100644 (file)
@@ -4,6 +4,6 @@ bin_PROGRAMS = dthelpview
 
 dthelpview_CFLAGS = -D_BMS
 
-dthelpview_LDADD = $(LIBHELP) $(LIBSVC) $(LIBTT) $(XTOOLLIB) ${X_LIBS}
+dthelpview_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
 
 dthelpview_SOURCES = Main.c ManPage.c Util.c
index b5608d9750bc5e96b607fb25bffa60ce0954f2cd..c8c7c7da3feeaa30405d15bd73bb5d77476b6534 100644 (file)
@@ -58,7 +58,7 @@
 #include <Xm/Text.h>
 
 #include <Dt/Help.h>
-#include <DtI/HelpP.h>
+#include <Dt/HelpP.h>
 #include <Dt/HelpDialog.h>
 #include <Dt/HelpQuickD.h>