]> sjero.net Git - wget/blob - windows/Makefile.src
[svn] Applied Herold's fixes for SSL to work under Windows.
[wget] / windows / Makefile.src
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 #
19 # Version: 1.4.4
20 #
21
22 #Uncomment these if you have openssl available
23 #SSLDEFS        =       /DHAVE_SSL
24 #SSLLIBS        =       libeay32.lib ssleay32.lib
25 #SSLSRC =       gen_sslfunc.c
26 #SSLOBJ =       gen_sslfunc$o
27
28 SHELL = command
29
30 VPATH       = .
31 o           = .obj
32 OUTDIR      = .
33
34 CC       = cl
35 LD       = link
36
37 CFLAGS   = /nologo /MT /W0 /O2
38 #DEBUGCF  = /DDEBUG /Zi /Od #/Fd /FR
39 CPPFLAGS = 
40 DEFS     = /DWINDOWS /D_CONSOLE /DHAVE_CONFIG_H /DSYSTEM_WGETRC=\"wgetrc\"
41 LDFLAGS  = /subsystem:console /incremental:no /warn:3
42 #DEBUGLF  = /pdb:wget.pdb /debug /debugtype:cv /map:wget.map /opt:noref
43 LIBS     = kernel32.lib advapi32.lib wsock32.lib user32.lib
44
45 INCLUDES = /I.
46
47 COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS) $(DEBUGCF) $(DEFS) $(SSLDEFS) $(CFLAGS)
48 LINK    = $(LD) $(LDFLAGS) $(DEBUGLF) /out:$@
49
50 #INSTALL = @INSTALL@
51 #INSTALL_PROGRAM = @INSTALL_PROGRAM@
52
53 RM      = del
54
55 SRC = cmpt.c safe-ctype.c connect.c host.c http.c netrc.c ftp-basic.c ftp.c \
56       ftp-ls.c ftp-opie.c getopt.c hash.c headers.c html-parse.c html-url.c \
57       retr.c recur.c url.c cookies.c init.c utils.c main.c version.c \
58       mswindows.c fnmatch.c md5.c rbuf.c log.c $(SSLSRC)
59
60 OBJ = cmpt$o safe-ctype$o connect$o host$o http$o netrc$o ftp-basic$o ftp$o \
61       ftp-ls$o ftp-opie$o getopt$o hash$o headers$o html-parse$o html-url$o \
62       retr$o recur$o url$o cookies$o init$o utils$o main$o version$o \
63       mswindows$o fnmatch$o md5$o rbuf$o log$o $(SSLOBJ)
64
65 .SUFFIXES: .c .obj
66
67 .c.obj:
68         $(COMPILE) /c $<
69
70 # Dependencies for building
71
72 wget: wget.exe
73
74 wget.exe: $(OBJ)
75          $(LD) @<< $(LDFLAGS) $(DEBUGLF) /out:$@ $(LIBS) $(SSLLIBS) $(OBJ)
76 <<
77         ren wget.exe WGET.EXE
78
79
80 #
81 # Dependencies for cleanup
82 #
83
84 clean:
85         $(RM) *.obj
86         $(RM) *.exe
87         $(RM) *.bak
88         $(RM) *.pdb
89         $(RM) *.map
90
91 distclean: clean
92         $(RM) Makefile
93
94 realclean: distclean
95         $(RM) TAGS
96
97 # Dependencies:
98
99 !include "..\windows\wget.dep"