~ubuntu-branches/ubuntu/dapper/wget/dapper-updates

« back to all changes in this revision

Viewing changes to windows/Makefile.src

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2004-02-13 20:26:44 UTC
  • Revision ID: james.westby@ubuntu.com-20040213202644-skxj93qs15sskqfy
Tags: upstream-1.9.1
Import upstream version 1.9.1

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.
 
3
 
 
4
# This program is free software; you can redistribute it and/or modify
 
5
# it under the terms of the GNU General Public License as published by
 
6
# the Free Software Foundation; either version 2 of the License, or
 
7
# (at your option) any later version.
 
8
 
 
9
# This program is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
# GNU General Public License for more details.
 
13
 
 
14
# You should have received a copy of the GNU General Public License
 
15
# along with this program; if not, write to the Free Software
 
16
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
17
 
 
18
# In addition, as a special exception, the Free Software Foundation
 
19
# gives permission to link the code of its release of Wget with the
 
20
# OpenSSL project's "OpenSSL" library (or with modified versions of it
 
21
# that use the same license as the "OpenSSL" library), and distribute
 
22
# the linked executables.  You must obey the GNU General Public License
 
23
# in all respects for all of the code used other than "OpenSSL".  If you
 
24
# modify this file, you may extend this exception to your version of the
 
25
# file, but you are not obligated to do so.  If you do not wish to do
 
26
# so, delete this exception statement from your version.
 
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
 
65
 
 
66
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 \
 
68
      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)
 
71
 
 
72
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 \
 
74
      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)
 
77
 
 
78
.SUFFIXES: .c .obj
 
79
 
 
80
.c.obj:
 
81
        $(COMPILE) /c $<
 
82
 
 
83
# Dependencies for building
 
84
 
 
85
wget: wget.exe
 
86
 
 
87
wget.exe: $(OBJ)
 
88
         $(LD) @<< $(LDFLAGS) $(DEBUGLF) /out:$@ $(LIBS) $(SSLLIBS) $(OBJ)
 
89
<<
 
90
        ren wget.exe WGET.EXE
 
91
 
 
92
 
 
93
#
 
94
# Dependencies for cleanup
 
95
#
 
96
 
 
97
clean:
 
98
        $(RM) *.obj
 
99
        $(RM) *.exe
 
100
        $(RM) *.bak
 
101
        $(RM) *.pdb
 
102
        $(RM) *.map
 
103
        $(RM) config.h
 
104
 
 
105
distclean: clean
 
106
        $(RM) Makefile
 
107
 
 
108
realclean: distclean
 
109
        $(RM) TAGS
 
110
 
 
111
# Dependencies:
 
112
 
 
113
!include "..\windows\wget.dep"