summaryrefslogtreecommitdiff
path: root/support/RTF-1_06a1/Imakefile
blob: 6093560a7acad4efbf04bd8c7c4e5fbc443beff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
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)