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