UNIX Vs Windows Makefiles

Dear group members,

I am trying to port a UNIX based Protocol Stack to Windows environment(Win2k). I am using the VC++ 6.0 to build the makefiles. I am getting so many errors in building the makefiles. What is the difference between UNIX and Windows makefiles? I am using the U2NT Lib for mapping unix calls to Win32 calls, they are compiling ok, but syntax errors are coming in makefiles. Is there any utility or document available to conver UNIX GCC makefiles to Windows makefiles?

Chandu


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> I am trying to port a UNIX based Protocol Stack to Windows

environment(Win2k). I am using the VC++ 6.0 to build the makefiles. I am
getting so many errors in building the makefiles. What is the difference
between UNIX and Windows makefiles? I am using the U2NT Lib for mapping
unix calls to Win32 calls, they are compiling ok, but syntax errors are
coming in makefiles. Is there any utility or document available to conver
UNIX GCC makefiles to Windows makefiles?

There is no Windows or UNIX makefile, there are different make programs
which can run on different platforms. Your makefiles are probably written
for GNU make and VC6 uses microsoft nmake syntax instead. You can use some
GNU make win32 port (as CygWin) and it should work with no makefile change.
Sure, you would have to configure proper environment which may not be easy.
Next option is to read both GNU make and nmake manuals and rewrite original
make using nmake syntax. The first way is faster; I used it several times
but my intention was compile files only (browse info needed) and no link
them or even run. The second way may be better from long term perspective if
you want to use VC IDE. On the other hand, rewritting isn’t backward
compatible. GNU makefiles are usually more powerful and can use
configurations generated by some other program. If somebody decides to
change or add something later, you would have to rewrite again.

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Use BUILD tool from DDK instead. It uses a SOURCES file which is an trivial include to the system-supplied MAKEFILE.DEF. You can even borrow the SOURCES file from the DDK sample and just update the file name list.
My personal opinion is that ONLY the project generated by MSVC wizards like ATL must be compiled by IDE.
Any other software - including the portable one and the drivers - are better to be built by the command line.

Also - if you mean networking protocol stack, NT does not allow them. Plain and simple. This is because NT/WinSock has no AF_PACKET address family.

Max
----- Original Message -----
From: ntdev
To: NT Developers Interest List
Sent: Wednesday, December 05, 2001 8:31 AM
Subject: [ntdev] UNIX Vs Windows Makefiles

Dear group members,

I am trying to port a UNIX based Protocol Stack to Windows environment(Win2k). I am using the VC++ 6.0 to build the makefiles. I am getting so many errors in building the makefiles. What is the difference between UNIX and Windows makefiles? I am using the U2NT Lib for mapping unix calls to Win32 calls, they are compiling ok, but syntax errors are coming in makefiles. Is there any utility or document available to conver UNIX GCC makefiles to Windows makefiles?

Chandu

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

At 11.01 05/12/2001 +0530, you wrote:

I am trying to port a UNIX based Protocol Stack to Windows
environment(Win2k). I am using the VC++ 6.0 to build the makefiles. I am
getting so many errors in building the makefiles. What is the difference
between UNIX and Windows makefiles? I am using the U2NT Lib for mapping
unix calls to Win32 calls, they are compiling ok, but syntax errors are
coming in makefiles. Is there any utility or document available to conver
UNIX GCC makefiles to Windows makefiles?

Just use GNU make and utilities, instead of nmake. See
http://www.cygwin.com/ for an interesting package


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com