~vcs-imports/libtasn1/trunk

« back to all changes in this revision

Viewing changes to windows/libtasn14win.mk

  • Committer: Nikos Mavrogiannopoulos
  • Date: 2018-01-21 09:50:55 UTC
  • Revision ID: git-v1:73fa8255ac65985b2a7b5596191892b6027e0c4d
development moved to gitlab

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2011-2013 Free Software Foundation, Inc.
2
 
#
3
 
# This file is part of LIBTASN1.
4
 
#
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.
9
 
#
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.
14
 
#
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/>.
17
 
 
18
 
# Written by Simon Josefsson October 2011.
19
 
 
20
 
PACKAGE = libtasn1
21
 
distdir = $(PACKAGE)-$(VERSION)
22
 
TGZ = $(distdir).tar.gz
23
 
URL = ftp://ftp.gnu.org/gnu/$(PACKAGE)/$(TGZ)
24
 
 
25
 
all:
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'
29
 
 
30
 
libtasn14win: libtasn14win32 libtasn14win64
31
 
 
32
 
libtasn14win32:
33
 
        $(MAKE) -f libtasn14win.mk doit ARCH=32 HOST=i686-w64-mingw32 CHECK=check
34
 
 
35
 
libtasn14win64:
36
 
        $(MAKE) -f libtasn14win.mk doit ARCH=64 HOST=x86_64-w64-mingw32
37
 
 
38
 
doit:
39
 
        rm -rf tmp && mkdir tmp && cd tmp && \
40
 
        cp ../../$(TGZ) . || wget $(URL) && \
41
 
        tar xfa $(TGZ) && \
42
 
        cd $(distdir) && \
43
 
        ./configure --host=$(HOST) --build=x86_64-unknown-linux-gnu --prefix=$(PWD)/tmp/root && \
44
 
        make $(CHECK) install && \
45
 
        cd .. && \
46
 
        cd root && \
47
 
        zip -r ../../$(distdir)-win$(ARCH).zip *
48
 
 
49
 
upload:
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)/