]> sjero.net Git - wget/blob - windows/Makefile.src.bor
[svn] Remove manual tracking of dependencies; instead, force a recompile when a header
[wget] / windows / Makefile.src.bor
1 ## Compiler, linker, and lib stuff
2 ## Makefile for use with Borland C++ for Win32 executable.
3
4 RM=-del
5 CC=bcc32
6 LINK=ilink32
7
8 LFLAGS=
9 WARN=-w-8057 -w-8027 -w-8008 -w-8065
10 CFLAGS=-DWINDOWS -DHAVE_CONFIG_H -I. -O2 -6 -d -q $(WARN)
11
12 ## variables
13 OBJS=cmpt.obj connect.obj convert.obj ftp.obj ftp-basic.obj  \
14       ftp-ls.obj ftp-opie.obj getopt.obj host.obj html-parse.obj html-url.obj \
15       http.obj init.obj log.obj main.obj gnu-md5.obj netrc.obj  \
16       safe-ctype.obj hash.obj progress.obj ptimer.obj gen-md5.obj cookies.obj \
17       recur.obj res.obj retr.obj url.obj utils.obj version.obj xmalloc.obj \
18       mswindows.obj
19
20 LIBDIR=$(MAKEDIR)\..\lib
21
22 wget.exe: $(OBJS)
23   $(LINK) @&&|
24 $(LFLAGS) -Tpe -ap -c +
25 $(LIBDIR)\c0x32.obj+
26 cmpt.obj+
27 connect.obj+
28 convert.obj+
29 cookies.obj+
30 ftp-basic.obj+
31 ftp-ls.obj+
32 ftp-opie.obj+
33 ftp.obj+
34 gen-md5.obj+
35 getopt.obj+
36 gnu-md5.obj+
37 hash.obj+
38 host.obj+
39 html-parse.obj+
40 html-url.obj+
41 http.obj+
42 init.obj+
43 log.obj+
44 main.obj+
45 mswindows.obj+
46 netrc.obj+
47 progress.obj+
48 ptimer.obj+
49 recur.obj+
50 res.obj+
51 retr.obj+
52 safe-ctype.obj+
53 url.obj+
54 utils.obj+
55 version.obj+
56 xmalloc.obj,+
57 $<,$*,+
58 $(LIBDIR)\import32.lib+
59 $(LIBDIR)\cw32.lib
60
61 $(OBJS): config-post.h connect.h convert.h cookies.h ftp.h gen-md5.h \
62          getopt.h gnu-md5.h hash.h host.h html-parse.h http-ntlm.h   \
63          init.h log.h mswindows.h netrc.h options.h progress.h       \
64          ptimer.h recur.h res.h retr.h safe-ctype.h ssl.h sysdep.h   \
65          url.h utils.h wget.h xmalloc.h
66
67 |
68
69
70 #
71 # Dependencies for cleanup
72 #
73
74 clean:
75         $(RM) *.bak
76         $(RM) *.obj
77         $(RM) wget.exe
78         $(RM) wget.ilc
79         $(RM) wget.ild
80         $(RM) wget.ilf
81         $(RM) wget.ils
82         $(RM) wget.map
83         $(RM) wget.tds
84
85 o = .obj