Hash utilities: maintain a hash state object, not a bundle of arguments.
[u/mdw/catacomb] / Makefile.m4
CommitLineData
f9984d11 1## -*-m4-*-
d03ab969 2##
c65df279 3## $Id$
d03ab969 4##
5## Makefile for Catacomb
6##
7## (c) 1999 Straylight/Edgeware
8##
9
10##----- Licensing notice ----------------------------------------------------
11##
12## This file is part of Catacomb.
13##
14## Catacomb is free software; you can redistribute it and/or modify
15## it under the terms of the GNU Library General Public License as
16## published by the Free Software Foundation; either version 2 of the
17## License, or (at your option) any later version.
45c0fd36 18##
d03ab969 19## Catacomb is distributed in the hope that it will be useful,
20## but WITHOUT ANY WARRANTY; without even the implied warranty of
21## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22## GNU Library General Public License for more details.
45c0fd36 23##
d03ab969 24## You should have received a copy of the GNU Library General Public
25## License along with Catacomb; if not, write to the Free
26## Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
27## MA 02111-1307, USA.
28
cc44d54e 29SUBDIRS = tests
30
d03ab969 31archincludedir = $(libdir)/catacomb/include
32
33## --- List handling macros ---
34##
35## List handling is nice, usually. Unfortunately, I based this design on
36## TeX list macros rather than anything sensible...
37
38define(`_', `define(`_item', $1)define(`_item_2', $2)emit`'')
39define(`adorn', `pushdef(`emit', `$1`'_item`'$3')$2`'popdef(`emit')')
40define(`join',
41`pushdef(`emit', `adorn(``_(''_item`$2', `$3', ``)'')`'')$1`'popdef(`emit')')
42define(`addsuffix', `adorn(`', `$1', `$2')')
43define(`lit', `adorn(`', `$1', `')')
44define(`nl', `
45')
46
47define(`allwithsuffix',
48`addsuffix(`$1', `$3') addsuffix(`$2', `$3') dnl
49addsuffix(join(`$1', `-', `$2'), `$3')')
50
51## --- Autogenerated source files ---
52
cc44d54e 53define(`ciphers', `dnl
3bef8c14 54_(des) _(desx) _(des3) _(mars) dnl
621468d8 55_(idea) _(safer) _(safersk) dnl
cc44d54e 56_(blowfish) _(twofish) dnl
a16cc8cf 57_(tea) _(xtea) dnl
cc44d54e 58_(rc2) _(rc5) dnl
a16cc8cf 59_(skipjack) dnl
cc44d54e 60_(cast128) _(cast256) dnl
2e8eb64a 61_(square) _(rijndael) _(rijndael192) _(rijndael256) dnl
0ba18b90 62_(serpent) _(noekeon)')
cc44d54e 63define(`cipher_modes', `_(ecb) _(cbc) _(cfb) _(ofb) _(counter)')
d03ab969 64
817d0432 65define(`hashes', `dnl
e9026a0a 66_(md5) _(md4) _(md2) _(tiger) _(has160) dnl
5b69c389 67_(sha) _(sha224) _(sha256) _(sha384) _(sha512) dnl
7fcfe7de 68_(whirlpool) _(whirlpool256) dnl
817d0432 69_(rmd128) _(rmd160) _(rmd256) _(rmd320)')
cc44d54e 70define(`hash_modes', `_(mgf) _(hmac)')
d03ab969 71
72MODES = \
73 adorn(`$(srcdir)/', join(`ciphers', `-', `cipher_modes'), `.c') \
74 adorn(`$(srcdir)/', join(`ciphers', `-', `cipher_modes'), `.h') \
75 adorn(`$(srcdir)/', join(`hashes', `-', `hash_modes'), `.c') \
76 adorn(`$(srcdir)/', join(`hashes', `-', `hash_modes'), `.h')
77
5a1a3a89 78$(MODES): modes-stamp
79modes-stamp: genmodes
a7557fb1 80 cd $(srcdir); ./genmodes "lit(`ciphers')" "lit(`cipher_modes')"
81 cd $(srcdir); ./genmodes "lit(`hashes')" "lit(`hash_modes')"
5a1a3a89 82 echo datestamp >modes-stamp
83
bc981076 84define(`gen_tables', `dnl
2e8eb64a 85_(des) _(blowfish) _(twofish) dnl
7fcfe7de 86_(square) _(rijndael) _(whirlpool) dnl
3bef8c14 87_(safer) _(mars) _(tiger) dnl
7c0acba6 88_(gfshare) _(gfx-sqr)')
a7557fb1 89
7eaaecf5 90autoheaders: \
1d6d3b01
MW
91 addsuffix(`gen_tables', `-tab.h') \
92 primetab.h wheel.h mptypes.h mplimits.h
5a1a3a89 93define(`emit', `
8282072d 94_item`'-tab.h: _item`'-mktab$(EXEEXT)
f21119d7 95 ./_item`'-mktab >_item`'-tab.h.new
96 mv _item`'-tab.h.new _item`'-tab.h')dnl
bc981076 97gen_tables
5a1a3a89 98
99primetab.h: primetab.c
8282072d 100primetab.c: genprimes$(EXEEXT)
34e4f738 101 ./genprimes -h primetab.h -c primetab.c \
102 -s CATACOMB_PRIMETAB_H -n 256 \
3fe3eae5 103 -t "unsigned short" -i primetab
1d6d3b01
MW
104
105wheel.h: wheel.c
106wheel.c: genwheel$(EXEEXT)
107 ./genwheel -h wheel.h -c wheel.c \
4263ac2b 108 -s CATACOMB_WHEEL_H -n 5 \
1d6d3b01
MW
109 -t "unsigned char" -i wheel
110
7eaaecf5 111archinclude_HEADERS = mptypes.h mplimits.h
8282072d 112mptypes.h: mptypes$(EXEEXT)
f21119d7 113 ./mptypes >mptypes.h.new
114 mv mptypes.h.new mptypes.h
d03ab969 115
7eaaecf5
MW
116mplimits.h: genlimits$(EXEEXT)
117 ./genlimits h >mplimits.h.new
118 mv mplimits.h.new mplimits.h
119mplimits.c: genlimits$(EXEEXT)
120 ./genlimits c >mplimits.c.new
121 mv mplimits.c.new mplimits.c
122
8282072d 123ectab.c: ectab.in ec-gentab.awk mpdump$(EXEEXT)
4edc47b8 124 $(srcdir)/ec-gentab.awk <$(srcdir)/ectab.in >ectab.c.new
432c4e18 125 mv ectab.c.new ectab.c
126
8282072d 127ptab.c: ptab.in p-gentab.awk mpdump$(EXEEXT)
4edc47b8 128 $(srcdir)/p-gentab.awk <$(srcdir)/ptab.in >ptab.c.new
34e4f738 129 mv ptab.c.new ptab.c
130
8282072d 131bintab.c: bintab.in bin-gentab.awk mpdump$(EXEEXT)
3688eb75 132 $(srcdir)/bin-gentab.awk <$(srcdir)/bintab.in >bintab.c.new
133 mv bintab.c.new bintab.c
134
e9026a0a 135gciphertab.c: gengctab
136 $(srcdir)/gengctab gccipher gcipher >gciphertab.c.new \
137 "lit(join(`ciphers', `-', `cipher_modes')) \
b817bfc6 138 lit(join(`hashes', `-', `_(mgf)')) \
45c0fd36 139 rc4 seal"
e9026a0a 140 mv gciphertab.c.new gciphertab.c
141
142gmactab.c: gengctab
143 $(srcdir)/gengctab gcmac gmac >gmactab.c.new \
45c0fd36 144 "lit(join(`hashes', `-', `_(hmac)'))"
e9026a0a 145 mv gmactab.c.new gmactab.c
146
147ghashtab.c: gengctab
148 $(srcdir)/gengctab gchash ghash >ghashtab.c.new \
b817bfc6 149 "lit(`hashes') \
150 crc32=gcrc32"
e9026a0a 151 mv ghashtab.c.new ghashtab.c
152
d03ab969 153BUILT_SOURCES = \
e9026a0a 154 getdate.c modes-stamp gciphertab.c gmactab.c ghashtab.c \
d03ab969 155 addsuffix(join(`ciphers', `-', `cipher_modes'), `.c') \
156 addsuffix(join(`ciphers', `-', `cipher_modes'), `.h') \
d03ab969 157 addsuffix(join(`hashes', `-', `hash_modes'), `.c') \
158 addsuffix(join(`hashes', `-', `hash_modes'), `.h')
ffc086db 159
160## --- Building the main library ---
8582bb3b 161
ffc086db 162lib_LTLIBRARIES = libcatacomb.la
163
4263ac2b
MW
164libcatacomb_la_LIBADD = $(CATACOMB_LIBS)
165libcatacomb_la_LDFLAGS = -version-info 3:1:1
d03ab969 166## Middle number is the patchlevel. Final number is the minor version. The
167## difference between the first and last numbers is major version.
168
d03ab969 169pkginclude_HEADERS = \
c61ee18c 170 arena.h paranoia.h buf.h qdparse.h keysz.h \
5a1a3a89 171 blkc.h hash.h gcipher.h ghash.h gmac.h grand.h ghash-def.h \
172 lcrand.h fibrand.h rc4.h seal.h rand.h noise.h fipstest.h maurer.h \
1dda051b 173 key.h key-error.h key-data.h passphrase.h pixie.h lmem.h \
75263f25 174 mpx.h bitops.h mpw.h mpscan.h mparena.h mp.h mptext.h mpint.h \
f4535c64 175 exp.h mpbarrett.h mpmont.h mpreduce.h mp-exp.h \
dbfee00a 176 mpcrt.h mprand.h mpmul.h \
f4535c64 177 gfx.h gf.h gfreduce.h gfn.h gf-exp.h \
1d6d3b01
MW
178 primetab.h wheel.h pfilt.h rabin.h \
179 pgen.h primeiter.h prim.h strongprime.h limlee.h keycheck.h \
e9026a0a 180 bbs.h rsa.h dh.h dsarand.h dsa.h gdsa.h gkcdsa.h \
b817bfc6 181 tlsprf.h sslprf.h \
cc44d54e 182 gfshare.h share.h \
817d0432 183 rho.h \
489e11f0 184 field.h field-guts.h field-exp.h \
f94b972d 185 ec.h ec-guts.h ec-exp.h ec-test.h ectab.h ec-keys.h ec-raw.h \
e40955b5 186 ptab.h bintab.h group.h group-guts.h \
d03ab969 187 allwithsuffix(`ciphers', `cipher_modes', `.h') \
bba24c1d 188 allwithsuffix(`hashes', `hash_modes', `.h') \
189 addsuffix(`cipher_modes', `-def.h') \
e7dc130f 190 addsuffix(`hash_modes', `-def.h') crc32.h
d03ab969 191
7eaaecf5
MW
192define(`MP_BASE',
193 `mpx.c mpx-kmul.c mpx-ksqr.c mpscan.c mparena.c \
194 mp-misc.c mp-mem.c mp-const.c mp-arith.c mp-io.c \
195 mptext.c mptext-string.c')
196
3fe3eae5 197define(`MP_SOURCES',
7eaaecf5
MW
198 `qdparse.c \
199 mp-test.c mplimits.c \
ffec4880 200 mp-sqrt.c mp-gcd.c mp-jacobi.c mp-modsqrt.c mp-exp.c mp-modexp.c \
7eaaecf5 201 mpint.c mptext-file.c mptext-dstr.c \
0cbfe12e 202 mptext-len.c \
aacf9080 203 exp.c mpcrt.c mpmul.c mprand.c \
34e4f738 204 mpbarrett.c mpbarrett-exp.c mpbarrett-mexp.c mpbarrett-exp.h \
205 mpmont.c mpmont-exp.c mpmont-mexp.c mpmont-exp.h \
f46efa79 206 mpreduce.c mpreduce-exp.h \
3688eb75 207 group-stdops.c group-exp.c group-exp.h g-prime.c g-bin.c \
208 group-parse.c \
34e4f738 209 group-string.c group-file.c group-dstr.c \
3688eb75 210 rho.c buf.c ptab.c bintab.c \
dbfee00a 211 GF_SOURCES PGEN_SOURCES EC_SOURCES')
7c0acba6 212
213define(`GF_SOURCES',
f4535c64 214 `gfx.c gfx-kmul.c gfx-sqr.c gf-arith.c gf-exp.c gf-gcd.c \
4edc47b8 215 gfreduce.c gfreduce-exp.h gfn.c')
3fe3eae5 216
dbfee00a 217define(`EC_SOURCES',
489e11f0 218 `field.c field-parse.c field-exp.c \
219 f-prime.c f-niceprime.c f-binpoly.c \
34e4f738 220 ec.c ec-exp.c ec-prime.c ec-bin.c ec-test.c ec-info.c ectab.c \
0f3faccd 221 ec-fetch.c ec-raw.c g-ec.c')
3fe3eae5 222
223define(`PGEN_SOURCES',
1d6d3b01 224 `pfilt.c primeiter.c rabin.c \
975679c7 225 pgen.c pgen-stdev.c pgen-gcd.c pgen-simul.c \
29e444ad 226 prim.c strongprime.c limlee.c \
f2ec324f 227 keycheck.c keycheck-mp.c keycheck-report.c \
cc44d54e 228 bbs-rand.c bbs-gen.c bbs-jump.c bbs-fetch.c \
d3325040 229 rsa-priv.c rsa-pub.c rsa-gen.c rsa-recover.c rsa-fetch.c \
53cbeae3 230 oaep.c pkcs1.c pss.c \
4e67e30b 231 dh-gen.c dh-limlee.c dh-kcdsa.c dh-check.c dh-fetch.c dh-param.c \
c97fbcf9 232 dsarand.c dsa-misc.c dsa-sign.c dsa-verify.c dsa-gen.c dsa-check.c \
e9026a0a 233 gdsa.c gkcdsa.c \
ad47fc73 234 key-data.c key-flags.c key-text.c key-binary.c key-pass.c \
5a1a3a89 235 key-pack.c key-misc.c key-file.c key-attr.c key-io.c key-moan.c \
bc981076 236 key-error.c key-fetch.c \
1d6d3b01 237 primetab.c wheel.c share.c')
3fe3eae5 238
239libcatacomb_la_SOURCES = \
518452de 240 grand.c keysz.c keysz-conv.c \
3fe3eae5 241 lcrand.c fibrand.c rc4.c seal.c rand.c noise.c fipstest.c maurer.c \
8ef0c733 242 arena.c \
025c5f4a 243 passphrase.c pixie-common.c lmem.c \
53cbeae3 244 tlsprf.c sslprf.c \
3fe3eae5 245 gfshare.c \
7eaaecf5 246 MP_BASE MP_SOURCES karatsuba.h \
e9026a0a 247 gciphertab.c ghashtab.c gmactab.c \
3fe3eae5 248 des-base.c des-base.h \
0798f682 249 desx-tab.h \
a297c216 250 rc2-tab.h \
251 skipjack-tab.h \
3fe3eae5 252 cast-s.c cast-sk.c cast-base.h cast-tab.h \
2e8eb64a 253 rijndael-base.c rijndael-base.h \
abef5380 254 md2-tab.h \
3fe3eae5 255 serpent-sbox.h skipjack-tab.h tiger-base.h \
256 daftstory.h \
d03ab969 257 addsuffix(join(`ciphers', `-', `cipher_modes'), `.c') \
ce79f967 258 addsuffix(join(`hashes', `-', `hash_modes'), `.c') \
e7dc130f 259 addsuffix(`ciphers', `.c') addsuffix(`hashes', `.c') crc32.c
76f32ed2 260
cc44d54e 261des-base.lo: des-tab.h
262blowfish.lo: blowfish-tab.h
263twofish.lo: twofish-tab.h
a16cc8cf 264square.lo: square-tab.h
2e8eb64a 265rijndael-base.lo: rijndael-tab.h
7fcfe7de 266whirlpool.lo: whirlpool-tab.h
2e8eb64a 267safer.lo: safer-tab.h
268mars.lo: mars-tab.h
a16cc8cf 269tiger.lo: tiger-tab.h
5a1a3a89 270gfshare.lo: gfshare-tab.h
7c0acba6 271gfx-sqr.lo: gfx-sqr-tab.h
748ed8dc 272
d03ab969 273## --- Utility programs ---
a7557fb1 274
e2edda68 275bin_PROGRAMS = \
fa54fe1e 276 dsig key pixie cookie rspit factorial hashsum mkphrase \
277 catcrypt catsign
c65df279 278noinst_LIBRARIES = libcatcrypt.a
4263ac2b
MW
279pkgconfigdir = $(libdir)/pkgconfig
280pkgconfig_DATA = catacomb.pc
cc44d54e 281noinst_PROGRAMS = \
1d6d3b01 282 genprimes genwheel mptypes genlimits serpent-check bittest mpdump \
e2edda68 283 perftest \
7c0acba6 284 addsuffix(`gen_tables', `-mktab')
8282072d 285LDADD = libcatcrypt.a libcatacomb.la
c65df279 286
4b09da23 287define(`LIBCAT_SRC', `cc.h getdate.h dnl
18b3351a
MW
288 cc-sig.c cc-subcmd.c cc-enc.c cc-kem.c cc-hash.c \
289 cc-list.c cc-progress.c')
4b09da23 290libcatcrypt_a_SOURCES = LIBCAT_SRC getdate.y
291
7eaaecf5 292patsubst(MP_BASE MP_SOURCES, `\.c\>', `.lo') dsig.o keyutil.o rspit.o \
4b09da23 293 patsubst(LIBCAT_SRC, `\.c\>', `.o'): \
1d6d3b01 294 mptypes.h primetab.h wheel.h
7eaaecf5 295patsubst(MP_SOURCES, `\.c\>', `.lo'): mplimits.h
45c0fd36 296
c65df279 297dsig_SOURCES = dsig.c
298cookie_SOURCES = cookie.c
299catcrypt_SOURCES = catcrypt.c
fa54fe1e 300catsign_SOURCES = catsign.c
c65df279 301key_SOURCES = keyutil.c
a16cc8cf 302hashsum_SOURCES = hashsum.c
bba24c1d 303rspit_SOURCES = rspit.c
817d0432 304factorial_SOURCES = factorial.c
e2edda68 305perftest_SOURCES = perftest.c
5b7e2ea2 306perftest_LDADD = $(CATACOMB_LIBS) $(LDADD)
025c5f4a 307pixie_SOURCES = pixie.c pixie-common.c lmem.c arena.c passphrase.c
4263ac2b 308pixie_LDADD = $(PIXIE_LIBS)
8282072d 309pixie_CFLAGS = $(AM_CFLAGS)
b55540f6 310mkphrase_SOURCES = mkphrase.c
5b7e2ea2 311mkphrase_LDADD = $(CATACOMB_LIBS) $(LDADD)
75263f25 312bittest_SOURCES = bittest.c
45c0fd36 313bittest_LDADD =
817d0432 314
7c0acba6 315define(`emit', `
316patsubst(_item, `[^a-zA-Z0-9]', `_')_mktab_SOURCES = _item`'-mktab.c
317patsubst(_item, `[^a-zA-Z0-9]', `_')_mktab_LDADD =')dnl
318gen_tables
319
cc44d54e 320serpent_check_SOURCES = serpent-check.c
321serpent_check_LDADD =
cc44d54e 322
d03ab969 323genprimes_SOURCES = genprimes.c
324genprimes_LDADD =
325
1d6d3b01
MW
326genwheel_SOURCES = genwheel.c
327genwheel_LDADD =
328
d03ab969 329mptypes_SOURCES = mptypes.c
330mptypes_LDADD =
331
1d6d3b01 332genlimits_SOURCES = genlimits.c MP_BASE mptypes.h
7eaaecf5
MW
333genlimits_LDADD =
334genlimits_CFLAGS = $(AM_CFLAGS)
335
336mpdump_SOURCES = mpdump.c MP_BASE
432c4e18 337mpdump_LDADD =
8282072d 338mpdump_CFLAGS = $(AM_CFLAGS)
432c4e18 339
de5585f8 340## --- Install the pixie setuid-root if we can ---
525af7b8 341##
342## Bodge around a bug in Automake: it doesn't call `install-exec-hook' from
343## `install' if there are subdirectories.
de5585f8 344
345changequote(<, >)
21aac40c 346# install: install-exec-hook
de5585f8 347install-exec-hook:
0798f682 348 @pixie="$(DESTDIR)$(bindir)/`echo pixie|sed $(transform)`"; \
de5585f8 349 if chown root $$pixie && chmod 4755 $$pixie; then \
350 echo "chown root $$pixie"; \
351 echo "chmod 4755 $$pixie"; \
352 else \
353 echo "***"; \
354 echo "*** You should probably install $$pixie setuid-root."; \
355 echo "***"; \
356 fi
357changequote(`, ')
358
d03ab969 359## --- Documentation ---
360
fa54fe1e 361man_MANS = \
6abcf20f 362 key.1 dsig.1 cookie.1 catcrypt.1 catsign.1 hashsum.1 mkphrase.1 \
fa54fe1e 363 keyring.5 pixie.1
d03ab969 364
d7f3f07d
MW
365## --- Prime group keyring ---
366
69638ece 367#pkgdata_DATA = pgroups.kr
d7f3f07d
MW
368
369$(srcdir)/pgroups.kr: ptab.in mkpgroups
370 cd $(srcdir) && rm -f pgroups.kr && ./mkpgroups <ptab.in
371
d03ab969 372## --- Other handy definitions ---
9183ab7b 373
6f51228e 374EXTRA_DIST = \
b817bfc6 375 Makefile.m4 genmodes gengctab $(man_MANS) xpixie \
376 group-test.c rsa-test.c \
8282072d 377 ectab.in ec-gentab.awk \
69638ece 378 ptab.in p-gentab.awk mkpgroups \
8282072d 379 bintab.in bin-gentab.awk \
2ee993fe 380 README.cipher README.hash README.random README.mp \
381 debian/rules debian/copyright debian/control debian/changelog \
382 debian/catacomb-bin.postinst debian/catacomb-bin.config \
383 debian/catacomb-bin.prerm debian/catacomb-bin.templates
d03ab969 384
385dist-hook:
e9026a0a 386 @for i in getdate.c gciphertab.c ghashtab.c gmactab.c; do \
387 ln $$i $(distdir) || ln $(srcdir)/$$i $(distdir) || true; \
388 done
7280f7f4 389 echo $(VERSION) >$(distdir)/RELEASE
5a1a3a89 390 @echo datestamp >$(distdir)/modes-stamp || true
7c0acba6 391 @for i in calc tests; do \
392 mkdir $(distdir)/$$i; \
393 ln $(srcdir)/$$i/*[!~] $(distdir)/$$i; \
394 done || true
cc44d54e 395# kr=$$HOME/.catacomb/dsig-keyring; \
396# if [ -r $$kr ]; then \
397# cd $(distdir); \
398# ../key -k $$kr extract -f -secret KEYRING; \
399# find . -type f -print0 | ../dsig -k $$kr sign -0 -oMANIFEST; \
400# fi
471db039 401
a094cab7 402## --- Testing ---
d03ab969 403
471db039 404define(`testprogs', `')
405
406define(`CTESTRIG',
ffc086db 407`define(`testprogs', testprogs \
8282072d 408 $1.t$(EXEEXT))dnl
8b6cedcc 409$1.to: $1.c
410 $(COMPILE) -c -DTEST_RIG -DSRCDIR=\"$(srcdir)\" $(srcdir)/$1.c -o $1.to
8282072d 411$1.t$(EXEEXT): $1.to libcatacomb.la
b2524d68 412 $(CC) $(CFLAGS) $(LDFLAGS) $1.to .libs/libcatacomb.a $(CATACOMB_LIBS) $(LIBS) -o $1.t$(EXEEXT)')
a7557fb1 413
414CTESTRIG(rc4)
cc44d54e 415CTESTRIG(seal)
a7557fb1 416adorn(`nl`'CTESTRIG(', `ciphers', `)')
ce79f967 417adorn(`nl`'CTESTRIG(', `hashes', `)')
471db039 418adorn(`nl`'CTESTRIG(', join(`ciphers', `-', `cipher_modes'), `)')
419adorn(`nl`'CTESTRIG(', join(`hashes', `-', `hash_modes'), `)')
bba24c1d 420CTESTRIG(lcrand)
d83a82be 421CTESTRIG(tlsprf)
51a0f805 422CTESTRIG(sslprf)
471db039 423CTESTRIG(mpx)
bba24c1d 424CTESTRIG(mpx-kmul)
b6f2c5a0 425CTESTRIG(mpx-ksqr)
a7557fb1 426CTESTRIG(mp-arith)
1cf8e9fb 427CTESTRIG(mp-modsqrt)
a7557fb1 428CTESTRIG(mp-gcd)
9fc256e8 429CTESTRIG(mp-jacobi)
1cf8e9fb 430CTESTRIG(mp-sqrt)
ffec4880 431CTESTRIG(mp-modexp)
bba24c1d 432CTESTRIG(mptext)
70b904c5 433CTESTRIG(mpint)
bba24c1d 434CTESTRIG(mpbarrett)
34e4f738 435CTESTRIG(mpbarrett-exp)
aacf9080 436CTESTRIG(mpbarrett-mexp)
a7557fb1 437CTESTRIG(mpmont)
34e4f738 438CTESTRIG(mpmont-exp)
a7557fb1 439CTESTRIG(mpmont-mexp)
f46efa79 440CTESTRIG(mpreduce)
9fc256e8 441CTESTRIG(mpcrt)
817d0432 442CTESTRIG(mpmul)
b817bfc6 443CTESTRIG(rsa-test)
7c0acba6 444CTESTRIG(gfx)
ceb3f0c0 445CTESTRIG(gfx-sqr)
7c0acba6 446CTESTRIG(gfx-kmul)
ceb3f0c0 447CTESTRIG(gf-arith)
448CTESTRIG(gf-gcd)
449CTESTRIG(gfreduce)
4edc47b8 450CTESTRIG(gfn)
dbfee00a 451CTESTRIG(ec-prime)
ceb3f0c0 452CTESTRIG(ec-bin)
bc985cef 453CTESTRIG(ec-test)
fb83f882 454CTESTRIG(ec-info)
34e4f738 455CTESTRIG(dh-param)
456CTESTRIG(group-test)
e9026a0a 457CTESTRIG(gdsa)
458CTESTRIG(gkcdsa)
a7557fb1 459CTESTRIG(pgen)
1d6d3b01 460CTESTRIG(primeiter)
471db039 461CTESTRIG(dsa-gen)
462CTESTRIG(dsa-sign)
d03ab969 463CTESTRIG(dsa-verify)
bba24c1d 464CTESTRIG(bbs-rand)
465CTESTRIG(bbs-jump)
cc44d54e 466CTESTRIG(gfshare)
467CTESTRIG(share)
817d0432 468CTESTRIG(rho)
a7557fb1 469
75263f25 470TESTS = serpent-check bittest testprogs
d03ab969 471
cc44d54e 472CLEANFILES = \
d7f3f07d 473 *.t$(EXEEXT) *.to *.kr.old \
e564e3f8
MW
474 mptypes.h mplimits.c mplimits.h \
475 primetab.c primetab.h wheel.c wheel.h \
1d6d3b01 476 ectab.c ptab.c bintab.c \
bc981076 477 addsuffix(`gen_tables', `-tab.h')
d03ab969 478
479## --- Makefile building (haha!) ---
480
481$(srcdir)/Makefile.am: $(srcdir)/Makefile.m4
f21119d7 482 m4 $(srcdir)/Makefile.m4 >$(srcdir)/Makefile.am.new
483 mv $(srcdir)/Makefile.am.new $(srcdir)/Makefile.am
a7557fb1 484
9312c71f 485DISTCLEANFILES = libtool
486
a7557fb1 487MAINTAINERCLEANFILES = \
d03ab969 488 $(srcdir)/Makefile.am \
489 $(srcdir)/getdate.c getdate.c \
d7f3f07d 490 $(srcdir)/pgroups.kr \
5a1a3a89 491 $(MODES) modes-stamp $(srcdir)/modes-stamp
d03ab969 492
493##----- That's all, folks ---------------------------------------------------