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