Send and receive Hotmail on your mobile device: Click Here
Sorry for the empty mail sent out previously … problems I am facing with hotmail.
I need to compile files spread over multiple directories with DDK, to build a single binary (driver), and am facing prblems.
SOURCES=main.c \
…\outerdir\other.c
I get the error:
BUILD: : Ignoring invalid directory prefix in SOURCES= entry: …\outerdir\other.c
How can I get across this?
Thanks
-Johnny
MSN Photos is the easiest way to share and print your photos: Click Here
No way. You can only use current and parent dirs. This is limitation of
nmake and inference rules as I learnt in past day.
If you really need a file in other directory, create lib. Search list
archives and/or builds docs for detailed description, please.
P.S. Don’t send CC to me, please, reply to the list is enough. I don’t need
your mails twice.
Best regards,
Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]
From: xxxxx@hotmail.com[SMTP:xxxxx@hotmail.com]
Reply To: xxxxx@lists.osr.com
Sent: Saturday, May 11, 2002 12:58 AM
To: xxxxx@lists.osr.com
Cc: michal.vodicka@st.com
Subject: [ntdev] Question about makefilesSorry for the empty mail sent out previously … problems I am facing with
hotmail.I need to compile files spread over multiple directories with DDK, to
build a single binary (driver), and am facing prblems.SOURCES=main.c \
…\outerdir\other.cI get the error:
BUILD: : Ignoring invalid directory prefix in SOURCES= entry:
…\outerdir\other.cHow can I get across this?
Thanks
-Johnny
MSN Photos is the easiest way to share and print your photos: Click Here
http:
> —
> You are currently subscribed to ntdev as: michal.vodicka@st.com
> To unsubscribe send a blank email to %%email.unsub%%
></http:>
Compile a .LIB in each directory but last, then link them to the last directory’s build.
Max
----- Original Message -----
From: Johnny D
To: NT Developers Interest List
Cc: michal.vodicka@st.com
Sent: Saturday, May 11, 2002 2:58 AM
Subject: [ntdev] Question about makefiles
Sorry for the empty mail sent out previously … problems I am facing with hotmail.
I need to compile files spread over multiple directories with DDK, to build a single binary (driver), and am facing prblems.
SOURCES=main.c \
…\outerdir\other.c
I get the error:
BUILD: : Ignoring invalid directory prefix in SOURCES= entry: …\outerdir\other.c
How can I get across this?
Thanks
-Johnny
MSN Photos is the easiest way to share and print your photos: Click Here
You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%
Actually it is a rule imposed by build. Nmake would be happy with
…\whatever\foo.c.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Michal Vodicka
Sent: Friday, May 10, 2002 7:08 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Question about makefilesNo way. You can only use current and parent dirs. This is
limitation of nmake and inference rules as I learnt in past day.If you really need a file in other directory, create lib.
Search list archives and/or builds docs for detailed
description, please.P.S. Don’t send CC to me, please, reply to the list is
enough. I don’t need your mails twice.Best regards,
Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]> ----------
> From: xxxxx@hotmail.com[SMTP:xxxxx@hotmail.com]
> Reply To: xxxxx@lists.osr.com
> Sent: Saturday, May 11, 2002 12:58 AM
> To: xxxxx@lists.osr.com
> Cc: michal.vodicka@st.com
> Subject: [ntdev] Question about makefiles
>
> Sorry for the empty mail sent out previously … problems I
am facing
> with hotmail.
>
> I need to compile files spread over multiple directories
with DDK, to
> build a single binary (driver), and am facing prblems.
>
> SOURCES=main.c \
> …\outerdir\other.c
>
> I get the error:
> BUILD: : Ignoring invalid directory prefix in SOURCES= entry:
> …\outerdir\other.c
>
> How can I get across this?
>
> Thanks
> -Johnny
>
>
> _____
>
> MSN Photos is the easiest way to share and print your photos: Click
> Here http:
> > —
> > You are currently subscribed to ntdev as: michal.vodicka@st.com To
> > unsubscribe send a blank email to %%email.unsub%%
> >
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@hollistech.com To unsubscribe send a blank email to
> %%email.unsub%%
></http:>
Right, build imposes it but nmake too. It isn’t possible to write general
inference rule which works in any directory. Instead, it is necessary to
write one rule per source/destination directory pair. Look into
makefile.def. There are several rules for every source file type as
{…}.c{$(O)}.obj:: and {}.c{$(O)}.obj::. Build uses nmake so I guess
nmake limitation was the reason for build limitation.
Both nmake and build sources are available as part of some C# engine which
can be downloaded from ms web. So if somebody is really bothered with this
limitation, s/he can improve both utilities (if lawyers permit). At least
for nmake it doesn’t seem so hard.
Best regards,
Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]
From: xxxxx@hollistech.com[SMTP:xxxxx@hollistech.com]
Reply To: xxxxx@lists.osr.com
Sent: Saturday, May 11, 2002 3:08 AM
To: xxxxx@lists.osr.com
Subject: [ntdev] RE: Question about makefilesActually it is a rule imposed by build. Nmake would be happy with
…\whatever\foo.c.> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Michal Vodicka
> Sent: Friday, May 10, 2002 7:08 PM
> To: NT Developers Interest List
> Subject: [ntdev] RE: Question about makefiles
>
>
> No way. You can only use current and parent dirs. This is
> limitation of nmake and inference rules as I learnt in past day.
>
> If you really need a file in other directory, create lib.
> Search list archives and/or builds docs for detailed
> description, please.
>
> P.S. Don’t send CC to me, please, reply to the list is
> enough. I don’t need your mails twice.
>
> Best regards,
>
> Michal Vodicka
> STMicroelectronics Design and Application s.r.o.
> [michal.vodicka@st.com, http:://www.st.com]