Problem setting up makefile
- From: "mike" <nospamplease>
- Date: Sat, 12 Jan 2008 10:48:19 -0500
I am trying to setup multiple makefiles using common environment variables
that point to path information. I am calling nmake using recursion through
sub-projects. The problem is I cannot get nmake to maintain
variables across projects.
Simple example:
In makefile1:
ALL : ENV proj2
proj2:
nmake .\proj2\makefile
nmake .\proj3\makefile
ENV:
set AS=asm.exe
The result is project 2 builds ok using asm.exe but when it is done
AS is set to equal 'ml' and when I try to build project 3 it fails.
After struggling with this for a while I have decided to create a batch file
that sets up
the environment from the dos window.
My problem here is I need to set a 'base path' in the environment from the
batch file
ie set basepath=?
I do not know how to determine what the current path is from a batch file. I
do not see
an environment variable that points to the current path. I know I could
enter it from
the command line but I would like to avoid this if possible. Does anyone
know if there
is a way to determine the current path from a batch file?
I hope I am not confusing here.
thanks
.
- Follow-Ups:
- Re: Problem setting up makefile
- From: David Ching
- Re: Problem setting up makefile
- Prev by Date: Re: Upgrade Anxiety
- Next by Date: Re: Upgrade Anxiety
- Previous by thread: application stuck when send msg: WM_IME_SETCONTEXT to CAxWindow
- Next by thread: Re: Problem setting up makefile
- Index(es):
Relevant Pages
|