www.digitalmars.com         C & C++   DMDScript  

c++ - Question about dependencies

reply "Christian Kaiser" <chk online.de> writes:
Does DMC has an autodepend feature?

Watcom includes information about all the included header files in the OBJ
files, so once the MAKE is run, it will automatically scan the OBJs and find
out the ones that need to be recompiled one a dependent file changes.

I saw DMC has a switch to create a DEP file, but is that needed to be run
once when I add a header file, or can that switch be given always, so that
it will work just as that Watcom feature for lazy programmers like me?

Thanks

Christian
Oct 05 2003
next sibling parent reply "Christian Kaiser" <chk online.de> writes:
BTW: I did not find whether DEP files apply to RC files (and ASM) too. Do
they work there too?

Christian
Oct 05 2003
parent "Walter" <walter digitalmars.com> writes:
"Christian Kaiser" <chk online.de> wrote in message
news:blonj8$8ep$1 digitaldaemon.com...
 BTW: I did not find whether DEP files apply to RC files (and ASM) too. Do
 they work there too?
No, sorry.
Oct 05 2003
prev sibling parent reply "Walter" <walter digitalmars.com> writes:
"Christian Kaiser" <chk online.de> wrote in message
news:blomi1$6us$1 digitaldaemon.com...
 Does DMC has an autodepend feature?
No, sorry, just the .dep file generation switch.
Oct 05 2003
parent reply "Christian Kaiser" <chk online.de> writes:
Walter,

thanks for answering. Is the DEP file automatically recognized by MAKE and
NETMAKE? I did not find a comment in MAKE about these files.

Christian

"Walter" <walter digitalmars.com> wrote in message
news:blpor4$1jk1$4 digitaldaemon.com...
 "Christian Kaiser" <chk online.de> wrote in message
 news:blomi1$6us$1 digitaldaemon.com...
 Does DMC has an autodepend feature?
No, sorry, just the .dep file generation switch.
Oct 05 2003
parent "Walter" <walter digitalmars.com> writes:
"Christian Kaiser" <chk online.de> wrote in message
news:blprsr$1nka$1 digitaldaemon.com...
 Walter,

 thanks for answering. Is the DEP file automatically recognized by MAKE and
 NETMAKE?
What you do is: test.exe : $(test.dep)
Oct 06 2003