Replace use of alloca with malloc.
[libtasn1.git] / cfg.mk
blob7af86248123e8296994d08720e1508a4817a2642
1 # Copyright (C) 2006, 2007 Free Software Foundation
2 # Author: Simon Josefsson
4 # This file is part of LIBTASN1.
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 CFGFLAGS ?= --enable-gtk-doc
21 ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile)
22 .DEFAULT_GOAL := bootstrap
23 endif
25 autoreconf:
26 test -f ./configure || autoreconf --install
28 bootstrap: autoreconf
29 ./configure $(CFGFLAGS)
31 W32ROOT ?= $(HOME)/w32root
33 mingw32: autoreconf
34 ./configure --enable-gtk-doc --host=i586-mingw32msvc --build=`./config.guess` --prefix=$(W32ROOT)