Re: Using NTTARGETFILE1 macro in driver build process

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Can you express a dependency on the target that you have in the makefile.inc
?
This way it will be build only after the dependency has been built as well.

--

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"MK" <MK@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BFF926D4-0063-4862-84E0-8F9DDF6CCDED@xxxxxxxxxxxxxxxx
Hi,
I am using NTTARGETFILE1 macro in the sources file, to create a specific
file during driver build (through build utility). It creates the file, as
expected. But it creates the files twice. DDK says "NTTARGETFILE1 is
invoked
on pass one or later passes". I think the command specified in the
makefile.inc to create the file is invoked twice ( pass 1 and at the time
of
linking). Because of this unwanted second time execution of the command,
compilation takes more time. Is there anything to avoid this unwanted
stuff.
Something which gets executed only once, either at the time of compilation
or
at the time of linking.
I have used the macro like...
In sources file...
.
.
NTTARGETFILE1=CreateMyFile

In makefile.inc ...
.
.
CreateMyFile:
CommandToCreateTheFile


Thanks,
--
MK


.



Relevant Pages

  • Re: Using NTTARGETFILE1 macro in driver build process
    ... Do we have any macro to express the dependency? ... I am using NTTARGETFILE1 macro in the sources file, ... Because of this unwanted second time execution of the command, ... Something which gets executed only once, either at the time of compilation ...
    (microsoft.public.development.device.drivers)
  • Re: [GIT PATCHES] V4L/DVB fixes for 2.6.26
    ... (and add a dependency on S390 to the "Multimedia devices" menu). ... since Multimedia devices is already dependent on HAS_IOMEM. ... This breaks saa7134 compilation, if IR-I2C is not selected. ... twist to the kconfig stuff? ...
    (Linux-Kernel)
  • Re: [PATCH] fbdev: Statically link the framebuffer notification functions
    ... effectively sucking in a huge amount of unneeded code. ... is introducing a lot of compilation problems. ... the already complicated dependency. ...
    (Linux-Kernel)
  • GNU make : Generating Prerequisites Automatically
    ... I've read the manual's documentation on Generating Prerequisites Automatically. ... The documentation suggests using the following rule to generate a dependency ... "The -e flag to the shell causes it to exit immediately if any command fails" ... As far as I understand, we want to generate a file "foo.d" which contains two targets foo.o and foo.d before the colon, and gcc produces only foo.o ...
    (comp.unix.programmer)
  • Re: dependency scanner
    ... What does #include have to do with managing object file dependencies? ... BTW there used to be a similar tool for Java but I have no idea if it's still around. ... In Java you would accomplish that most easily by compiling the source, using the built-in compilation libraries if being done programmatically, then building your dependency tree off the declarations in the bytecode, which will all use FQNs. ...
    (comp.lang.java.programmer)