/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Teddy Hogeborn
  • Date: 2008-07-21 01:50:31 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080721015031-ivjiclli2j06hwgs
* Makefile: Include targets for all binaries.

* plugins.d/Makefile: Do nothing but call the parent Makefile.

* server.py: Added copyright statement and information.
  (Client.__init__): Added doc string.
  (Client.stop): Bug fix: Only log message if stopping for the first
                 time.  Check if the "stop_initiator_tag" and
                 "checker_initiator_tag" attributes exist before using
                 them.
  (Client.__del__): Call self.stop() instead of doing things here.
  (Client.checker_callback): Set self.checker_callback_tag and
                             self.checker to None unconditionally and
                             immediately.
  (Client.stop_checker): Added some checks to handle multiple calls.
  (tcp_handler.handle): Use "self.server.clients" instead of "clients".
  (__main__): Moved all code to the "main" function.
  (main): New.  New option "--address".  Instantiate IPv6_TCPServer
          with "options.address".  Log before starting main loop.
  (main.cleanup) Use "clients.pop()" to remove clients from the set as
                 they are stopped.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
CFLAGS=-Wall -g -std=gnu99
2
 
LDFLAGS=-lgnutls
3
 
 
4
 
all: plugbasedclient
5
 
 
 
2
 
 
3
PROGS=plugbasedclient plugins.d/mandosclient plugins.d/passprompt
 
4
 
 
5
objects=$(shell for p in $(PROGS); do echo $${p}.o; done)
 
6
 
 
7
all: $(PROGS)
 
8
 
 
9
plugbasedclient: plugbasedclient.o
 
10
        $(LINK.o) -lgnutls $(COMMON) $^ $(LOADLIBES) $(LDLIBS) -o $@
 
11
 
 
12
plugins.d/mandosclient: plugins.d/mandosclient.o
 
13
        $(LINK.o) -lgnutls -lavahi-core -lgpgme $(COMMON) $^ $(LOADLIBES) $(LDLIBS) -o $@
 
14
 
 
15
plugins.d/passprompt: plugins.d/passprompt.o
 
16
        $(LINK.o) $(COMMON) $^ $(LOADLIBES) $(LDLIBS) -o $@
 
17
 
 
18
.PHONY : clean
6
19
clean:
7
 
        rm -f plugbasedclient
 
20
        -rm -f $(PROGS) $(objects) core