## Process this file with `automake' to generate `Makefile.in' ## -*-makefile-*- ## ## $Id: Makefile.am,v 1.4 1997/08/20 16:14:12 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.4 1997/08/20 16:14:12 mdw ## Build parser and lexer into the source directory. Other cosmetic ## things. ## ## Revision 1.3 1997/08/07 09:39:36 mdw ## Add new source files, and remove options inappropriate for subsidiary ## Makefiles. ## ## Revision 1.2 1997/08/04 10:24:19 mdw ## Sources placed under CVS control. ## ##----- General setup things ------------------------------------------------ ## --- 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 netg.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 netg.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 \ dbutils.h BUILT_SOURCES = \ parser.c lexer.c parser.tab.h ## --- Yaccing and lexing --- $(srcdir)/parser.c $(srcdir)/parser.tab.h: $(srcdir)/parser.y @YACC@ -d -v $(srcdir)/parser.y mv y.tab.c $(srcdir)/parser.c mv y.tab.h $(srcdir)/parser.tab.h $(srcdir)/lexer.c: $(srcdir)/lexer.l @LEX@ $(srcdir)/lexer.l mv lex.yy.c $(srcdir)/lexer.c ## --- The main programs --- LDADD = libbcm.a @LEXLIB@ become_SOURCES = become.c keygen_SOURCES = keygen.c become_DEPENDENCIES = libbcm.a keygen_DEPENDENCIES = libbcm.a ##----- Testing ------------------------------------------------------------- ## --- The test programs --- TESTS = \ name-test netg-test sym-test userdb-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 CLEANFILES = *.tro y.output ##----- That's all, folks ---------------------------------------------------