Build mLib test vector files from the AES files.
[u/mdw/catacomb] / tests / Makefile.m4
CommitLineData
92090e34 1## -*-fundamental-*-
2##
3## $Id: Makefile.m4,v 1.1 2000/06/17 12:12:20 mdw Exp $
4##
5## Build test vector files
6##
7## (c) 2000 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
29##----- Revision history ----------------------------------------------------
30##
31## $Log: Makefile.m4,v $
32## Revision 1.1 2000/06/17 12:12:20 mdw
33## Build mLib test vector files from the AES files.
34##
35
36AUTOMAKE_OPTIONS = foreign
37
38## --- Building test rigs ---
39
40define(`aestests', `dnl
41_(`cast256', `CAST256')`'dnl
42_(`serpent', `Serpent', `-v rev=1')`'dnl
43_(`twofish', `Twofish')`'dnl
44_(`rijndael', `Rijndael')`'dnl
45')
46
47all: Makefile define(`_', ` $(srcdir)/$1')aestests
48
49define(`_', `dnl
50$(srcdir)/$1: $(srcdir)/$1.aes
51 cd $(srcdir); ./aes-trans $2 $3 <$1.aes >$1
52')
53aestests
54
55MAINTAINERCLEANFILES = define(`_', ` $(srcdir)/$1')aestests
56
57## --- Building the Makefile ---
58
59$(srcdir)/Makefile.am: $(srcdir)/Makefile.m4
60 cd $(srcdir); m4 Makefile.m4 >Makefile.am
61
62##----- That's all, folks ---------------------------------------------------