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