Herold Heiko
<Heiko.Herold@pr To: "'Hrvoje Niksic'"
<[EMAIL PROTECTED]>, Wget List
evinet.it> <[EMAIL PROTECTED]>
cc:
14/05/01 12:05 Subject: RE: New and improved
Makefile.watcom
> >-----Original Message-----
> >From: Hrvoje Niksic [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, May 14, 2001 11:23 AM
> >To: Wget List
> >Subject: Re: New and improved Makefile.watcom
> >
> >
> >[EMAIL PROTECTED] writes:
> >
> >> This is a rewrite of Makefile.watcom
> >
> >Thanks; I've put it in the repository.
> >
> >> # Copy this file to the ..\src directory (maybe rename to
> >Makefile). Also:
> >> # copy config.h.ms ..\src\config.h
> >
> >Maybe we should provide a "win-build" script (or something) that does
> >this automatically?
> >
How about this ?
config.h : ..\windows\config.h.ms
copy $[@ $^@
(this would be "copy $< $@" for GNU make)
Yup, it works (for me ! :-)
>
> Isn't this what configure.bat is for ?
In theory, but...
> Default to VC (or use VC if --msvc is given), otherwise if env var
> BORPATH is present (or --borland is given) use borland, otherwise error.
>
I see no Watcom here :-) configure.bat doesn't know about Watcom C
Hrvoje also wrote:
> > #disabled for faster compiler
> > LFLAGS=sys nt op st=32767 op vers=1.7 op map op q op de 'GNU wget
1.7dev' de all
> > CFLAGS=/zp4 /d1 /w4 /fpd /5s /fp5 /bm /mf /os /bt=nt [snip]
> > # /zp4= pack structure members with this alignment
> > # /d1 = line number debug info
> > # /w4 = warning level
> > # /fpd= ??? no such switch !
> > # /5s = Pentium stack-based calling
> > # /fp5= Pentium floating point
> > # /bm = build multi-threaded
> > # /mf = flat memory model
> > # /os = optimize for size
> ^^^
> > # /bt = "build target" (nt)
>
> One thing I don't understand: why do you optimize for size? Doesn't
> it almost always make sense to optimize for speed instead?>
Because I like small and sleek executables :-)
Are there any processor-intensive bits in wget ? Most of the time it'll
wait for the "Internet" anyway.
BTW, compiling with DEBUG_MALLOC reveals three memory leaks :
0x13830432: mswindows.c:72 <- *exec_name = xstrdup (*exec_name); in
windows_main_junk
0x13830496: mswindows.c:168 <- wspathsave = (char*) xmalloc (strlen
(buffer) + 1); in ws_mypath
0x13830848: utils.c:1525 <- (struct wget_timer *)xmalloc (sizeof
(struct wget_timer));
Here's another edition of Makefile.watcom
(See attached file: Makefile.watcom)
--
Csaba R�duly, Software Engineer Sophos Anti-Virus
email: [EMAIL PROTECTED] http://www.sophos.com
US support: +1 888 SOPHOS 9 UK Support: +44 1235 559933
=?iso-8859-1?Q?Makefile.watcom?=