summaryrefslogtreecommitdiff
path: root/support/RTF-1_06a1/Imakefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/RTF-1_06a1/Imakefile
Initial commit
Diffstat (limited to 'support/RTF-1_06a1/Imakefile')
-rw-r--r--support/RTF-1_06a1/Imakefile105
1 files changed, 105 insertions, 0 deletions
diff --git a/support/RTF-1_06a1/Imakefile b/support/RTF-1_06a1/Imakefile
new file mode 100644
index 0000000000..6093560a7a
--- /dev/null
+++ b/support/RTF-1_06a1/Imakefile
@@ -0,0 +1,105 @@
+# any special -D's or other flags for compiling
+DEFINES = ${VARARGS_DEFINES}
+
+# any special -I's for compiling
+INCLUDES =
+
+# any special libraries needed for linking
+LIBRARIES =
+
+# stuff common to all translators
+COMMONSRCS = reader.c
+COMMONOBJS = reader.o
+
+# RTF-to-nothing translator (the minimal translator)
+NULLSRCS = rtf2null.c
+NULLOBJS = rtf2null.o ${COMMONOBJS}
+
+# RTF-to-troff
+TROFFSRCS = rtf2troff.c trf-charmap.c trf-stack.c trf-flush.c \
+ trf-table.c trf-nwid.c
+TROFFOBJS = rtf2troff.o trf-charmap.o trf-stack.o trf-flush.o \
+ trf-table.o trf-nwid.o ${COMMONOBJS}
+
+# RTF-to-text translator
+TEXTSRCS = rtf2text.c
+TEXTOBJS = rtf2text.o ${COMMONOBJS}
+
+# RTF diagnostic "translator"
+DIAGSRCS = rtfdiag.c
+DIAGOBJS = rtfdiag.o ${COMMONOBJS}
+
+# RTF word count "translator"
+WCSRCS = rtfwc.c
+WCOBJS = rtfwc.o ${COMMONOBJS}
+
+# skeleton RTF translator
+SKELSRCS = rtfskel.c
+SKELOBJS = rtfskel.o ${COMMONOBJS}
+
+# RTF file indenter ("beautifier")
+INDSRCS = rtfindent.c
+INDOBJS = rtfindent.o
+
+SRCS = ${COMMONSRCS} ${NULLSRCS} ${TROFFSRCS} ${DIAGSRCS} \
+ ${TEXTSRCS} ${WCSRCS} ${SKELSRCS} ${INDSRCS}
+
+
+NormalProgramTarget (rtf2null, ${NULLOBJS}, /**/, ${LIBRARIES})
+InstallProgramTarget (rtf2null, ${BINDIR})
+
+NormalProgramTarget (rtf2troff, ${TROFFOBJS}, /**/, ${LIBRARIES})
+InstallProgramTarget (rtf2troff, ${BINDIR})
+
+NormalProgramTarget (rtf2text, ${TEXTOBJS}, /**/, ${LIBRARIES})
+InstallProgramTarget (rtf2text, ${BINDIR})
+
+NormalProgramTarget (rtfdiag, ${DIAGOBJS}, /**/, ${LIBRARIES})
+InstallProgramTarget (rtfdiag, ${BINDIR})
+
+NormalProgramTarget (rtfwc, ${WCOBJS}, /**/, ${LIBRARIES})
+InstallProgramTarget (rtfwc, ${BINDIR})
+
+# this isn't installed anywhere...
+NormalProgramTarget (rtfskel, ${SKELOBJS}, /**/, ${LIBRARIES})
+
+NormalProgramTarget (rtfindent, ${INDOBJS}, /**/, ${LIBRARIES})
+InstallProgramTarget (rtfindent, ${BINDIR})
+
+DependTarget()
+
+# document formatting rules
+
+# ifndef MsDoc
+#ifdef UseSoelim
+# define MsDoc(target) @@\
+SoelimDependency() @@\
+ @@\
+target-doc:: target.ms ${SOELIMDEP} @@\
+ ${SOELIM} target.ms | ${TROFF} ${MSMACROS} | ${PRINTER}
+# else /* !UseSoelim */
+# define MsDoc(target) @@\
+target-doc:: target.ms @@\
+ ${TROFF} ${MSMACROS} target.ms | ${PRINTER}
+# endif /* UseSoelim */
+# endif /* MsDoc */
+
+# ifndef TblMsDoc
+#ifdef UseSoelim
+# define TblMsDoc(target) @@\
+SoelimDependency() @@\
+ @@\
+target-doc:: target.ms ${SOELIMDEP} @@\
+ ${SOELIM} target.ms | ${TBL} | ${TROFF} ${MSMACROS} | ${PRINTER}
+# else /* !UseSoelim */
+# define TblMsDoc(target) @@\
+target-doc:: target.ms @@\
+ ${TBL} target.ms | ${TROFF} ${MSMACROS} | ${PRINTER}
+# endif /* UseSoelim */
+# endif /* TblMsDoc */
+
+MsDoc (rtf)
+
+MsDoc (rtf-misc)
+
+MsDoc (rtf2troff)