blob: 0b1c06f9dfd98f24ee70d5fba96f3581a5d69e90 (
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
|
## texk/web2c/synctexdir/am/synctex.am: Makefile fragment for SyncTeX.
##
## Copyright (C) 2009, 2010 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
## The SyncTeX tool
bin_PROGRAMS += synctex
synctex_SOURCES = \
synctexdir/synctex_main.c \
synctexdir/synctex_parser.c \
synctexdir/synctex_parser.h \
synctexdir/synctex_parser_local.h \
synctexdir/synctex_parser_utils.h \
synctexdir/synctex_parser_utils.c
synctex_CPPFLAGS = -I$(srcdir)/synctexdir $(ZLIB_INCLUDES) -DSYNCTEX_USE_LOCAL_HEADER
synctex_CFLAGS = $(WARNING_CFLAGS)
synctex_LDADD = $(ZLIB_LIBS)
$(synctex_OBJECTS): $(ZLIB_DEPEND)
dist_man_MANS += synctexdir/man1/synctex.1 synctexdir/man5/synctex.5
EXTRA_DIST += \
synctexdir/ChangeLog \
synctexdir/README.txt \
synctexdir/synctex_parser_readme.txt \
synctexdir/synctex_parser_version.txt \
synctexdir/tests
## SyncTeX infrastructure: common for all engines
EXTRA_DIST += \
synctexdir/synctex-common.h \
synctexdir/synctex.c \
synctexdir/synctex.defines \
synctexdir/synctex.h
## SyncTeX infrastructure: TeX
if TEX_SYNCTEX
tex_CPPFLAGS += -I$(srcdir)/synctexdir $(ZLIB_INCLUDES)
tex_LDADD += $(ZLIB_LIBS)
tex_prereq += $(ZLIB_DEPEND)
tex_ch_synctex = \
synctexdir/synctex-mem.ch0 \
synctexdir/synctex-mem.ch1 \
synctexdir/synctex-mem.ch2 \
synctexdir/synctex-rec.ch0 \
synctexdir/synctex-rec.ch1 \
synctexdir/synctex-rec.ch2
dist_tex_SOURCES = \
synctexdir/synctex.h \
synctexdir/synctex-common.h \
synctexdir/synctex-tex.h
nodist_tex_SOURCES += \
synctex.c
tex_CPPFLAGS += -D__SyncTeX__
endif TEX_SYNCTEX
synctex.c: texd.h synctexdir/synctex.c $(dist_tex_SOURCES)
sed s/TEX-OR-MF-OR-MP/tex/ $(srcdir)/synctexdir/synctex.c >$@
EXTRA_DIST += \
synctexdir/synctex-mem.ch0 \
synctexdir/synctex-mem.ch1 \
synctexdir/synctex-mem.ch2 \
synctexdir/synctex-rec.ch0 \
synctexdir/synctex-rec.ch1 \
synctexdir/synctex-rec.ch2
## SyncTeX infrastructure: e-TeX
if ETEX_SYNCTEX
etex_CPPFLAGS += -I$(srcdir)/synctexdir $(ZLIB_INCLUDES)
etex_LDADD += $(ZLIB_LIBS)
etex_prereq += $(ZLIB_DEPEND)
etex_ch_synctex = \
synctexdir/synctex-mem.ch0 \
synctexdir/synctex-mem.ch1 \
synctexdir/synctex-e-mem.ch0 \
synctexdir/synctex-e-mem.ch1 \
synctexdir/synctex-rec.ch0 \
synctexdir/synctex-rec.ch1 \
synctexdir/synctex-e-rec.ch0 \
synctexdir/synctex-e-rec.ch1
dist_etex_SOURCES = \
synctexdir/synctex.h \
synctexdir/synctex-common.h \
synctexdir/synctex-etex.h
nodist_etex_SOURCES += \
synctex-e.c
etex_CPPFLAGS += -D__SyncTeX__
endif ETEX_SYNCTEX
synctex-e.c: etexd.h synctexdir/synctex.c $(dist_etex_SOURCES)
sed s/TEX-OR-MF-OR-MP/etex/ $(srcdir)/synctexdir/synctex.c >$@
EXTRA_DIST += \
synctexdir/synctex-e-mem.ch0 \
synctexdir/synctex-e-mem.ch1 \
synctexdir/synctex-e-rec.ch0 \
synctexdir/synctex-e-rec.ch1
## SyncTeX infrastructure: pdfTeX
if PDFTEX_SYNCTEX
pdftex_CPPFLAGS += -I$(srcdir)/synctexdir
pdftex_ch_synctex = \
synctexdir/synctex-mem.ch0 \
synctexdir/synctex-mem.ch1 \
synctexdir/synctex-e-mem.ch0 \
synctexdir/synctex-e-mem.ch1 \
synctexdir/synctex-rec.ch0 \
synctexdir/synctex-rec.ch1 \
synctexdir/synctex-e-rec.ch0 \
synctexdir/synctex-e-rec.ch1 \
synctexdir/synctex-pdf-rec.ch2
dist_pdftex_SOURCES = \
synctexdir/synctex.h \
synctexdir/synctex-common.h \
synctexdir/synctex-pdftex.h
nodist_pdftex_SOURCES += \
synctex-pdf.c
pdftex_CPPFLAGS += -D__SyncTeX__
endif PDFTEX_SYNCTEX
synctex-pdf.c: pdftexd.h synctexdir/synctex.c $(dist_pdftex_SOURCES)
sed s/TEX-OR-MF-OR-MP/pdftex/ $(srcdir)/synctexdir/synctex.c >$@
EXTRA_DIST += \
synctexdir/synctex-pdf-rec.ch2
## SyncTeX infrastructure: XeTeX
if XETEX_SYNCTEX
xetex_CPPFLAGS += -I$(srcdir)/synctexdir
xetex_ch_synctex = \
synctexdir/synctex-mem.ch0 \
synctexdir/synctex-e-mem.ch0 \
synctexdir/synctex-e-mem.ch1 \
synctexdir/synctex-xe-mem.ch2 \
synctexdir/synctex-rec.ch0 \
synctexdir/synctex-e-rec.ch0 \
synctexdir/synctex-xe-rec.ch2
xetex_post_ch_synctex = \
synctexdir/synctex-xe-rec.ch3
dist_xetex_SOURCES = \
synctexdir/synctex.h \
synctexdir/synctex-common.h \
synctexdir/synctex-xetex.h
nodist_xetex_SOURCES += \
synctex-xe.c
xetex_CPPFLAGS += -D__SyncTeX__
endif XETEX_SYNCTEX
synctex-xe.c: xetexd.h synctexdir/synctex.c $(dist_xetex_SOURCES)
sed s/TEX-OR-MF-OR-MP/xetex/ $(srcdir)/synctexdir/synctex.c >$@
EXTRA_DIST += \
synctexdir/synctex-xe-mem.ch2 \
synctexdir/synctex-xe-rec.ch2 \
synctexdir/synctex-xe-rec.ch3
|