summaryrefslogtreecommitdiff
path: root/Build/source/utils/pmx/pmx-src/Makefile.am
blob: 323d74c7e00ee74adefcad13a75958dfb3cf20d0 (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
## Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org>
## You may freely use, modify and/or distribute this file.
##

INCLUDES = -I$(srcdir)/libf2c

bin_PROGRAMS = pmxab scor2prt

pmxab_SOURCES = pmxab.c

scor2prt_SOURCES = scor2prt.c

LDADD = libf2c.a

noinst_LIBRARIES = libf2c.a

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

## Handle DOS line endings
if WIN32
libf2c_a_SOURCES += w32getc.c
endif WIN32

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

## Tests
##
TESTS = pmx.test
TESTS_ENVIRONMENT = test_src=$(srcdir)/tests
EXTRA_DIST = $(TESTS)

PATCHES = libf2c/patch-01-binary libf2c/patch-03-DOS-line-endings \
	libf2c/patch-04-MSVC-complex libf2c/patch-05-FreeBSD-off_t libf2c/patch-06-WIN32 \
	libf2c/patch-07-MuslLibc \
        libf2c/patch-08-WIN64 \
        libf2c/patch-09-tmpfile \
	PATCH-pmx274.for
## pmx.test
EXTRA_DIST += tests/barsant.mid tests/barsant.pml tests/barsant.pmx \
	tests/barsant.tex tests/barsant1.pmx tests/barsant2.pmx
EXTRA_DIST += scor2prt.for pmx274.for.orig pmx274.for 
EXTRA_DIST += $(PATCHES)
EXTRA_DIST += version.ac configure.ac Makefile.am Makefile.f2c
DISTCLEANFILES = barsant* pmxaerr.dat