/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: 2009-02-14 18:07:05 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090214180705-vu6b7j4i2v2hibgg
Use "getconf" to get correct LFS compile and link flags.

* Makefile (GPGME_CFLAGS): Added output of "getconf LFS_CFLAGS".
  (GPGME_LIBS): Added output of "getconf LFS_LIBS" and
                "getconf LFS_LDFLAGS".
* plugins.d/mandos-client.c: Only define "_LARGEFILE_SOURCE" and
                             "_FILE_OFFSET_BITS" if they are not
                             already defined.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
WARN=-O -Wall -Wformat=2 -Winit-self -Wmissing-include-dirs \
2
2
        -Wswitch-default -Wswitch-enum -Wunused-parameter \
3
 
        -Wstrict-aliasing=2 -Wextra -Wfloat-equal -Wundef -Wshadow \
 
3
        -Wstrict-aliasing=1 -Wextra -Wfloat-equal -Wundef -Wshadow \
4
4
        -Wunsafe-loop-optimizations -Wpointer-arith \
5
5
        -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings \
6
6
        -Wconversion -Wstrict-prototypes -Wold-style-definition \
16
16
OPTIMIZE=-Os
17
17
LANGUAGE=-std=gnu99
18
18
htmldir=man
19
 
version=1.0.3
 
19
version=1.0.6
20
20
SED=sed
21
21
 
22
22
## Use these settings for a traditional /usr/local install
39
39
GNUTLS_LIBS=$(shell libgnutls-config --libs)
40
40
AVAHI_CFLAGS=$(shell pkg-config --cflags-only-I avahi-core)
41
41
AVAHI_LIBS=$(shell pkg-config --libs avahi-core)
42
 
GPGME_CFLAGS=$(shell gpgme-config --cflags)
43
 
GPGME_LIBS=$(shell gpgme-config --libs)
 
42
GPGME_CFLAGS=$(shell gpgme-config --cflags; getconf LFS_CFLAGS)
 
43
GPGME_LIBS=$(shell gpgme-config --libs; getconf LFS_LIBS; \
 
44
        getconf LFS_LDFLAGS)
44
45
 
45
46
# Do not change these two
46
47
CFLAGS=$(WARN) $(DEBUG) $(FORTIFY) $(COVERAGE) $(OPTIMIZE) \
213
214
 
214
215
# Run the server with a local config
215
216
run-server: confdir/mandos.conf confdir/clients.conf
216
 
        ./mandos --debug --configdir=confdir $(SERVERARGS)
 
217
        ./mandos --debug --no-dbus --configdir=confdir $(SERVERARGS)
217
218
 
218
219
# Used by run-server
219
220
confdir/mandos.conf: mandos.conf
285
286
        install --mode=u=rw,go=r initramfs-tools-hook-conf \
286
287
                $(INITRAMFSTOOLS)/conf-hooks.d/mandos
287
288
        install initramfs-tools-script \
288
 
                $(INITRAMFSTOOLS)/scripts/local-top/mandos
 
289
                $(INITRAMFSTOOLS)/scripts/init-premount/mandos
289
290
        install --mode=u=rw,go=r plugin-runner.conf $(CONFDIR)
290
291
        gzip --best --to-stdout mandos-keygen.8 \
291
292
                > $(MANDIR)/man8/mandos-keygen.8.gz
332
333
                $(PREFIX)/lib/mandos/plugins.d/askpass-fifo \
333
334
                $(INITRAMFSTOOLS)/hooks/mandos \
334
335
                $(INITRAMFSTOOLS)/conf-hooks.d/mandos \
335
 
                $(INITRAMFSTOOLS)/scripts/local-top/mandos \
 
336
                $(INITRAMFSTOOLS)/scripts/init-premount/mandos \
336
337
                $(MANDIR)/man8/plugin-runner.8mandos.gz \
337
338
                $(MANDIR)/man8/mandos-keygen.8.gz \
338
339
                $(MANDIR)/man8/password-prompt.8mandos.gz \