1
# Copyright (C) 2011-2013 Free Software Foundation, Inc.
3
# This file is part of LIBTASN1.
5
# This program is free software: you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation, either version 3 of the License, or
8
# (at your option) any later version.
10
# This program 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
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program. If not, see <http://www.gnu.org/licenses/>.
18
# Written by Simon Josefsson October 2011.
21
distdir = $(PACKAGE)-$(VERSION)
22
TGZ = $(distdir).tar.gz
23
URL = ftp://ftp.gnu.org/gnu/$(PACKAGE)/$(TGZ)
26
@echo 'Usage examples:'
27
@echo ' make -f libtasn14win.mk libtasn14win VERSION=2.10'
28
@echo ' make -f libtasn14win.mk libtasn14win32 VERSION=2.10 CHECK=check'
30
libtasn14win: libtasn14win32 libtasn14win64
33
$(MAKE) -f libtasn14win.mk doit ARCH=32 HOST=i686-w64-mingw32 CHECK=check
36
$(MAKE) -f libtasn14win.mk doit ARCH=64 HOST=x86_64-w64-mingw32
39
rm -rf tmp && mkdir tmp && cd tmp && \
40
cp ../../$(TGZ) . || wget $(URL) && \
43
./configure --host=$(HOST) --build=x86_64-unknown-linux-gnu --prefix=$(PWD)/tmp/root && \
44
make $(CHECK) install && \
47
zip -r ../../$(distdir)-win$(ARCH).zip *
50
../build-aux/gnupload --to ftp.gnu.org:$(PACKAGE) $(distdir)-win32.zip $(distdir)-win64.zip
51
cp $(distdir)-win32.zip $(distdir)-win32.zip.sig $(distdir)-win64.zip $(distdir)-win64.zip.sig ../../releases/$(PACKAGE)/