| 1 | ## -*-fundamental-*- |
| 2 | ## |
| 3 | ## $Id: Makefile.m4,v 1.3 2004/04/08 01:36:15 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 | AUTOMAKE_OPTIONS = foreign |
| 30 | |
| 31 | ## --- Building test rigs --- |
| 32 | |
| 33 | define(`aestests', `dnl |
| 34 | _(`cast256', `CAST256')`'dnl |
| 35 | _(`serpent', `Serpent', `-v rev=1')`'dnl |
| 36 | _(`twofish', `Twofish')`'dnl |
| 37 | _(`rijndael', `Rijndael')`'dnl |
| 38 | _(`mars', `MARS')`'dnl |
| 39 | ') |
| 40 | |
| 41 | all: Makefile define(`_', ` $(srcdir)/$1')aestests |
| 42 | |
| 43 | define(`_', `dnl |
| 44 | $(srcdir)/$1: $(srcdir)/$1.aes |
| 45 | cd $(srcdir); ./aes-trans $2 $3 <$1.aes >$1 |
| 46 | ') |
| 47 | aestests |
| 48 | |
| 49 | MAINTAINERCLEANFILES = define(`_', ` $(srcdir)/$1')aestests |
| 50 | |
| 51 | ## --- Building the Makefile --- |
| 52 | |
| 53 | $(srcdir)/Makefile.am: $(srcdir)/Makefile.m4 |
| 54 | cd $(srcdir); m4 Makefile.m4 >Makefile.am |
| 55 | |
| 56 | ##----- That's all, folks --------------------------------------------------- |