1 ## Compiler, linker, and lib stuff
2 ## Makefile for use with watcom win95/winnt executable.
4 # Copy this file to the ..\src directory (maybe rename to Makefile). Also:
5 # copy config.h.ms ..\src\config.h
11 #disabled for faster compiler
12 LFLAGS=sys nt op st=32767 op vers=1.7 op map op q op de 'GNU wget 1.7dev'
13 CFLAGS=/zp4 /d1 /w4 /fpd /5s /fp5 /bm /mf /os /bt=nt /DWINDOWS /DHAVE_CONFIG_H /I=$(%WATCOM)\h;$(%WATCOM)\h\nt;.
14 # /zp4= pack structure members with this alignment
15 # /d1 = line number debug info
17 # /fpd= ??? no such switch !
18 # /5s = Pentium stack-based calling
19 # /fp5= Pentium floating point
20 # /bm = build multi-threaded
21 # /mf = flat memory model
22 # /os = optimize for size
23 # /bt = "build target" (nt)
25 OBJS = FILE cmpt.obj,connect.obj,cookies.obj,fnmatch.obj,ftp.obj,ftp-basic.obj, &
26 ftp-ls.obj,ftp-opie.obj,getopt.obj,hash.obj,headers.obj,host.obj,html-parse.obj,html-url.obj, &
27 http.obj,init.obj,log.obj,main.obj,md5.obj,netrc.obj,rbuf.obj, &
28 recur.obj,retr.obj,safe-ctype.obj,url.obj,utils.obj,version.obj,mswindows.obj
30 # NOTE: these two MUST be kept absolutely in sync
31 # alas, no text functions in Watcom make :-(
33 LINKOBJS = cmpt.obj connect.obj cookies.obj fnmatch.obj ftp.obj ftp-basic.obj &
34 ftp-ls.obj ftp-opie.obj getopt.obj hash.obj headers.obj host.obj html-parse.obj html-url.obj &
35 http.obj init.obj log.obj main.obj md5.obj netrc.obj rbuf.obj &
36 recur.obj retr.obj safe-ctype.obj url.obj utils.obj version.obj mswindows.obj
43 $(BINNAME): $(LINKOBJS)
44 $(LINK) $(LFLAGS) NAME $(BINNAME) $(OBJS) $(LIBPATH) $(LIBFILES)
47 cmpt.obj : cmpt.c wget.h sysdep.h options.h utils.h
48 connect.obj : connect.c wget.h sysdep.h options.h utils.h connect.h host.h
49 cookies.obj : cookies.c wget.h sysdep.h options.h utils.h cookies.h hash.h url.h utils.h
50 fnmatch.obj : fnmatch.c wget.h sysdep.h options.h utils.h fnmatch.h
51 ftp-basic.obj : ftp-basic.c wget.h sysdep.h options.h utils.h utils.h rbuf.h connect.h host.h
52 ftp-ls.obj : ftp-ls.c wget.h sysdep.h options.h utils.h utils.h ftp.h url.h
53 ftp-opie.obj : ftp-opie.c wget.h sysdep.h options.h utils.h md5.h
54 ftp.obj : ftp.c wget.h sysdep.h options.h utils.h utils.h url.h rbuf.h retr.h ftp.h connect.h host.h fnmatch.h netrc.h
55 getopt.obj : getopt.c wget.h sysdep.h options.h utils.h getopt.h
56 hash.obj : hash.c wget.h sysdep.h options.h utils.h utils.h hash.h
57 headers.obj : headers.c wget.h sysdep.h options.h utils.h connect.h rbuf.h headers.h
58 host.obj : host.c wget.h sysdep.h options.h utils.h utils.h host.h url.h hash.h
59 html-parse.obj : html-parse.c wget.h sysdep.h options.h utils.h html-parse.h
60 html-url.obj : html-url.c wget.h sysdep.h options.h utils.h html-parse.h url.h utils.h
61 html.obj : html.c wget.h sysdep.h options.h utils.h url.h utils.h ftp.h
62 http.obj : http.c wget.h sysdep.h options.h utils.h utils.h url.h host.h rbuf.h retr.h headers.h cookies.h connect.h fnmatch.h netrc.h md5.h
63 init.obj : init.c wget.h sysdep.h options.h utils.h utils.h init.h host.h recur.h netrc.h
64 log.obj : log.c wget.h sysdep.h options.h utils.h utils.h
65 main.obj : main.c wget.h sysdep.h options.h utils.h utils.h getopt.h init.h retr.h recur.h host.h cookies.h
66 md5.obj : md5.c wget.h sysdep.h options.h utils.h md5.h
67 mswindows.obj : mswindows.c wget.h sysdep.h options.h utils.h url.h
68 netrc.obj : netrc.c wget.h sysdep.h options.h utils.h utils.h netrc.h init.h
69 rbuf.obj : rbuf.c wget.h sysdep.h options.h utils.h rbuf.h connect.h
70 recur.obj : recur.c wget.h sysdep.h options.h utils.h url.h recur.h utils.h retr.h ftp.h fnmatch.h host.h hash.h
71 retr.obj : retr.c wget.h sysdep.h options.h utils.h utils.h retr.h url.h recur.h ftp.h host.h connect.h hash.h
72 snprintf.obj : snprintf.c
73 safe-ctype.obj : safe-ctype.c safe-ctype.h
74 url.obj : url.c wget.h sysdep.h options.h utils.h utils.h url.h host.h
75 utils.obj : utils.c wget.h sysdep.h options.h utils.h utils.h fnmatch.h hash.h
76 version.obj : version.c