Add.
[gsasl.git] / lib / maint-cfg.mk
blobbff607eeeeb68b395cc6c3d1d9a8c72d848a7435
1 # Copyright (C) 2006 Simon Josefsson.
3 # This file is part of GNU SASL Library.
5 # GNU SASL Library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public License
7 # as published by the Free Software Foundation; either version 2.1 of
8 # the License, or (at your option) any later version.
10 # GNU SASL Library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with GNU SASL Library; if not, write to the Free
17 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18 # MA 02110-1301, USA.
20 ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile)
21 .DEFAULT_GOAL := bootstrap
22 endif
24 autoreconf:
25 test -f ./configure || autoreconf --install
27 bootstrap: autoreconf
28 ./configure $(CFGFLAGS)
30 W32ROOT ?= $(HOME)/w32root
32 mingw32: autoreconf
33 ./configure $(CFGFLAGS) --host=i586-mingw32msvc --build=`./config.guess` --prefix=$(W32ROOT)