/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-10-04 20:19:58 UTC
  • Revision ID: teddy@fukt.bsnet.se-20081004201958-a7iql0rss7yf6leu
* Makefile (FORTIFY): Added "-fPIE -pie".
  (LINK_FORTIFY): New; set to "-z relro -pie".
  (LDFLAGS): Use $(LINK_FORTIFY).

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
OPTIMIZE=-Os
16
16
LANGUAGE=-std=gnu99
17
17
htmldir=man
18
 
version=1.0.2
 
18
version=1.0
19
19
SED=sed
20
20
 
21
21
## Use these settings for a traditional /usr/local install
86
86
 
87
87
objects=$(addsuffix .o,$(CPROGS))
88
88
 
89
 
all: $(PROGS) mandos.lsm
 
89
all: $(PROGS)
90
90
 
91
91
doc: $(DOCS)
92
92
 
156
156
mandos-keygen: Makefile
157
157
        $(SED) --in-place --expression='s/^\(VERSION="\)[^"]*"$$/\1$(version)"/' $@
158
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)/' $@
162
 
 
163
159
plugins.d/mandos-client: plugins.d/mandos-client.o
164
160
        $(LINK.o) $(GNUTLS_LIBS) $(AVAHI_LIBS) $(GPGME_LIBS) \
165
161
                $(COMMON) $^ $(LOADLIBES) $(LDLIBS) -o $@