mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
programs/dthelp: add automake files
This commit is contained in:
parent
4e254aee74
commit
37a7c7c7ce
11 changed files with 260 additions and 0 deletions
3
cde/programs/dthelp/Makefile.am
Normal file
3
cde/programs/dthelp/Makefile.am
Normal file
|
@ -0,0 +1,3 @@
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
SUBDIRS = parser dthelpview dthelpdemo dthelpgen dthelpprint
|
8
cde/programs/dthelp/dthelpgen/Makefile.am
Normal file
8
cde/programs/dthelp/dthelpgen/Makefile.am
Normal file
|
@ -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
|
13
cde/programs/dthelp/dthelpprint/Makefile.am
Normal file
13
cde/programs/dthelp/dthelpprint/Makefile.am
Normal file
|
@ -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
|
9
cde/programs/dthelp/dthelpview/Makefile.am
Normal file
9
cde/programs/dthelp/dthelpview/Makefile.am
Normal file
|
@ -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
|
3
cde/programs/dthelp/parser/Makefile.am
Normal file
3
cde/programs/dthelp/parser/Makefile.am
Normal file
|
@ -0,0 +1,3 @@
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
SUBDIRS = pass1 canon1 pass2 helptag misc dtds
|
3
cde/programs/dthelp/parser/canon1/Makefile.am
Normal file
3
cde/programs/dthelp/parser/canon1/Makefile.am
Normal file
|
@ -0,0 +1,3 @@
|
|||
MAINTAINERCLEANFILES =Makefile.in
|
||||
|
||||
SUBDIRS = util build eltdef helptag parser
|
3
cde/programs/dthelp/parser/pass1/Makefile.am
Normal file
3
cde/programs/dthelp/parser/pass1/Makefile.am
Normal file
|
@ -0,0 +1,3 @@
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
SUBDIRS = util build eltdef helptag parser
|
70
cde/programs/dthelp/parser/pass1/build/Makefile.am
Normal file
70
cde/programs/dthelp/parser/pass1/build/Makefile.am
Normal file
|
@ -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)
|
71
cde/programs/dthelp/parser/pass1/eltdef/Makefile.am
Normal file
71
cde/programs/dthelp/parser/pass1/eltdef/Makefile.am
Normal file
|
@ -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)
|
74
cde/programs/dthelp/parser/pass1/helptag/Makefile.am
Normal file
74
cde/programs/dthelp/parser/pass1/helptag/Makefile.am
Normal file
|
@ -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
|
3
cde/programs/dthelp/parser/pass2/Makefile.am
Normal file
3
cde/programs/dthelp/parser/pass2/Makefile.am
Normal file
|
@ -0,0 +1,3 @@
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
SUBDIRS = util build eltdef htag2 parser
|
Loading…
Reference in a new issue