Sources placed under CVS control.
[become] / src / Makefile.am
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644 (file)
index 0000000..88434ec
--- /dev/null
@@ -0,0 +1,128 @@
+## Process this file with `automake' to generate `Makefile.in'
+## -*-makefile-*-
+##
+## $Id: Makefile.am,v 1.1 1997/08/04 10:22:09 mdw Exp $
+##
+## Makefile for `become'
+##
+## (c) 1997 EBI
+##
+
+##----- Licensing notice ----------------------------------------------------
+##
+## This file is part of `become'
+## 
+## `Become' is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+## 
+## `Become' is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+## 
+## You should have received a copy of the GNU General Public License
+## along with `become'; if not, write to the Free Software Foundation,
+## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+##----- Revision history ----------------------------------------------------
+##
+## $Log: Makefile.am,v $
+## Revision 1.1  1997/08/04 10:22:09  mdw
+## Sources placed under CVS control.
+##
+
+##----- General setup things ------------------------------------------------
+
+## --- Standard setup things ---
+
+AUTOMAKE_OPTIONS = foreign
+
+## --- What to make ---
+
+bin_PROGRAMS = become keygen
+noinst_LIBRARIES = bcm
+
+##----- Building the main code ----------------------------------------------
+
+## --- The library contains most of the interesting stuff ---
+
+bcm_SOURCES = \
+       check.c daemon.c \
+       lexer.l parser.y \
+       class.c name.c rule.c set.c sym.c userdb.c \
+       crypt.c \
+       noise.c rand.c \
+       icrypt.c idea.c md5.c \
+       mdwopt.c tx.c utils.c \
+       \
+       become.h \
+       check.h daemon.h \
+       lexer.h parser.h \
+       class.h name.h rule.h set.h sym.h userdb.h \
+       crypt.h \
+       noise.h rand.h \
+       icrypt.h idea.h md5.h \
+       mdwopt.h tx.h utils.h
+
+BUILT_SOURCES = \
+       parser.c lexer.c parser.tab.h
+
+## --- Yaccing and lexing ---
+
+parser.c parser.tab.h: $(srcdir)/parser.y
+       @YACC@ -d -v $(srcdir)/parser.y
+       mv y.tab.c parser.c
+       mv y.tab.h parser.tab.h
+
+lexer.c: $(srcdir)/lexer.l
+       @LEX@ $(srcdir)/lexer.l
+       mv lex.yy.c lexer.c
+
+## --- The main programs ---
+
+LDADD = libbcm.a @LIBS@ @LEXLIB@
+become_SOURCES = become.c
+keygen_SOURCES = keygen.c
+
+become keygen: libbcm.a
+
+##----- Testing -------------------------------------------------------------
+
+## --- The test programs ---
+
+TESTS = \
+       name-test sym-test userdb-test netg-test \
+       crypt-test \
+       blowfish-test idea-test md5-test
+
+## --- How to build a test rig ---
+
+SUFFIXES = .tro
+.c.tro:
+       $(COMPILE) -DTEST_RIG $< -o $@
+
+## --- Now build all the test programs ---
+##
+## This is a right pain.  However, `automake' provides no way of automating
+## this.  (A drop-out to raw perl would be nice, for example.)
+
+name-test: name.tro libbcm.a
+       $(LINK) name.tro libbcm.a $(LIBS)
+sym-test: sym.tro libbcm.a
+       $(LINK) sym.tro libbcm.a $(LIBS)
+userdb-test: userdb.tro libbcm.a
+       $(LINK) userdb.tro libbcm.a $(LIBS)
+crypt-test: crypt.tro libbcm.a
+       $(LINK) crypt.tro libbcm.a $(LIBS)
+blowfish-test: blowfish.tro libbcm.a
+       $(LINK) blowfish.tro libbcm.a $(LIBS)
+idea-test: idea.tro libbcm.a
+       $(LINK) idea.tro libbcm.a $(LIBS)
+md5-test: md5.tro libbcm.a
+       $(LINK) md5.tro libbcm.a $(LIBS)
+netg-test: netg.tro libbcm.a
+       $(LINK) netg.tro libbcm.a
+
+##----- That's all, folks ---------------------------------------------------