# 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)