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