OpenMake Meister

The REFDIR Variable

 

Most developers never have the same drive letter mappings as one another.  Because of this the use of a drive letter mapping variable is needed in the definition of a directory.   Environment Variables in the Dependency Directory allow you to get around this problem.  If you look at the "Metal Works" Project DEV Dependency Directory, you will notice the $(REFDIR) variable being used.  REFDIR is an environment variable that needs to be set in order to find the directories listed in the Dependency Directory

 

Any environment variable can be used in the Dependency Directory as long as it is enclosed in $().  The use of the $(REFDIR) environment variable is similar to the use of the $(COMPILER) environment variables discussed in the "Compiler Template Dependency Directories".