summaryrefslogtreecommitdiff
path: root/Build/source/utils/pmx/Makefile.am
blob: f0cce79a01671f0a807a51a6a5a5232c017f57f9 (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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
## $Id$
## Makefile.am for the TeX Live subdirectory utils/pmx/
##
## Copyright 2017 Karl Berry <tex-live@tug.org>
## Copyright 2012-2015 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.

## We want to re-distribute the whole original pmx source tree.
EXTRA_DIST = $(PMX_TREE)

## Patches applied to the original source tree
EXTRA_DIST += TLpatches

# Files not to be distributed
include $(srcdir)/../../am/dist_hook.am
NEVER_NAMES += $(NEVER_NAMES_SUB)
NEVER_DIST += $(PMX_TREE)/pmx.log $(PMX_TREE)/pmx.trs

AM_CPPFLAGS = -I$(srcdir)/$(PMX_TREE)/libf2c $(PMX_DEFINES)
AM_CFLAGS = #$(WARNING_CFLAGS)

bin_PROGRAMS = pmxab scor2prt

pmxab_SOURCES = @PMX_TREE@/pmxab.c

scor2prt_SOURCES = @PMX_TREE@/scor2prt.c

LDADD = libf2c.a

noinst_LIBRARIES = libf2c.a

## libf2c headers
libf2c_a_SOURCES = \
	@PMX_TREE@/libf2c/f2c.h \
	@PMX_TREE@/libf2c/fio.h \
	@PMX_TREE@/libf2c/fmt.h \
	@PMX_TREE@/libf2c/fp.h \
	@PMX_TREE@/libf2c/lio.h \
	@PMX_TREE@/libf2c/rawio.h \
	@PMX_TREE@/libf2c/signal1.h \
	@PMX_TREE@/libf2c/sysdep1.h
## MISC
libf2c_a_SOURCES += \
	@PMX_TREE@/libf2c/abort_.c \
	@PMX_TREE@/libf2c/cabs.c \
	@PMX_TREE@/libf2c/derf_.c \
	@PMX_TREE@/libf2c/derfc_.c \
	@PMX_TREE@/libf2c/erf_.c \
	@PMX_TREE@/libf2c/erfc_.c \
	@PMX_TREE@/libf2c/exit_.c \
	@PMX_TREE@/libf2c/f77vers.c \
	@PMX_TREE@/libf2c/getarg_.c \
	@PMX_TREE@/libf2c/getenv_.c \
	@PMX_TREE@/libf2c/i77vers.c \
	@PMX_TREE@/libf2c/iargc_.c \
	@PMX_TREE@/libf2c/main.c \
	@PMX_TREE@/libf2c/s_paus.c \
	@PMX_TREE@/libf2c/s_rnge.c \
	@PMX_TREE@/libf2c/s_stop.c \
	@PMX_TREE@/libf2c/sig_die.c \
	@PMX_TREE@/libf2c/signal_.c \
	@PMX_TREE@/libf2c/system_.c
## MISC (not used for pmx)
EXTRA_libf2c_a_SOURCES = \
	@PMX_TREE@/libf2c/uninit.c
## POW
libf2c_a_SOURCES += \
	@PMX_TREE@/libf2c/pow_ci.c \
	@PMX_TREE@/libf2c/pow_dd.c \
	@PMX_TREE@/libf2c/pow_di.c \
	@PMX_TREE@/libf2c/pow_hh.c \
	@PMX_TREE@/libf2c/pow_ii.c \
	@PMX_TREE@/libf2c/pow_ri.c \
	@PMX_TREE@/libf2c/pow_zi.c \
	@PMX_TREE@/libf2c/pow_zz.c
## CX
libf2c_a_SOURCES += \
	@PMX_TREE@/libf2c/c_abs.c \
	@PMX_TREE@/libf2c/c_cos.c \
	@PMX_TREE@/libf2c/c_div.c \
	@PMX_TREE@/libf2c/c_exp.c \
	@PMX_TREE@/libf2c/c_log.c \
	@PMX_TREE@/libf2c/c_sin.c \
	@PMX_TREE@/libf2c/c_sqrt.c
## DCX
libf2c_a_SOURCES += \
	@PMX_TREE@/libf2c/z_abs.c \
	@PMX_TREE@/libf2c/z_cos.c \
	@PMX_TREE@/libf2c/z_div.c \
	@PMX_TREE@/libf2c/z_exp.c \
	@PMX_TREE@/libf2c/z_log.c \
	@PMX_TREE@/libf2c/z_sin.c \
	@PMX_TREE@/libf2c/z_sqrt.c
## REAL
libf2c_a_SOURCES += \
	@PMX_TREE@/libf2c/r_abs.c \
	@PMX_TREE@/libf2c/r_acos.c \
	@PMX_TREE@/libf2c/r_asin.c \
	@PMX_TREE@/libf2c/r_atan.c \
	@PMX_TREE@/libf2c/r_atn2.c \
	@PMX_TREE@/libf2c/r_cnjg.c \
	@PMX_TREE@/libf2c/r_cos.c \
	@PMX_TREE@/libf2c/r_cosh.c \
	@PMX_TREE@/libf2c/r_dim.c \
	@PMX_TREE@/libf2c/r_exp.c \
	@PMX_TREE@/libf2c/r_imag.c \
	@PMX_TREE@/libf2c/r_int.c \
	@PMX_TREE@/libf2c/r_lg10.c \
	@PMX_TREE@/libf2c/r_log.c \
	@PMX_TREE@/libf2c/r_mod.c \
	@PMX_TREE@/libf2c/r_nint.c \
	@PMX_TREE@/libf2c/r_sign.c \
	@PMX_TREE@/libf2c/r_sin.c \
	@PMX_TREE@/libf2c/r_sinh.c \
	@PMX_TREE@/libf2c/r_sqrt.c \
	@PMX_TREE@/libf2c/r_tan.c \
	@PMX_TREE@/libf2c/r_tanh.c
## DBL
libf2c_a_SOURCES += \
	@PMX_TREE@/libf2c/d_abs.c \
	@PMX_TREE@/libf2c/d_acos.c \
	@PMX_TREE@/libf2c/d_asin.c \
	@PMX_TREE@/libf2c/d_atan.c \
	@PMX_TREE@/libf2c/d_atn2.c \
	@PMX_TREE@/libf2c/d_cnjg.c \
	@PMX_TREE@/libf2c/d_cos.c \
	@PMX_TREE@/libf2c/d_cosh.c \
	@PMX_TREE@/libf2c/d_dim.c \
	@PMX_TREE@/libf2c/d_exp.c \
	@PMX_TREE@/libf2c/d_imag.c \
	@PMX_TREE@/libf2c/d_int.c \
	@PMX_TREE@/libf2c/d_lg10.c \
	@PMX_TREE@/libf2c/d_log.c \
	@PMX_TREE@/libf2c/d_mod.c \
	@PMX_TREE@/libf2c/d_nint.c \
	@PMX_TREE@/libf2c/d_prod.c \
	@PMX_TREE@/libf2c/d_sign.c \
	@PMX_TREE@/libf2c/d_sin.c \
	@PMX_TREE@/libf2c/d_sinh.c \
	@PMX_TREE@/libf2c/d_sqrt.c \
	@PMX_TREE@/libf2c/d_tan.c \
	@PMX_TREE@/libf2c/d_tanh.c
## INT
libf2c_a_SOURCES += \
	@PMX_TREE@/libf2c/i_abs.c \
	@PMX_TREE@/libf2c/i_dim.c \
	@PMX_TREE@/libf2c/i_dnnt.c \
	@PMX_TREE@/libf2c/i_indx.c \
	@PMX_TREE@/libf2c/i_len.c \
	@PMX_TREE@/libf2c/i_mod.c \
	@PMX_TREE@/libf2c/i_nint.c \
	@PMX_TREE@/libf2c/i_sign.c \
	@PMX_TREE@/libf2c/lbitbits.c \
	@PMX_TREE@/libf2c/lbitshft.c
## HALF
libf2c_a_SOURCES += \
	@PMX_TREE@/libf2c/h_abs.c \
	@PMX_TREE@/libf2c/h_dim.c \
	@PMX_TREE@/libf2c/h_dnnt.c \
	@PMX_TREE@/libf2c/h_indx.c \
	@PMX_TREE@/libf2c/h_len.c \
	@PMX_TREE@/libf2c/h_mod.c \
	@PMX_TREE@/libf2c/h_nint.c \
	@PMX_TREE@/libf2c/h_sign.c
## CMP
libf2c_a_SOURCES += \
	@PMX_TREE@/libf2c/hl_ge.c \
	@PMX_TREE@/libf2c/hl_gt.c \
	@PMX_TREE@/libf2c/hl_le.c \
	@PMX_TREE@/libf2c/hl_lt.c \
	@PMX_TREE@/libf2c/l_ge.c \
	@PMX_TREE@/libf2c/l_gt.c \
	@PMX_TREE@/libf2c/l_le.c \
	@PMX_TREE@/libf2c/l_lt.c
## EFL
libf2c_a_SOURCES += \
	@PMX_TREE@/libf2c/ef1asc_.c \
	@PMX_TREE@/libf2c/ef1cmc_.c
## CHAR
libf2c_a_SOURCES += \
	@PMX_TREE@/libf2c/f77_aloc.c \
	@PMX_TREE@/libf2c/s_cat.c \
	@PMX_TREE@/libf2c/s_cmp.c \
	@PMX_TREE@/libf2c/s_copy.c
## I77
libf2c_a_SOURCES += \
	@PMX_TREE@/libf2c/backspac.c \
	@PMX_TREE@/libf2c/close.c \
	@PMX_TREE@/libf2c/dfe.c \
	@PMX_TREE@/libf2c/dolio.c \
	@PMX_TREE@/libf2c/due.c \
	@PMX_TREE@/libf2c/endfile.c \
	@PMX_TREE@/libf2c/err.c \
	@PMX_TREE@/libf2c/fmt.c \
	@PMX_TREE@/libf2c/fmtlib.c \
	@PMX_TREE@/libf2c/ftell_.c \
	@PMX_TREE@/libf2c/iio.c \
	@PMX_TREE@/libf2c/ilnw.c \
	@PMX_TREE@/libf2c/inquire.c \
	@PMX_TREE@/libf2c/lread.c \
	@PMX_TREE@/libf2c/lwrite.c \
	@PMX_TREE@/libf2c/open.c \
	@PMX_TREE@/libf2c/rdfmt.c \
	@PMX_TREE@/libf2c/rewind.c \
	@PMX_TREE@/libf2c/rsfe.c \
	@PMX_TREE@/libf2c/rsli.c \
	@PMX_TREE@/libf2c/rsne.c \
	@PMX_TREE@/libf2c/sfe.c \
	@PMX_TREE@/libf2c/sue.c \
	@PMX_TREE@/libf2c/typesize.c \
	@PMX_TREE@/libf2c/uio.c \
	@PMX_TREE@/libf2c/util.c \
	@PMX_TREE@/libf2c/wref.c \
	@PMX_TREE@/libf2c/wrtfmt.c \
	@PMX_TREE@/libf2c/wsfe.c \
	@PMX_TREE@/libf2c/wsle.c \
	@PMX_TREE@/libf2c/wsne.c \
	@PMX_TREE@/libf2c/xwsne.c
## TIME
libf2c_a_SOURCES += \
	@PMX_TREE@/libf2c/dtime_.c \
	@PMX_TREE@/libf2c/etime_.c

## Handle DOS line endings
if WIN32
libf2c_a_SOURCES += \
	@PMX_TREE@/w32getc.c
endif WIN32

## QINT (unused)
EXTRA_libf2c_a_SOURCES += \
	@PMX_TREE@/libf2c/ftell64_.c \
	@PMX_TREE@/libf2c/pow_qq.c \
	@PMX_TREE@/libf2c/qbitbits.c \
	@PMX_TREE@/libf2c/qbitshft.c
## unused
EXTRA_libf2c_a_SOURCES += \
	@PMX_TREE@/libf2c/signbit.c

dist_man1_MANS = pmxab.1 scor2prt.1

## Tests
AM_TESTS_ENVIRONMENT = test_src=$(srcdir)/$(PMX_TREE)/tests; export test_src;
#
TESTS = $(PMX_TREE)/pmx.test
$(PMX_TREE)/pmx.log: pmxab$(EXEEXT) scor2prt$(EXEEXT)

## $(PMX_TREE)/pmx.test
DISTCLEANFILES = barsant* pmxaerr.dat