/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-09-30 20:12:00 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080930201200-3zkcd1op8pg2gw1s
Tags: version-1-0, version-1.0
* debian/changelog: Initial release closes ITP bug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#DEBUG=-ggdb3
10
10
# For info about _FORTIFY_SOURCE, see
11
11
# <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html>
12
 
FORTIFY=-D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIE -pie
13
 
LINK_FORTIFY=-z relro -pie
 
12
FORTIFY=-D_FORTIFY_SOURCE=2 # -fstack-protector-all
14
13
#COVERAGE=--coverage
15
14
OPTIMIZE=-Os
16
15
LANGUAGE=-std=gnu99
17
16
htmldir=man
18
 
version=1.0.2
 
17
version=1.0
19
18
SED=sed
20
19
 
21
20
## Use these settings for a traditional /usr/local install
45
44
CFLAGS=$(WARN) $(DEBUG) $(FORTIFY) $(COVERAGE) $(OPTIMIZE) \
46
45
        $(LANGUAGE) $(GNUTLS_CFLAGS) $(AVAHI_CFLAGS) $(GPGME_CFLAGS) \
47
46
        -DVERSION='"$(version)"'
48
 
LDFLAGS=$(COVERAGE) $(LINK_FORTIFY)
 
47
LDFLAGS=$(COVERAGE)
49
48
 
50
49
# Commands to format a DocBook <refentry> document into a manual page
51
50
DOCBOOKTOMAN=cd $(dir $<); xsltproc --nonet --xinclude \
79
78
DOCS=mandos.8 plugin-runner.8mandos mandos-keygen.8 \
80
79
        plugins.d/mandos-client.8mandos \
81
80
        plugins.d/password-prompt.8mandos mandos.conf.5 \
82
 
        plugins.d/usplash.8mandos plugins.d/splashy.8mandos \
83
 
        plugins.d/askpass-fifo.8mandos mandos-clients.conf.5
 
81
        mandos-clients.conf.5
84
82
 
85
83
htmldocs=$(addsuffix .xhtml,$(DOCS))
86
84
 
87
85
objects=$(addsuffix .o,$(CPROGS))
88
86
 
89
 
all: $(PROGS) mandos.lsm
 
87
all: $(PROGS)
90
88
 
91
89
doc: $(DOCS)
92
90
 
151
149
        $(SED) --in-place --expression='s/^\(<ENTITY VERSION "\)[^"]*">$$/\1$(version)"/' $@
152
150
 
153
151
mandos: Makefile
154
 
        $(SED) --in-place --expression='s/^\(version = "\)[^"]*"$$/\1$(version)"/' $@
 
152
        $(SED) --in-place --expression='s/^\(version = "\)[^"]*"/\1$(version)"/' $@
155
153
 
156
154
mandos-keygen: Makefile
157
 
        $(SED) --in-place --expression='s/^\(VERSION="\)[^"]*"$$/\1$(version)"/' $@
158
 
 
159
 
mandos.lsm: Makefile
160
 
        $(SED) --in-place --expression='s/^\(Version:\).*/\1\t$(version)/' $@
161
 
        $(SED) --in-place --expression='s/^\(Entered-date:\).*/\1\t$(shell date --rfc-3339=date --reference=Makefile)/' $@
 
155
        $(SED) --in-place --expression='s/^\(VERSION="\)[^"]*"/\1$(version)"/' $@
162
156
 
163
157
plugins.d/mandos-client: plugins.d/mandos-client.o
164
158
        $(LINK.o) $(GNUTLS_LIBS) $(AVAHI_LIBS) $(GPGME_LIBS) \
274
268
                > $(MANDIR)/man8/password-prompt.8mandos.gz
275
269
        gzip --best --to-stdout plugins.d/mandos-client.8mandos \
276
270
                > $(MANDIR)/man8/mandos-client.8mandos.gz
277
 
        gzip --best --to-stdout plugins.d/usplash.8mandos \
278
 
                > $(MANDIR)/man8/usplash.8mandos.gz
279
 
        gzip --best --to-stdout plugins.d/splashy.8mandos \
280
 
                > $(MANDIR)/man8/splashy.8mandos.gz
281
 
        gzip --best --to-stdout plugins.d/askpass-fifo.8mandos \
282
 
                > $(MANDIR)/man8/askpass-fifo.8mandos.gz
283
271
 
284
272
install-client: install-client-nokey
285
273
# Post-installation stuff
308
296
                $(PREFIX)/lib/mandos/plugins.d/mandos-client \
309
297
                $(PREFIX)/lib/mandos/plugins.d/usplash \
310
298
                $(PREFIX)/lib/mandos/plugins.d/splashy \
311
 
                $(PREFIX)/lib/mandos/plugins.d/askpass-fifo \
312
299
                $(INITRAMFSTOOLS)/hooks/mandos \
313
300
                $(INITRAMFSTOOLS)/conf-hooks.d/mandos \
314
301
                $(INITRAMFSTOOLS)/scripts/local-top/mandos \
315
302
                $(MANDIR)/man8/plugin-runner.8mandos.gz \
316
303
                $(MANDIR)/man8/mandos-keygen.8.gz \
317
304
                $(MANDIR)/man8/password-prompt.8mandos.gz \
318
 
                $(MANDIR)/man8/usplash.8mandos.gz \
319
 
                $(MANDIR)/man8/splashy.8mandos.gz \
320
 
                $(MANDIR)/man8/askpass-fifo.8mandos.gz \
321
305
                $(MANDIR)/man8/mandos-client.8mandos.gz
322
306
        -rmdir $(PREFIX)/lib/mandos/plugins.d $(CONFDIR)/plugins.d \
323
307
                 $(PREFIX)/lib/mandos $(CONFDIR) $(KEYDIR)