| 1 | ## -*-makefile-*- |
| 2 | ## |
| 3 | ## $Id$ |
| 4 | ## |
| 5 | ## Makefile for Storin distribution |
| 6 | ## |
| 7 | ## (c) 2000 Mark Wooding |
| 8 | ## |
| 9 | |
| 10 | ##----- Licensing notice ---------------------------------------------------- |
| 11 | ## |
| 12 | ## Copyright (c) 2000 Mark Wooding |
| 13 | ## All rights reserved. |
| 14 | ## |
| 15 | ## Redistribution and use in source and binary forms, with or without |
| 16 | ## modification, are permitted provided that the following conditions are |
| 17 | ## met: |
| 18 | ## |
| 19 | ## 1. Redistributions of source code must retain the above copyright |
| 20 | ## notice, this list of conditions and the following disclaimer. |
| 21 | ## |
| 22 | ## 2, Redistributions in binary form must reproduce the above copyright |
| 23 | ## notice, this list of conditions and the following disclaimer in the |
| 24 | ## documentation and/or other materials provided with the distribution. |
| 25 | ## |
| 26 | ## 3. The name of the authors may not be used to endorse or promote |
| 27 | ## products derived from this software without specific prior written |
| 28 | ## permission. |
| 29 | ## |
| 30 | ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED |
| 31 | ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 32 | ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN |
| 33 | ## NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| 34 | ## INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 35 | ## (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 36 | ## SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 37 | ## HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 38 | ## STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
| 39 | ## ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 40 | ## POSSIBILITY OF SUCH DAMAGE. |
| 41 | ## |
| 42 | ## Instead of accepting the above terms, you may redistribute and/or modify |
| 43 | ## this software under the terms of either the GNU General Public License, |
| 44 | ## or the GNU Library General Public License, published by the Free |
| 45 | ## Software Foundation; either version 2 of the License, or (at your |
| 46 | ## option) any later version. |
| 47 | |
| 48 | ##----- Revision history ---------------------------------------------------- |
| 49 | ## |
| 50 | ## $Log: Makefile.am,v $ |
| 51 | ## Revision 1.4 2001/03/11 23:46:56 mdw |
| 52 | ## Fixing to BibTeX stuff. |
| 53 | ## |
| 54 | ## Revision 1.3 2001/03/11 23:22:53 mdw |
| 55 | ## Use BibTeX for the paper bibliography. |
| 56 | ## |
| 57 | ## Revision 1.2 2000/07/02 15:21:20 mdw |
| 58 | ## Fix licence text. |
| 59 | ## |
| 60 | ## Revision 1.1 2000/05/21 11:28:30 mdw |
| 61 | ## Initial check-in. |
| 62 | ## |
| 63 | |
| 64 | AUTOMAKE_OPTIONS = foreign |
| 65 | |
| 66 | SUFFIXES = .ps .tex |
| 67 | |
| 68 | .tex.ps: |
| 69 | latex $< |
| 70 | bibtex $* |
| 71 | latex $< |
| 72 | latex $< |
| 73 | dvips $*.dvi -o $@ |
| 74 | |
| 75 | noinst_PROGRAMS = storin-mktab storin-debug storin-tests diffan sac |
| 76 | |
| 77 | noinst_HEADERS = \ |
| 78 | bits.h arith24.h matrix.h storin.h \ |
| 79 | sym.h dsarand.h fibrand.h lcrand.h sha.h |
| 80 | |
| 81 | all: storin.ps storin.tests storin.debug |
| 82 | |
| 83 | storin-debug.o: storin.o |
| 84 | $(COMPILE) -DDEBUG $(srcdir)/storin.c -c -o storin-debug.o |
| 85 | |
| 86 | storin_debug_SOURCES = arith24.c matrix.c |
| 87 | storin_debug_LDADD = storin-debug.o |
| 88 | |
| 89 | storin_mktab_SOURCES = arith24.c matrix.c dsarand.c sha.c storin-mktab.c |
| 90 | storin_tests_SOURCES = arith24.c matrix.c storin.c fibrand.c lcrand.c storin-tests.c |
| 91 | diffan_SOURCES = arith24.c matrix.c sym.c fibrand.c lcrand.c diffan.c |
| 92 | sac_SOURCES = arith24.c matrix.c fibrand.c lcrand.c sac.c |
| 93 | sac_LDADD = -lm |
| 94 | |
| 95 | storin.o diffan.o sac.o: storin-tab.h |
| 96 | storin-tab.h: storin-mktab |
| 97 | ./storin-mktab >storin-tab.h |
| 98 | |
| 99 | storin.tests: storin-tests |
| 100 | ./storin-tests >storin.tests |
| 101 | |
| 102 | storin.debug: storin-debug |
| 103 | ./storin-debug >storin.debug |
| 104 | |
| 105 | dist-hook: storin.ps storin.tests storin.debug |
| 106 | @ln storin.ps $(distdir) || ln $(srcdir)/storin.ps $(distdir) |
| 107 | @ln storin.tests $(distdir) || ln $(srcdir)/storin.tests $(distdir) |
| 108 | @ln storin.debug $(distdir) || ln $(srcdir)/storin.debug $(distdir) |
| 109 | |
| 110 | EXTRA_DIST = storin.tex |
| 111 | |
| 112 | CLEANFILES = \ |
| 113 | storin-tab.h storin.debug storin.tests \ |
| 114 | *.dvi *.ps *.xyc *.log *.aux *.toc *.bbl *.blg |
| 115 | |
| 116 | ##----- That's all, folks --------------------------------------------------- |