Fixed erroneous checks and sloppy return values in certificate selection.
[gnutls.git] / maint-cfg.mk
blobf3e7f46dbbf182853ec0a43afae585b6131a6c0d
1 # Copyright (C) 2006, 2007 Free Software Foundation
3 # Author: Simon Josefsson
5 # This file is part of GNUTLS.
7 # This file is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # This file is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this file; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 CFGFLAGS ?= --enable-developer-mode --enable-gtk-doc
23 INDENT_SOURCES = `ls includes/gnutls/*.h{,.in} {lib,lib/x509,libextra,libextra/openpgp,src,tests}/*.{c,h} | grep -v -- -gaa`
25 ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile)
26 .DEFAULT_GOAL := bootstrap
27 endif
29 autoreconf:
30 test -f ./configure || autoreconf --install
31 mv build-aux/config.rpath{-,}
33 bootstrap: autoreconf
34 ./configure $(CFGFLAGS)
36 LIBGCRYPTROOT ?= $(HOME)/w32root
38 mingw32: autoreconf
39 ./configure $(CFGFLAGS) --host=i586-mingw32msvc --build=`./config.guess` --with-included-libtasn1 --with-included-opencdk --with-libgcrypt-prefix=$(LIBGCRYPTROOT)
41 .PHONY: bootstrap autoreconf mingw32