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