/mandos/release

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

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Björn Påhlsson
  • Date: 2008-08-09 04:42:39 UTC
  • mto: (237.7.1 mandos) (24.1.154 mandos)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: belorn@braxen-20080809044239-a1ub3rvi88ydwvla
tally count of used symbols
return codes from functions checked.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
CFLAGS=$(WARN) $(DEBUG) $(FORTIFY) $(COVERAGE) $(OPTIMIZE) $(LANGUAGE)
12
12
LDFLAGS=$(COVERAGE)
13
13
 
14
 
PROGS=plugbasedclient plugins.d/mandosclient plugins.d/passprompt
 
14
DOCBOOKTOMAN=xsltproc --nonet --param man.charmap.use.subset "0" --param make.year.ranges "1" --param make.single.year.ranges "1" --param man.output.quietly "1"
 
15
 
 
16
PROGS=mandos-client plugins.d/password-request plugins.d/password-prompt
 
17
DOCS=mandos.8 mandos-client.8mandos plugins.d/password-request.8mandos plugins.d/password-prompt.8mandos mandos.conf.5 mandos-clients.conf.5
15
18
 
16
19
objects=$(shell for p in $(PROGS); do echo $${p}.o; done)
17
20
 
18
 
all: $(PROGS)
19
 
 
20
 
plugbasedclient: plugbasedclient.o
 
21
all: $(PROGS) $(DOCS)
 
22
 
 
23
%.5: %.xml
 
24
        $(DOCBOOKTOMAN) $^
 
25
 
 
26
%.8: %.xml
 
27
        $(DOCBOOKTOMAN) $^
 
28
 
 
29
%.8mandos: %.xml
 
30
        $(DOCBOOKTOMAN) $^
 
31
        -mv ./$(shell basename $@) $@ 2>/dev/null
 
32
 
 
33
mandos-client: mandos-client.o
21
34
        $(LINK.o) -lgnutls $(COMMON) $^ $(LOADLIBES) $(LDLIBS) -o $@
22
35
 
23
 
plugins.d/mandosclient: plugins.d/mandosclient.o
 
36
plugins.d/password-request: plugins.d/password-request.o
24
37
        $(LINK.o) -lgnutls -lavahi-core -lgpgme $(COMMON) $^ $(LOADLIBES) $(LDLIBS) -o $@
25
38
 
26
 
plugins.d/passprompt: plugins.d/passprompt.o
 
39
plugins.d/password-prompt: plugins.d/password-prompt.o
27
40
        $(LINK.o) $(COMMON) $^ $(LOADLIBES) $(LDLIBS) -o $@
28
41
 
29
 
.PHONY : clean
 
42
.PHONY : all clean distclean run-client run-server
 
43
 
30
44
clean:
31
 
        -rm -f $(PROGS) $(objects) core
 
45
        -rm --force $(PROGS) $(objects) $(DOCS) core
 
46
 
 
47
distclean: clean
 
48
mostlyclean: clean
 
49
maintainer-clean: clean
 
50
 
 
51
check: all
 
52
        ./mandos --check
 
53
 
 
54
run-client: all
 
55
        ./mandos-client --plugin-dir=plugins.d --options-for=password-request:--keydir=keydir
 
56
 
 
57
run-server: all
 
58
        ./mandos --debug --configdir=.