~ubuntu-branches/ubuntu/precise/wget/precise-proposed

« back to all changes in this revision

Viewing changes to windows/Makefile.src

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-10-19 00:00:09 UTC
  • mfrom: (2.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20111019000009-8p33w3wz4b1rdri0
Tags: 1.13-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add wget-udeb to ship wget.gnu as alternative to busybox wget
    implementation.
  - Depend on libssl-dev 0.9.8k-7ubuntu4 (LP: #503339)
* Dropped changes, superseded in Debian:
  - Keep build dependencies in main:
    + debian/control: remove info2man build-dep
    + debian/patches/series: disable wget-infopod_generated_manpage
  - Mark wget Multi-Arch: foreign, so packages that aren't of the same arch
    can depend on it.
* Pass --with-ssl=openssl; we don't want to use gnutls, there's no udeb for
  it.
* Add a second build pass for the udeb, so we can build without libidn.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for `wget' utility for MSVC
2
 
# Copyright (C) 1995, 1996, 1997, 2004, 2006, 2007, 2008, 2009 Free
3
 
# Software Foundation, Inc.
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
 
# Additional permission under GNU GPL version 3 section 7
19
 
 
20
 
# If you modify this program, or any covered work, by linking or
21
 
# combining it with the OpenSSL project's OpenSSL library (or a
22
 
# modified version of that library), containing parts covered by the
23
 
# terms of the OpenSSL or SSLeay licenses, the Free Software Foundation
24
 
# grants you additional permission to convey the resulting work.
25
 
# Corresponding Source for a non-source form of such a combination
26
 
# shall include the source code for the parts of OpenSSL used as well
27
 
# as that of the covered work.
28
 
 
29
 
# SSL (https) support requires the OpenSSL library (see http://www.openssl.org/).
30
 
# If you do not have OpenSSL installed or wish to build Wget without SSL
31
 
# support, either comment-out the following lines or define NO_SSL.
32
 
!ifndef NO_SSL
33
 
SSLDEFS = /DHAVE_SSL
34
 
SSLLIBS = libeay32.lib ssleay32.lib
35
 
SSLOBJ  = openssl$o http-ntlm$o
36
 
!endif
37
 
 
38
 
o = .obj
39
 
 
40
 
CC      = cl
41
 
LD      = link
42
 
RM      = -del
43
 
 
44
 
DEFS    = /DWINDOWS /D_CONSOLE /DHAVE_CONFIG_H $(SSLDEFS)
45
 
LIBS    = kernel32.lib advapi32.lib wsock32.lib user32.lib gdi32.lib $(SSLLIBS)
46
 
 
47
 
!ifdef DEBUG
48
 
CFLAGS  = /nologo /MTd /Od /Zi /I. $(DEFS)
49
 
LDFLAGS = /debug
50
 
!else
51
 
CFLAGS  = /nologo /MT /O2 /I. $(DEFS)
52
 
LDFLAGS = /opt:ref #/opt:nowin98
53
 
!endif
54
 
 
55
 
 
56
 
# The following enables security checks and is recommended if you are using
57
 
# MSVC 7.0 (or later) for 80x86.
58
 
!ifdef SECURITY_CHECKS
59
 
CFLAGS  = $(CFLAGS) /GS
60
 
!endif
61
 
 
62
 
# The following enables link-time code generation (Cross-file
63
 
# interprocedural optimizations).
64
 
!ifdef LTCG
65
 
CFLAGS  = $(CFLAGS) /GL
66
 
LDFLAGS = $(LDFLAGS) /ltcg:status
67
 
!endif
68
 
 
69
 
OBJ = cmpt$o safe-ctype$o convert$o connect$o host$o http$o netrc$o \
70
 
      ftp-basic$o ftp$o ftp-ls$o ftp-opie$o getopt$o hash$o         \
71
 
      html-parse$o html-url$o progress$o retr$o recur$o res$o url$o \
72
 
      cookies$o init$o utils$o main$o ptimer$o version$o xmalloc$o  \
73
 
      mswindows$o gen-md5$o gnu-md5$o log$o $(SSLOBJ) spider$o
74
 
 
75
 
.SUFFIXES: .c .obj
76
 
 
77
 
# If this doesn't work for you, remove the second colon.
78
 
.c.obj::
79
 
        $(CC) $(CFLAGS) /c $<
80
 
 
81
 
# Dependencies for building
82
 
 
83
 
wget.exe: $(OBJ)
84
 
        $(LD) @<< $(LDFLAGS) /out:$@ $(OBJ) $(LIBS)
85
 
<<
86
 
 
87
 
$(OBJ): config-post.h config.h connect.h convert.h cookies.h ftp.h \
88
 
        gen-md5.h getopt.h gnu-md5.h hash.h host.h html-parse.h    \
89
 
        http-ntlm.h init.h log.h mswindows.h netrc.h options.h     \
90
 
        progress.h ptimer.h recur.h res.h retr.h safe-ctype.h      \
91
 
        spider.h ssl.h sysdep.h url.h utils.h wget.h xmalloc.h
92
 
 
93
 
#
94
 
# Dependencies for cleanup
95
 
#
96
 
 
97
 
clean:
98
 
        $(RM) *.bak
99
 
        $(RM) *.obj
100
 
        $(RM) *.exe
101
 
        $(RM) *.pdb
102
 
        $(RM) *.map
103
 
        $(RM) *.ilk
104
 
 
105
 
distclean: clean
106
 
        $(RM) Makefile
107
 
        $(RM) config.h
108
 
 
109
 
realclean: distclean
110
 
        $(RM) TAGS