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).
11 # Note: this will wipe anything in the env.var PATH !
14 @SET INCLUDE=$(%WATCOM)\h;$(%WATCOM)\h\nt;.
16 LFLAGS=op q sys nt op st=32767 op vers=1.7 op map op de 'GNU wget 1.7dev' de dw op symf
19 # sys nt : producing an NT app
20 # op st(ack)=32768 : stack size
21 # op vers(ion)=1.7 : "Image version" in the EXE header ( major.minor )
22 # op map : produce a map file
23 # op de : textual description, placed in the executable
24 # de dw : debug info on Dwarf format
25 # op symf : place debug info in a separate wget.sym
28 CFLAGS=/zp4 /w4 /fpd /5s /fp5 /bm /mf /bt=nt /DWINDOWS /DHAVE_CONFIG_H
29 # ^^^^^^^^ wget will run on NT. We can safely assume a Pentium :-)
30 # /zp4= pack structure members with this alignment
31 # /d1 = line number debug info
33 # /fpd= Pentium floatingpoint bug workaround
34 # /5s = Pentium stack-based calling
35 # /fp5= Pentium floating point
36 # /bm = build multi-threaded
37 # /mf = flat memory model
38 # /bt = "build target" (nt)
41 # Choose one of the following three:
42 # /od /d2 for no optimization, full debug info
43 # /os /d2 to optimize for size, full debug info (or /d1 for line number debug info)
44 # /othexan for "heavy-duty" optimizations, no debug info
49 # ^^-- mind the gap !!
51 #CFLAGS+= /DDEBUG_MALLOC
52 # ^^-- mind the gap !!
54 OBJS = cmpt.obj connect.obj cookies.obj fnmatch.obj ftp.obj ftp-basic.obj &
55 ftp-ls.obj ftp-opie.obj getopt.obj hash.obj headers.obj host.obj html-parse.obj html-url.obj &
56 http.obj init.obj log.obj main.obj gen-md5.obj gnu-md5.obj netrc.obj progress.obj rbuf.obj &
57 recur.obj res.obj retr.obj safe-ctype.obj url.obj utils.obj version.obj mswindows.obj
61 # Add extra libs like this :
62 #LIBFILES = LIBF lz32.lib,gdi32.lib
66 all : config.h $(BINNAME) .SYMBOLIC
71 config.h : ..\windows\config.h.ms
75 # Note: this will pass all the OBJ files to wlink,
76 # resulting in a very long command line (410 chars, last I counted)
77 # This might fail on Win9x (works with NT's cmd.exe)
79 $(BINNAME): $(OBJS) Makefile
80 $(LINK) $(LFLAGS) NAME $(BINNAME) FILE { $(OBJS) } $(LIBPATH) $(LIBFILES)
84 # Explicit dependencies not needed because Watcom C stores
85 # dependency information in the object file. Wmake can read this information
86 # if prompted by .AUTODEPEND
93 $(CC) $(CFLAGS) -fo=$@ /Pc $[@