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