8ddbfc62 |
1 | ## Process this file with `automake' to generate `Makefile.in' |
2 | ## -*-makefile-*- |
3 | ## |
cda05cf9 |
4 | ## $Id: Makefile.am,v 1.6.2.1 1997/09/26 09:07:56 mdw Exp $ |
8ddbfc62 |
5 | ## |
6 | ## Makefile for `become' |
7 | ## |
8 | ## (c) 1997 EBI |
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 $ |
cda05cf9 |
32 | ## Revision 1.6.2.1 1997/09/26 09:07:56 mdw |
33 | ## Use the Blowfish encryption algorithm instead of IDEA. This is partly |
34 | ## because I prefer Blowfish (without any particularly strong evidence) but |
35 | ## mainly because IDEA is patented and Blowfish isn't. |
36 | ## |
07d8362a |
37 | ## Revision 1.6 1997/09/18 11:17:18 mdw |
38 | ## Fix comment leaders. Don't know why this CVS keeps breaking them. |
39 | ## Could be DEC's bogus version of RCS being picked up. |
40 | ## |
41 | ## Revision 1.5 1997/09/17 10:28:25 mdw |
c426c3c9 |
42 | ## Remove `set.c'. No longer necessary. |
0d036225 |
43 | ## |
07d8362a |
44 | ## Revision 1.4 1997/08/20 16:14:12 mdw |
45 | ## Build parser and lexer into the source directory. Other cosmetic |
46 | ## things. |
47 | ## |
a68d9c21 |
48 | ## Revision 1.3 1997/08/07 09:39:36 mdw |
49 | ## Add new source files, and remove options inappropriate for subsidiary |
50 | ## Makefiles. |
51 | ## |
03f996bd |
52 | ## Revision 1.2 1997/08/04 10:24:19 mdw |
8ddbfc62 |
53 | ## Sources placed under CVS control. |
54 | ## |
55 | |
56 | ##----- General setup things ------------------------------------------------ |
57 | |
8ddbfc62 |
58 | ## --- What to make --- |
59 | |
60 | bin_PROGRAMS = become keygen |
61 | noinst_LIBRARIES = bcm |
62 | |
63 | ##----- Building the main code ---------------------------------------------- |
64 | |
65 | ## --- The library contains most of the interesting stuff --- |
66 | |
67 | bcm_SOURCES = \ |
68 | check.c daemon.c \ |
69 | lexer.l parser.y \ |
c426c3c9 |
70 | class.c name.c netg.c rule.c sym.c userdb.c \ |
8ddbfc62 |
71 | crypt.c \ |
72 | noise.c rand.c \ |
cda05cf9 |
73 | icrypt.c blowfish.c md5.c \ |
8ddbfc62 |
74 | mdwopt.c tx.c utils.c \ |
75 | \ |
76 | become.h \ |
77 | check.h daemon.h \ |
78 | lexer.h parser.h \ |
c426c3c9 |
79 | class.h name.h netg.h rule.h sym.h userdb.h \ |
8ddbfc62 |
80 | crypt.h \ |
81 | noise.h rand.h \ |
cda05cf9 |
82 | icrypt.h blowfish.h blowfish-sbox.h md5.h \ |
a68d9c21 |
83 | mdwopt.h tx.h utils.h \ |
84 | dbutils.h |
8ddbfc62 |
85 | |
86 | BUILT_SOURCES = \ |
87 | parser.c lexer.c parser.tab.h |
88 | |
89 | ## --- Yaccing and lexing --- |
90 | |
0d036225 |
91 | $(srcdir)/parser.c $(srcdir)/parser.tab.h: $(srcdir)/parser.y |
8ddbfc62 |
92 | @YACC@ -d -v $(srcdir)/parser.y |
0d036225 |
93 | mv y.tab.c $(srcdir)/parser.c |
94 | mv y.tab.h $(srcdir)/parser.tab.h |
8ddbfc62 |
95 | |
0d036225 |
96 | $(srcdir)/lexer.c: $(srcdir)/lexer.l |
8ddbfc62 |
97 | @LEX@ $(srcdir)/lexer.l |
0d036225 |
98 | mv lex.yy.c $(srcdir)/lexer.c |
8ddbfc62 |
99 | |
100 | ## --- The main programs --- |
101 | |
a68d9c21 |
102 | LDADD = libbcm.a @LEXLIB@ |
0d036225 |
103 | |
8ddbfc62 |
104 | become_SOURCES = become.c |
105 | keygen_SOURCES = keygen.c |
106 | |
0d036225 |
107 | become_DEPENDENCIES = libbcm.a |
108 | keygen_DEPENDENCIES = libbcm.a |
8ddbfc62 |
109 | |
110 | ##----- Testing ------------------------------------------------------------- |
111 | |
112 | ## --- The test programs --- |
113 | |
114 | TESTS = \ |
a68d9c21 |
115 | name-test netg-test sym-test userdb-test \ |
8ddbfc62 |
116 | crypt-test \ |
117 | blowfish-test idea-test md5-test |
118 | |
119 | ## --- How to build a test rig --- |
120 | |
121 | SUFFIXES = .tro |
122 | .c.tro: |
123 | $(COMPILE) -DTEST_RIG $< -o $@ |
124 | |
125 | ## --- Now build all the test programs --- |
126 | ## |
127 | ## This is a right pain. However, `automake' provides no way of automating |
128 | ## this. (A drop-out to raw perl would be nice, for example.) |
129 | |
130 | name-test: name.tro libbcm.a |
131 | $(LINK) name.tro libbcm.a $(LIBS) |
132 | sym-test: sym.tro libbcm.a |
133 | $(LINK) sym.tro libbcm.a $(LIBS) |
134 | userdb-test: userdb.tro libbcm.a |
135 | $(LINK) userdb.tro libbcm.a $(LIBS) |
136 | crypt-test: crypt.tro libbcm.a |
137 | $(LINK) crypt.tro libbcm.a $(LIBS) |
138 | blowfish-test: blowfish.tro libbcm.a |
139 | $(LINK) blowfish.tro libbcm.a $(LIBS) |
140 | idea-test: idea.tro libbcm.a |
141 | $(LINK) idea.tro libbcm.a $(LIBS) |
142 | md5-test: md5.tro libbcm.a |
143 | $(LINK) md5.tro libbcm.a $(LIBS) |
144 | netg-test: netg.tro libbcm.a |
145 | $(LINK) netg.tro libbcm.a |
146 | |
0d036225 |
147 | CLEANFILES = *.tro y.output |
148 | |
8ddbfc62 |
149 | ##----- That's all, folks --------------------------------------------------- |