Fix copyright date.
[become] / src / Makefile.am
CommitLineData
8ddbfc62 1## Process this file with `automake' to generate `Makefile.in'
2## -*-makefile-*-
3##
c758e654 4## $Id: Makefile.am,v 1.8 1998/01/12 16:45:36 mdw Exp $
8ddbfc62 5##
6## Makefile for `become'
7##
c758e654 8## (c) 1998 EBI
8ddbfc62 9##
10
11##----- Licensing notice ----------------------------------------------------
12##
13## This file is part of `become'
14##
15## `Become' is free software; you can redistribute it and/or modify
16## it under the terms of the GNU General Public License as published by
17## the Free Software Foundation; either version 2 of the License, or
18## (at your option) any later version.
19##
20## `Become' is distributed in the hope that it will be useful,
21## but WITHOUT ANY WARRANTY; without even the implied warranty of
22## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23## GNU General Public License for more details.
24##
25## You should have received a copy of the GNU General Public License
26## along with `become'; if not, write to the Free Software Foundation,
27## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28
29##----- Revision history ----------------------------------------------------
30##
31## $Log: Makefile.am,v $
c758e654 32## Revision 1.8 1998/01/12 16:45:36 mdw
33## Fix copyright date.
34##
9e5602f0 35## Revision 1.7 1997/09/26 09:14:57 mdw
36## Merged blowfish branch into trunk.
37##
38## Revision 1.6.2.1 1997/09/26 09:07:56 mdw
39## Use the Blowfish encryption algorithm instead of IDEA. This is partly
40## because I prefer Blowfish (without any particularly strong evidence) but
41## mainly because IDEA is patented and Blowfish isn't.
42##
07d8362a 43## Revision 1.6 1997/09/18 11:17:18 mdw
44## Fix comment leaders. Don't know why this CVS keeps breaking them.
45## Could be DEC's bogus version of RCS being picked up.
46##
47## Revision 1.5 1997/09/17 10:28:25 mdw
c426c3c9 48## Remove `set.c'. No longer necessary.
0d036225 49##
07d8362a 50## Revision 1.4 1997/08/20 16:14:12 mdw
51## Build parser and lexer into the source directory. Other cosmetic
52## things.
53##
a68d9c21 54## Revision 1.3 1997/08/07 09:39:36 mdw
55## Add new source files, and remove options inappropriate for subsidiary
56## Makefiles.
57##
03f996bd 58## Revision 1.2 1997/08/04 10:24:19 mdw
8ddbfc62 59## Sources placed under CVS control.
60##
61
62##----- General setup things ------------------------------------------------
63
8ddbfc62 64## --- What to make ---
65
66bin_PROGRAMS = become keygen
67noinst_LIBRARIES = bcm
68
69##----- Building the main code ----------------------------------------------
70
71## --- The library contains most of the interesting stuff ---
72
73bcm_SOURCES = \
74 check.c daemon.c \
75 lexer.l parser.y \
c426c3c9 76 class.c name.c netg.c rule.c sym.c userdb.c \
8ddbfc62 77 crypt.c \
78 noise.c rand.c \
9e5602f0 79 icrypt.c blowfish.c md5.c \
8ddbfc62 80 mdwopt.c tx.c utils.c \
81 \
82 become.h \
83 check.h daemon.h \
84 lexer.h parser.h \
c426c3c9 85 class.h name.h netg.h rule.h sym.h userdb.h \
8ddbfc62 86 crypt.h \
87 noise.h rand.h \
9e5602f0 88 icrypt.h blowfish.h blowfish-sbox.h md5.h \
a68d9c21 89 mdwopt.h tx.h utils.h \
90 dbutils.h
8ddbfc62 91
92BUILT_SOURCES = \
93 parser.c lexer.c parser.tab.h
94
95## --- Yaccing and lexing ---
96
0d036225 97$(srcdir)/parser.c $(srcdir)/parser.tab.h: $(srcdir)/parser.y
8ddbfc62 98 @YACC@ -d -v $(srcdir)/parser.y
0d036225 99 mv y.tab.c $(srcdir)/parser.c
100 mv y.tab.h $(srcdir)/parser.tab.h
8ddbfc62 101
0d036225 102$(srcdir)/lexer.c: $(srcdir)/lexer.l
8ddbfc62 103 @LEX@ $(srcdir)/lexer.l
0d036225 104 mv lex.yy.c $(srcdir)/lexer.c
8ddbfc62 105
106## --- The main programs ---
107
a68d9c21 108LDADD = libbcm.a @LEXLIB@
0d036225 109
8ddbfc62 110become_SOURCES = become.c
111keygen_SOURCES = keygen.c
112
0d036225 113become_DEPENDENCIES = libbcm.a
114keygen_DEPENDENCIES = libbcm.a
8ddbfc62 115
116##----- Testing -------------------------------------------------------------
117
118## --- The test programs ---
119
120TESTS = \
a68d9c21 121 name-test netg-test sym-test userdb-test \
8ddbfc62 122 crypt-test \
123 blowfish-test idea-test md5-test
124
125## --- How to build a test rig ---
126
127SUFFIXES = .tro
128.c.tro:
129 $(COMPILE) -DTEST_RIG $< -o $@
130
131## --- Now build all the test programs ---
132##
133## This is a right pain. However, `automake' provides no way of automating
134## this. (A drop-out to raw perl would be nice, for example.)
135
136name-test: name.tro libbcm.a
137 $(LINK) name.tro libbcm.a $(LIBS)
138sym-test: sym.tro libbcm.a
139 $(LINK) sym.tro libbcm.a $(LIBS)
140userdb-test: userdb.tro libbcm.a
141 $(LINK) userdb.tro libbcm.a $(LIBS)
142crypt-test: crypt.tro libbcm.a
143 $(LINK) crypt.tro libbcm.a $(LIBS)
144blowfish-test: blowfish.tro libbcm.a
145 $(LINK) blowfish.tro libbcm.a $(LIBS)
146idea-test: idea.tro libbcm.a
147 $(LINK) idea.tro libbcm.a $(LIBS)
148md5-test: md5.tro libbcm.a
149 $(LINK) md5.tro libbcm.a $(LIBS)
150netg-test: netg.tro libbcm.a
151 $(LINK) netg.tro libbcm.a
152
0d036225 153CLEANFILES = *.tro y.output
154
8ddbfc62 155##----- That's all, folks ---------------------------------------------------