X-Git-Url: https://git.distorted.org.uk/~mdw/become/blobdiff_plain/5b175cbbd74099aca651346b7ee9a8034f249217..bc8fea8583d9b1419861f673f6d8a7728baeb4ba:/src/Makefile.am diff --git a/src/Makefile.am b/src/Makefile.am index effb91c..c04dd1a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,7 @@ ## Process this file with `automake' to generate `Makefile.in' ## -*-makefile-*- ## -## $Id: Makefile.am,v 1.9 1998/02/20 18:12:35 mdw Exp $ +## $Id: Makefile.am,v 1.15 2003/10/12 00:15:34 mdw Exp $ ## ## Makefile for `become' ## @@ -29,6 +29,25 @@ ##----- Revision history ---------------------------------------------------- ## ## $Log: Makefile.am,v $ +## Revision 1.15 2003/10/12 00:15:34 mdw +## Fix to makefile install rules. +## +## Revision 1.14 2003/10/12 00:14:55 mdw +## Major overhaul. Now uses DSA signatures rather than the bogus symmetric +## encrypt-and-hope thing. Integrated with mLib and Catacomb. +## +## Revision 1.13 1999/05/04 16:50:59 mdw +## Change library to `libbecome.a', for aesthetic reasons. +## +## Revision 1.12 1999/05/04 16:36:03 mdw +## Changes for new Automake version. +## +## Revision 1.11 1998/06/18 15:52:05 mdw +## Remove the IDEA test case. +## +## Revision 1.10 1998/04/23 13:17:17 mdw +## New program `bcquery', and `ypstuff' module added. +## ## Revision 1.9 1998/02/20 18:12:35 mdw ## Make the `become' program setuid root when installing. ## @@ -66,60 +85,49 @@ ## --- What to make --- -bin_PROGRAMS = become keygen -noinst_LIBRARIES = bcm +bin_PROGRAMS = become bcquery +noinst_LIBRARIES = libbecome.a ##----- Building the main code ---------------------------------------------- ## --- The library contains most of the interesting stuff --- -bcm_SOURCES = \ +libbecome_a_SOURCES = \ check.c daemon.c \ lexer.l parser.y \ - class.c name.c netg.c rule.c sym.c userdb.c \ - crypt.c \ - noise.c rand.c \ - icrypt.c blowfish.c md5.c \ - mdwopt.c tx.c utils.c \ + class.c name.c netg.c rule.c userdb.c ypstuff.c \ \ become.h \ check.h daemon.h \ - lexer.h parser.h \ - class.h name.h netg.h rule.h sym.h userdb.h \ - crypt.h \ - noise.h rand.h \ - icrypt.h blowfish.h blowfish-sbox.h md5.h \ - mdwopt.h tx.h utils.h \ - dbutils.h + lexer.h parse.h \ + class.h name.h netg.h rule.h userdb.h ypstuff.h BUILT_SOURCES = \ - parser.c lexer.c parser.tab.h + parser.c parser.h lexer.c ## --- 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 +YFLAGS = -d -v -$(srcdir)/lexer.c: $(srcdir)/lexer.l - @LEX@ $(srcdir)/lexer.l - mv lex.yy.c $(srcdir)/lexer.c +dist-hook: + for i in $(BUILT_SOURCES); do \ + [ -r $(distdir)/$$i ] || ln $$i $(distdir)/$$i; \ + done ## --- The main programs --- -LDADD = libbcm.a @LEXLIB@ +LDADD = libbecome.a @LEXLIB@ become_SOURCES = become.c -keygen_SOURCES = keygen.c +bcquery_SOURCES = bcquery.c -become_DEPENDENCIES = libbcm.a -keygen_DEPENDENCIES = libbcm.a +become_DEPENDENCIES = libbecome.a +bcquery_DEPENDENCIES = libbecome.a ##----- Become must be setuid root ------------------------------------------ -install-data-hook: - become_prog=${bindir}/`echo become|sed '${transform}'`; \ +install-exec-hook: + become_prog=$(DESTDIR)/${bindir}/`echo become|sed '${transform}'`; \ { chown root $${become_prog} && \ chmod 4755 $${become_prog}; } || \ { echo ">>>>>"; \ @@ -147,22 +155,20 @@ SUFFIXES = .tro ## 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 +name-test: name.tro libbecome.a + $(LINK) name.tro libbecome.a $(LIBS) +sym-test: sym.tro libbecome.a + $(LINK) sym.tro libbecome.a $(LIBS) +userdb-test: userdb.tro libbecome.a + $(LINK) userdb.tro libbecome.a $(LIBS) +crypt-test: crypt.tro libbecome.a + $(LINK) crypt.tro libbecome.a $(LIBS) +blowfish-test: blowfish.tro libbecome.a + $(LINK) blowfish.tro libbecome.a $(LIBS) +md5-test: md5.tro libbecome.a + $(LINK) md5.tro libbecome.a $(LIBS) +netg-test: netg.tro libbecome.a + $(LINK) netg.tro libbecome.a CLEANFILES = *.tro y.output