Ethereal-dev: RE: [Ethereal-dev] Makefile.nmake problem

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Biot Olivier <Olivier.Biot@xxxxxxxxxxx>
Date: Fri, 14 May 2004 17:12:11 +0200
|From: Andrew Feren
|
|
|It's been a while and I'm in the process of setting up a 
|Windows build again.  I am getting a couple of problems I 
|don't recall having before.
|
|nmake (Version 1.50) is complaining about the following rule 
|(line 23 of the top level Makefile.nmake).

Mmh... I strongly suspect you're trying to build Ethrereal with the recently
released MSVC++ 2003 Toolkit and an old nmake found on the Microsoft support
site. I have to disappoint you: this won't work (I have tried it).

You really need MSVC++ 6 (definitely not a more recent version, because of
mainly licensing reasons).

|.c.obj::
| $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
|
|changing the above to
|
|.c.obj:
| $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
|
|works, but that doesn't make sense.

Looks familiar... That's because of the old nmake you're using.

|Also I am getting the following error when nmake attempts to recurse
|
|        cd tools
|        NMAKE /D -f Makefile.nmake
|'C:\Program' is not recognized as an internal or external command,
|operable program or batch file.
|NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : 
|return code '0x1'
|Stop.
|
|If I cd to tools and run nmake by hand it complains when 
|recursing into lemon.  If I cd into lemon lemon.exe builds 
|just fine.  It looks like something isn't quoted properly, but 
|I can't figure out what is causing the problem and why calling 
|nmake recursively is triggering it.
|
|If it helps I have the latest 1.4 ethereal code out of CVS and 
|I am attempting to build on XP.
|
|Any thoughts or suggestions?

Use MSVC++ 6.0 out of the box, or try building with CygWin or MinGW.

Regards,

Olivier