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