~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): Noèl Köthe
  • Date: 2005-06-26 16:46:25 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050626164625-jjcde8hyztx7xq7o
Tags: 1.10-2
* wget-fix_error--save-headers patch from upstream
  (closes: Bug#314728)
* don't pattern-match server redirects patch from upstream
  (closes: Bug#163243)
* correct de.po typos
  (closes: Bug#313883)
* wget-E_html_behind_file_counting fix problem with adding the
  numbers after the html extension
* updated Standards-Version: to 3.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for `wget' utility for MSVC 4.0
2
 
# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
 
1
# Makefile for `wget' utility for MSVC
 
2
# Copyright (C) 1995, 1996, 1997, 2004 Free Software Foundation, Inc.
3
3
 
4
4
# This program is free software; you can redistribute it and/or modify
5
5
# it under the terms of the GNU General Public License as published by
25
25
# file, but you are not obligated to do so.  If you do not wish to do
26
26
# so, delete this exception statement from your version.
27
27
 
28
 
#
29
 
# Version: 1.4.4
30
 
#
31
 
 
32
 
#Comment these if you don't have openssl available - however https
33
 
#won't work.
34
 
SSLDEFS =       /DHAVE_SSL
35
 
SSLLIBS =       libeay32.lib ssleay32.lib
36
 
SSLSRC  =       gen_sslfunc.c
37
 
SSLOBJ  =       gen_sslfunc$o
38
 
 
39
 
SHELL = command
40
 
 
41
 
VPATH       = .
42
 
o           = .obj
43
 
OUTDIR      = .
44
 
 
45
 
CC       = cl
46
 
LD       = link
47
 
 
48
 
CFLAGS   = /nologo /MT /W0 /O2
49
 
#DEBUGCF  = /DENABLE_DEBUG /Zi /Od #/Fd /FR
50
 
CPPFLAGS = 
51
 
DEFS     = /DWINDOWS /D_CONSOLE /DHAVE_CONFIG_H /DSYSTEM_WGETRC=\"wgetrc\"
52
 
LDFLAGS  = /subsystem:console /incremental:no /warn:3
53
 
#DEBUGLF  = /pdb:wget.pdb /debug /debugtype:cv /map:wget.map /opt:noref
54
 
LIBS     = kernel32.lib advapi32.lib wsock32.lib user32.lib
55
 
 
56
 
INCLUDES = /I.
57
 
 
58
 
COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS) $(DEBUGCF) $(DEFS) $(SSLDEFS) $(CFLAGS)
59
 
LINK    = $(LD) $(LDFLAGS) $(DEBUGLF) /out:$@
60
 
 
61
 
#INSTALL = @INSTALL@
62
 
#INSTALL_PROGRAM = @INSTALL_PROGRAM@
63
 
 
64
 
RM      = del
 
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
SSLSRC  = openssl.c http-ntlm.c
 
36
SSLOBJ  = openssl$o http-ntlm$o
 
37
!endif
 
38
 
 
39
o = .obj
 
40
 
 
41
CC      = cl
 
42
LD      = link
 
43
RM      = -del
 
44
 
 
45
DEFS    = /DWINDOWS /D_CONSOLE /DHAVE_CONFIG_H $(SSLDEFS)
 
46
LIBS    = kernel32.lib advapi32.lib wsock32.lib user32.lib gdi32.lib $(SSLLIBS)
 
47
 
 
48
!ifdef DEBUG
 
49
CFLAGS  = /nologo /MTd /Od /Zi /I. $(DEFS)
 
50
LDFLAGS = /debug
 
51
!else
 
52
CFLAGS  = /nologo /MT /O2 /I. $(DEFS)
 
53
LDFLAGS = /opt:ref #/opt:nowin98
 
54
!endif
 
55
 
 
56
 
 
57
# The following enables security checks and is recommended if you are using
 
58
# MSVC 7.0 (or later) for 80x86.
 
59
!ifdef SECURITY_CHECKS
 
60
CFLAGS  = $(CFLAGS) /GS
 
61
!endif
 
62
 
 
63
# The following enables link-time code generation (Cross-file
 
64
# interprocedural optimizations).
 
65
!ifdef LTCG
 
66
CFLAGS  = $(CFLAGS) /GL
 
67
LDFLAGS = $(LDFLAGS) /ltcg:status
 
68
!endif
 
69
 
65
70
 
66
71
SRC = cmpt.c safe-ctype.c convert.c connect.c host.c http.c netrc.c \
67
 
      ftp-basic.c ftp.c ftp-ls.c ftp-opie.c getopt.c hash.c headers.c \
 
72
      ftp-basic.c ftp.c ftp-ls.c ftp-opie.c getopt.c hash.c \
68
73
      html-parse.c html-url.c progress.c retr.c recur.c res.c url.c cookies.c \
69
 
      init.c utils.c main.c version.c mswindows.c gen-md5.c \
70
 
      gnu-md5.c rbuf.c log.c $(SSLSRC)
 
74
      init.c utils.c main.c ptimer.c version.c xmalloc.c mswindows.c \
 
75
      gen-md5.c gnu-md5.c log.c $(SSLSRC)
71
76
 
72
77
OBJ = cmpt$o safe-ctype$o convert$o connect$o host$o http$o netrc$o \
73
 
      ftp-basic$o ftp$o ftp-ls$o ftp-opie$o getopt$o hash$o headers$o \
 
78
      ftp-basic$o ftp$o ftp-ls$o ftp-opie$o getopt$o hash$o \
74
79
      html-parse$o html-url$o progress$o retr$o recur$o res$o url$o cookies$o \
75
 
      init$o utils$o main$o version$o mswindows$o gen-md5$o gnu-md5$o\
76
 
      rbuf$o log$o $(SSLOBJ)
 
80
      init$o utils$o main$o ptimer$o version$o xmalloc$o mswindows$o \
 
81
      gen-md5$o gnu-md5$o log$o $(SSLOBJ)
77
82
 
78
83
.SUFFIXES: .c .obj
79
84
 
80
 
.c.obj:
81
 
        $(COMPILE) /c $<
 
85
# If this doesn't work for you, remove the second colon.
 
86
.c.obj::
 
87
        $(CC) $(CFLAGS) /c $<
82
88
 
83
89
# Dependencies for building
84
90
 
85
 
wget: wget.exe
86
 
 
87
91
wget.exe: $(OBJ)
88
 
         $(LD) @<< $(LDFLAGS) $(DEBUGLF) /out:$@ $(LIBS) $(SSLLIBS) $(OBJ)
 
92
        $(LD) @<< $(LDFLAGS) /out:$@ $(OBJ) $(LIBS)
89
93
<<
90
 
        ren wget.exe WGET.EXE
91
94
 
92
95
 
93
96
#
95
98
#
96
99
 
97
100
clean:
98
 
        $(RM) *.obj
99
 
        $(RM) *.exe
100
 
        $(RM) *.bak
101
 
        $(RM) *.pdb
102
 
        $(RM) *.map
103
 
        $(RM) config.h
 
101
        $(RM) *.bak
 
102
        $(RM) *.obj
 
103
        $(RM) *.exe
 
104
        $(RM) *.pdb
 
105
        $(RM) *.map
 
106
        $(RM) *.ilk
104
107
 
105
108
distclean: clean
106
109
        $(RM) Makefile
 
110
        $(RM) config.h
107
111
 
108
112
realclean: distclean
109
113
        $(RM) TAGS
111
115
# Dependencies:
112
116
 
113
117
!include "..\windows\wget.dep"
 
118