programs/dthelp: add automake files
authorChase <nicetrynsa@protonmail.ch>
Wed, 23 Oct 2019 19:31:08 +0000 (14:31 -0500)
committerJon Trulson <jon@radscan.com>
Wed, 23 Oct 2019 21:34:20 +0000 (15:34 -0600)
cde/programs/dthelp/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/dthelpgen/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/dthelpprint/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/dthelpview/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/parser/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/parser/canon1/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/parser/pass1/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/parser/pass1/build/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/parser/pass1/eltdef/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/parser/pass1/helptag/Makefile.am [new file with mode: 0644]
cde/programs/dthelp/parser/pass2/Makefile.am [new file with mode: 0644]

diff --git a/cde/programs/dthelp/Makefile.am b/cde/programs/dthelp/Makefile.am
new file mode 100644 (file)
index 0000000..fe5465f
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = parser dthelpview dthelpdemo dthelpgen dthelpprint
diff --git a/cde/programs/dthelp/dthelpgen/Makefile.am b/cde/programs/dthelp/dthelpgen/Makefile.am
new file mode 100644 (file)
index 0000000..7a74b53
--- /dev/null
@@ -0,0 +1,8 @@
+bin_PROGRAM = dthelpgen dthelpgen.dtsh
+
+dthelpgen_CPPFLAGS = -I.. -DCDE_INSTALLATION_TOP=\"${prefix}\" \
+                  -DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
+
+dthelpgen_LDADD = $(LIBHELP) $(LIBSVC) $(LIBTT) $(XTOOLLIB) ${X_LIBS}
+
+dthelpgen_SOURCES = helpgen.c
diff --git a/cde/programs/dthelp/dthelpprint/Makefile.am b/cde/programs/dthelp/dthelpprint/Makefile.am
new file mode 100644 (file)
index 0000000..347e489
--- /dev/null
@@ -0,0 +1,13 @@
+bin_PROGRAMS = dthelpprint dthelpprint.sh
+
+dthelpprint_CPPFLAGS = -I.. -DCDE_CONFIGURATION_TOP='"${prefix}"' \
+                    -DCDE_INSTALLATION_TOP='"$(CDE_INSTALLATION_TOP)"'
+
+dthelpprint_LDADD = $(LIBSVC) $(LIBTT) $(LIBHELP) $(XTOOLLIB) ${X_LIBS}
+
+if SUN
+dthelpprint_LDADD += -lw -ldl -lgen -lm
+endif
+
+dthelpprint_SOURCES = Main.c Initialize.c PrintUtil.c PrintTopics.c \
+                     PrintManStrFile.c
diff --git a/cde/programs/dthelp/dthelpview/Makefile.am b/cde/programs/dthelp/dthelpview/Makefile.am
new file mode 100644 (file)
index 0000000..a6de404
--- /dev/null
@@ -0,0 +1,9 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dthelpview
+
+dthelpview_CFLAGS = -D_BMS
+
+dthelpview_LDADD = $(LIBHELP) $(LIBSVC) $(LIBTT) $(XTOOLLIB) ${X_LIBS}
+
+dthelpview_SOURCES = Main.c ManPage.c Util.c
diff --git a/cde/programs/dthelp/parser/Makefile.am b/cde/programs/dthelp/parser/Makefile.am
new file mode 100644 (file)
index 0000000..a016712
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = pass1 canon1 pass2 helptag misc dtds
diff --git a/cde/programs/dthelp/parser/canon1/Makefile.am b/cde/programs/dthelp/parser/canon1/Makefile.am
new file mode 100644 (file)
index 0000000..71f20bf
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES =Makefile.in
+
+SUBDIRS = util build eltdef helptag parser
diff --git a/cde/programs/dthelp/parser/pass1/Makefile.am b/cde/programs/dthelp/parser/pass1/Makefile.am
new file mode 100644 (file)
index 0000000..d402baa
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = util build eltdef helptag parser
diff --git a/cde/programs/dthelp/parser/pass1/build/Makefile.am b/cde/programs/dthelp/parser/pass1/build/Makefile.am
new file mode 100644 (file)
index 0000000..573876c
--- /dev/null
@@ -0,0 +1,70 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_PROGRAMS = build
+
+ARCCMD = arc u
+UNARCCMD = arc x
+ARCDELCMD = arc d
+
+HELPTAG       = ..
+HELPTAGSRC    = $(HELPTAG)/helptag
+HELPPARSERSRC = $(HELPTAG)/parser
+HELPELTDEFSRC = $(HELPTAG)/eltdef
+HELPDTDFILE   = $(HELPTAGSRC)/hptag.dtd
+HELPUTILSRC   = $(HELPTAG)/util
+HELPBUILDSRC  = $(HELPTAG)/build
+HELPUTILLIB   = $(HELPTAG)/util/libutil.a
+
+build_CFLAGS = -I$(HELPUTILSRC)
+
+build_LDADD = -l$(HELPUTILLIB)
+
+if HPUX
+build_LDADD += -Wl,-a archive
+endif
+
+if SUN
+.NO_PARALLEL:
+endif
+
+build_SOURCES = build.c buildutl.c eltree.c except.c fsa.c out.c param.c \
+               scan.c sref.c tree.c
+
+CHPRODS = context.h delim.h
+CCPRODS = case.c
+
+BHPRODS = arc.h dtd.h entity.h
+BCPRODS =
+
+CTRASH  = error delim.dat
+BTRASH  = error template
+
+CPRODS  = $(CHPRODS) $(CCPRODS)
+BPRODS  = $(BHPRODS) $(BCPRODS)
+TRASH   = error delim.dat template
+
+PRODUCTS = $(CPRODS) $(BPRODS)
+
+all:: $(PRODUCTS)
+
+$(BPRODS): build $(HELPDTDFILE)
+        $(RM) $(BPRODS) $(BTRASH)
+        ./build < $(HELPDTDFILE)
+
+$(CPRODS):  $(HELPUTILSRC)/context $(HELPTAGSRC)/delim.bld context.dat
+        $(RM) $(CPRODS) $(CTRASH)
+        $(CP) $(HELPTAGSRC)/delim.bld delim.dat  #appl.-specific delim.dat
+        $(HELPUTILSRC)/context sparse
+
+$(HELPUTILSRC)/context:
+        cd $(HELPUTILSRC); make context
+
+arc package :
+        if exist util.arc $(CP) build.arc old.arc
+        $(ARCCMD) util.arc *.c *.h makefile
+
+unarc dearc :
+        $(UNARCCMD) util.arc
+
+clean::
+        $(RM) $(PRODUCTS) $(TRASH)
diff --git a/cde/programs/dthelp/parser/pass1/eltdef/Makefile.am b/cde/programs/dthelp/parser/pass1/eltdef/Makefile.am
new file mode 100644 (file)
index 0000000..79850a4
--- /dev/null
@@ -0,0 +1,71 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+noinst_PROGRAMS = eltdef
+
+ARCCMD = arc u
+UNARCCMD = arc x
+ARCDELCMD = arc d
+
+HELPTAG       = ..
+HELPTAGSRC    = $(HELPTAG)/helptag
+HELPPARSERSRC = $(HELPTAG)/parser
+HELPELTDEFSRC = $(HELPTAG)/eltdef
+HELPDTDFILE   = $(HELPTAGSRC)/hptag.dtd
+HELPUTILSRC   = $(HELPTAG)/util
+HELPBUILDSRC  = $(HELPTAG)/build
+HELPUTILLIB   = $(HELPTAG)/util/libutil.a
+HELPIFFILE    = $(HELPTAGSRC)/help.if
+HELPTSSFILE   = $(HELPTAGSRC)/htag.tss
+
+eltdef_LDADD = -l$(HELPUTILLIB)
+
+if HPUX
+eltdef += -Wl,-a archive
+endif
+
+if SUN
+.NO_PARALLEL:
+endif
+
+eltdef_CFLAGS = -I$(HELPUTILSRC) -I$(HELPBUILDSRC)
+
+eltdef_SOURCES = eltdef.c eltutil.c entity.c scan.c
+
+CCPRODS = case.c
+ECPRODS = efile.c entfile.c pfile.c sfile.c stfile.c tfile.c
+
+CHPRODS = context.h delim.h
+EHPRODS = entity2.h globdec.h globdef.h if.h pval.h signon.h signonx.h
+
+CPRODS  = $(CCPRODS) $(CHPRODS)
+EPRODS  = $(ECPRODS) $(EHPRODS)
+
+CTRASH  = delim.dat error
+ETRASH  = estring.h error
+TRASH   = delim.dat estring.h error
+
+PRODUCTS = $(CPRODS) $(EPRODS)
+
+all:: $(PRODUCTS)
+
+$(EPRODS): eltdef  $(HELPIFFILE) $(HELPTSSFILE)
+       $(RM) $(EPRODS) $(ETRASH)
+       ./eltdef $(HELPIFFILE)
+
+$(CPRODS):  $(HELPUTILSRC)/context $(HELPTAGSRC)/delim.elt context.dat
+       $(RM) $(CPRODS) $(CTRASH)
+       $(CP) $(HELPTAGSRC)/delim.elt delim.dat  # appl.-specific delim.dat
+       $(HELPUTILSRC)/context
+
+$(HELPUTILSRC)/context:
+       cd $(HELPUTILSRC); make context
+
+arc package :
+        if exist util.arc $(CP) build.arc old.arc
+        $(ARCCMD) util.arc *.c *.h makefile
+
+unarc dearc :
+        $(UNARCCMD) util.arc
+
+clean::
+        $(RM) $(PRODUCTS) $(TRASH)
diff --git a/cde/programs/dthelp/parser/pass1/helptag/Makefile.am b/cde/programs/dthelp/parser/pass1/helptag/Makefile.am
new file mode 100644 (file)
index 0000000..71438f8
--- /dev/null
@@ -0,0 +1,74 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+bin_PROGRAMS = dthelp_htag1
+
+ARCCMD = arc u
+UNARCCMD = arc x
+ARCDELCMD = arc d
+
+.SUFFIXES : .e .arc .c .h
+
+HELPTAG       = ..
+HELPTAGSRC    = $(HELPTAG)/helptag
+HELPPARSERSRC = $(HELPTAG)/parser
+HELPELTDEFSRC = $(HELPTAG)/eltdef
+HELPDTDFILE   = $(HELPTAGSRC)/hptag.dtd
+HELPUTILSRC   = $(HELPTAG)/util
+HELPBUILDSRC  = $(HELPTAG)/build
+HELPUTILLIB   = $(HELPTAG)/util/libutil.a
+HELPIFFILE    = $(HELPTAGSRC)/help.if
+HELPTSSFILE   = $(HELPTAGSRC)/htag.tss
+
+XLATESRC  = $(DTHELPSRC)
+XLATEHDRS = $(XLATESRC)/XlationSvc.h $(XLATESRC)/LocaleXlate.h
+XLATESRCS = ${srcdir}/lib/DtSvc/DtUtil2/XlationSvc.c \
+           ${srcdir}/lib/DtSvc/DtUtil2/LocaleXlate.c
+
+ELTHDRS = $(HELPUTILSRC)/entdef.h $(HELPUTILSRC)/entext.h
+
+XCOMM PARSEHDRS are header files used by many parser routines
+PARSEHDRS = $(HELPUTILSRC)/basic.h $(HELPUTILSRC)/trie.h \
+        $(HELPUTILSRC)/common.h $(HELPUTILSRC)/dtddef.h \
+        $(HELPUTILSRC)/dtdext.h $(HELPUTILSRC)/sparse.h \
+        parser.h proto.h
+
+APPLHDRS = $(PARSEHDRS) $(ELTHDRS) \
+        $(HELPUTILSRC)/version.h \
+        $(HELPTAGSRC)/global.h $(HELPTAGSRC)/charconv.h \
+        $(HELPTAGSRC)/roman8.h $(HELPTAGSRC)/fproto.h \
+        ../parser/pval.h ../parser/globdec.h ../parser/signonx.h \
+        ../parser/userinc.h
+
+dthelp_htag1_CFLAGS = -I$(HELPUTILSRC) -I$(HELPPARSERSRC) -I$(HELPELTDEFSRC) \
+                     -I$(XLATESRC)
+
+dthelp_htag1_LDADD = $(HELPUTILLIB)
+
+if HPUX
+dthelp_htag1_LDADD += -Wl,-a archive
+endif
+
+if SUN
+dthelp_htag1_LDADD += -lm -ldl -lgen
+endif
+
+dthelp_htag1_LDADD += custom.c default.c help.c make.c option.c out.c \
+                     special.c xref.c $(XLATESRCS)
+
+dthelp_htag1: $(HELPPARSERSRC)/parser
+        $(RM) dthelp_htag1
+        $(CP) $(HELPPARSERSRC)/parser dthelp_htag1
+
+arcappl archptag :
+        if exist hptag.arc $(CP) hptag.arc hptag.old
+        $(ARCCMD) hptag.arc *.c *.h linkcmd.dos linkcmd.unx $(HELPDTDFILE) \
+        tex.if makefile makefile.doc make.ini delim.*
+
+unarcappl unarchptag :
+        $(UNARCCMD) hptag.arc
+
+tags ::
+        etags -t *.c *.h *.if
+
+etags ::
+        etags -t *.c *.h *.if
diff --git a/cde/programs/dthelp/parser/pass2/Makefile.am b/cde/programs/dthelp/parser/pass2/Makefile.am
new file mode 100644 (file)
index 0000000..f2eb68d
--- /dev/null
@@ -0,0 +1,3 @@
+MAINTAINERCLEANFILES = Makefile.in
+
+SUBDIRS = util build eltdef htag2 parser