Re: Compiling under ddk 3790

Tech-Archive recommends: Fix windows errors by optimizing your registry



> This is highly unusual, why on earth do we get the sdk files in the ddk
> if we cannot use nmake?

BUILD is wrapper around NMAKE. It gives you, for instance, the automatic
dependency scan (NMAKE IIRC cannot. With GCC, you can ask the compiler to "list
all #include dependencies to stdout", but the MS's compiler seems to not
support it. I dunno how "checking dependencies" feature in MSVC IDE is done).

If you are not satisfied with the power of BUILD (read the MAKEFILE.DEF to see
how the standard macros work) - then declare the NTTARGETFILES macro in your
SOURCES and this will force inclusion of MAKEFILE.INC, which is the usual NMAKE
makefile (but with BUILD macros like TARGET still available there).

You can also declare NTTARGETFILES=Target in SOURCES, and then use:

Target:
command arg1 arg2

in MAKEFILE.INC, this is the way to include the custom post-build steps (I run
REBASE this way).

You can also use NTTARGETFILE0=Target - this is the pre-build step (often used
to compile the event log message files).

The .RC files are compiled automatically, just list them among the SOURCES. If
you need Unicode stringtables - just #include them to ANSI RC file, but you
will need to manually add the dependency to MAKEFILE.INC as:

myproj.rc: myproj.msg

and use NTTARGETFILE0= with empty body. The MSG file is the Unicode
stringtable, #included to ANSI .RC file.

The .DEF file must just have the same name as target.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com

.



Relevant Pages

  • Re: Build tkpath for Windows
    ... the following error on Windows: ... *** Compiler version 0, machine is i386 ... NMAKE: fatal error U1073: don't know how to make ... Is it possible to build Tkpath using GNU make in a Cygwin bash using ...
    (comp.lang.tcl)
  • Re: What is NMAKE.exe used for?
    ... >nmake is just a utility used to invoke the assembler, compiler, and linker ... BCET Basic Compiler Page: http://www.arargh.com/basic/index.html ...
    (comp.lang.asm.x86)
  • Re: What is NMAKE.exe used for?
    ... > documentation but could not understand much. ... Can I have a project built without using nmake? ... compiler on the files for you. ...
    (microsoft.public.vc.debugger)
  • Re: Working with Visual C++ Toolkit 2003
    ... I wonder why nmake is not part of the toolkit, more anoying, there is no ... I was trying to compile wxWidgets 2.6 with the toolkit and an old version of ... I build succesfully my app and wxWidgets 2.6 with mingw compiler and using ...
    (microsoft.public.vc.language)
  • 64-bit driver compile error
    ... DDK. ... Got error code: NMAKE " fatel error U1073: don't know how to make ...
    (microsoft.public.development.device.drivers)