/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

* Makefile: Bug fix for Debian bug #509398; make sure "-z relro" is
            passed to linker, not C compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
CFLAGS=$(WARN) $(DEBUG) $(FORTIFY) $(COVERAGE) $(OPTIMIZE) \
46
46
        $(LANGUAGE) $(GNUTLS_CFLAGS) $(AVAHI_CFLAGS) $(GPGME_CFLAGS) \
47
47
        -DVERSION='"$(version)"'
48
 
LDFLAGS=$(COVERAGE) $(LINK_FORTIFY)
 
48
LDFLAGS=$(COVERAGE) $(foreach flag,$(LINK_FORTIFY),-Xlinker $(flag))
49
49
 
50
50
# Commands to format a DocBook <refentry> document into a manual page
51
51
DOCBOOKTOMAN=cd $(dir $<); xsltproc --nonet --xinclude \
70
70
        /usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl \
71
71
        $<; $(HTMLPOST) $@
72
72
# Fix citerefentry links
73
 
HTMLPOST=$(SED) --in-place --expression='s/\(<a class="citerefentry" href="\)\("><span class="citerefentry"><span class="refentrytitle">\)\([^<]*\)\(<\/span>(\)\([^)]*\)\()<\/span><\/a>\)/\1\3.\5\2\3\4\5\6/g'
 
73
HTMLPOST=$(SED) --in-place \
 
74
        --expression='s/\(<a class="citerefentry" href="\)\("><span class="citerefentry"><span class="refentrytitle">\)\([^<]*\)\(<\/span>(\)\([^)]*\)\()<\/span><\/a>\)/\1\3.\5\2\3\4\5\6/g'
74
75
 
75
76
PLUGINS=plugins.d/password-prompt plugins.d/mandos-client \
76
77
        plugins.d/usplash plugins.d/splashy plugins.d/askpass-fifo
77
78
CPROGS=plugin-runner $(PLUGINS)
78
 
PROGS=mandos mandos-keygen $(CPROGS)
 
79
PROGS=mandos mandos-keygen mandos-list $(CPROGS)
79
80
DOCS=mandos.8 plugin-runner.8mandos mandos-keygen.8 \
80
81
        plugins.d/mandos-client.8mandos \
81
82
        plugins.d/password-prompt.8mandos mandos.conf.5 \
86
87
 
87
88
objects=$(addsuffix .o,$(CPROGS))
88
89
 
89
 
all: $(PROGS)
 
90
all: $(PROGS) mandos.lsm
90
91
 
91
92
doc: $(DOCS)
92
93
 
148
149
 
149
150
# Update all these files with version number $(version)
150
151
common.ent: Makefile
151
 
        $(SED) --in-place --expression='s/^\(<ENTITY VERSION "\)[^"]*">$$/\1$(version)"/' $@
 
152
        $(SED) --in-place \
 
153
                --expression='s/^\(<ENTITY VERSION "\)[^"]*">$$/\1$(version)"/' \
 
154
                $@
152
155
 
153
156
mandos: Makefile
154
 
        $(SED) --in-place --expression='s/^\(version = "\)[^"]*"$$/\1$(version)"/' $@
 
157
        $(SED) --in-place \
 
158
                --expression='s/^\(version = "\)[^"]*"$$/\1$(version)"/' \
 
159
                $@
155
160
 
156
161
mandos-keygen: Makefile
157
 
        $(SED) --in-place --expression='s/^\(VERSION="\)[^"]*"$$/\1$(version)"/' $@
 
162
        $(SED) --in-place \
 
163
                --expression='s/^\(VERSION="\)[^"]*"$$/\1$(version)"/' \
 
164
                $@
 
165
 
 
166
mandos-list: Makefile
 
167
        $(SED) --in-place \
 
168
                --expression='s/^\(version = "\)[^"]*"$$/\1$(version)"/' \
 
169
                $@
 
170
 
 
171
mandos.lsm: Makefile
 
172
        $(SED) --in-place \
 
173
                --expression='s/^\(Version:\).*/\1\t$(version)/' \
 
174
                $@
 
175
        $(SED) --in-place \
 
176
                --expression='s/^\(Entered-date:\).*/\1\t$(shell date --rfc-3339=date --reference=Makefile)/' \
 
177
                $@
158
178
 
159
179
plugins.d/mandos-client: plugins.d/mandos-client.o
160
180
        $(LINK.o) $(GNUTLS_LIBS) $(AVAHI_LIBS) $(GPGME_LIBS) \
202
222
 
203
223
install: install-server install-client-nokey
204
224
 
205
 
install-html: $(htmldocs)
 
225
install-html: html
206
226
        install --directory $(htmldir)
207
227
        install --mode=u=rw,go=r --target-directory=$(htmldir) \
208
228
                $(htmldocs)