/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

minor edits

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
 
DOCBOOKTOMAN=xsltproc --nonet \
15
 
        --param man.charmap.use.subset          0 \
16
 
        --param make.year.ranges                1 \
17
 
        --param make.single.year.ranges         1 \
18
 
        --param man.output.quietly              1 \
19
 
        --param man.authors.section.enabled     0
20
 
 
21
14
PROGS=mandos-client plugins.d/password-request plugins.d/password-prompt
22
 
DOCS=mandos.8 mandos-client.8mandos plugins.d/password-request.8mandos plugins.d/password-prompt.8mandos mandos.conf.5 mandos-clients.conf.5
23
15
 
24
16
objects=$(shell for p in $(PROGS); do echo $${p}.o; done)
25
17
 
26
 
all: $(PROGS) $(DOCS)
27
 
 
28
 
%.5: %.xml
29
 
        cd $(shell dirname $^); $(DOCBOOKTOMAN) $(shell basename $^)
30
 
 
31
 
%.8: %.xml
32
 
        cd $(shell dirname $^); $(DOCBOOKTOMAN) $(shell basename $^)
33
 
 
34
 
%.8mandos: %.xml
35
 
        cd $(shell dirname $^); $(DOCBOOKTOMAN) $(shell basename $^)
 
18
all: $(PROGS)
36
19
 
37
20
mandos-client: mandos-client.o
38
21
        $(LINK.o) -lgnutls $(COMMON) $^ $(LOADLIBES) $(LDLIBS) -o $@
46
29
.PHONY : all clean distclean run-client run-server
47
30
 
48
31
clean:
49
 
        -rm --force $(PROGS) $(objects) $(DOCS) core
 
32
        -rm --force $(PROGS) $(objects) core
50
33
 
51
34
distclean: clean
52
35
mostlyclean: clean