www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - env vars as macros in smake

↑ ↓ ← Kon Tantos <ksoft1 attglobal.net> writes:
It appears that macros which correspond to predefined env vars are case 
sensititive in smake. Eg the following trivial makefile.
(I am using 8.31 (cd) on W2k sp3)
--
all:	
	REM UPPER case macro expands to $(WXINC1)
	REM MiXed case macro expands to $(WxInC1)
	REM lower case macro expands to $(wxinc1)
--

produces the following output on my system
--
         REM UPPER case macro expands to 
F:\wx2\include;F:\wx2\contrib\include
         REM MiXed case macro expands to
         REM lower case macro expands to
--
WXINC1 is a predefined environmental var.

This is not a problem in itself, but I have tried using env var macros 
in the IDDE to specify include directories. The IDDE converts & stores 
my macro names in lowercase & then the make fails because the macro does 
not expand correctly.
-- 
Regards
Kon Tantos
ksoft1 attglobal.net or kon.tantos tafe.nsw.edu.au
Dec 29 2002
↑ ↓ → "Walter" <walter digitalmars.com> writes:
Sounds like a bug in the IDDE. I'll log it. Thanks, -Walter

"Kon Tantos" <ksoft1 attglobal.net> wrote in message
news:3E0F7705.50004 attglobal.net...
 It appears that macros which correspond to predefined env vars are case
 sensititive in smake. Eg the following trivial makefile.
 (I am using 8.31 (cd) on W2k sp3)
 --
 all:
 REM UPPER case macro expands to $(WXINC1)
 REM MiXed case macro expands to $(WxInC1)
 REM lower case macro expands to $(wxinc1)
 --

 produces the following output on my system
 --
          REM UPPER case macro expands to
 F:\wx2\include;F:\wx2\contrib\include
          REM MiXed case macro expands to
          REM lower case macro expands to
 --
 WXINC1 is a predefined environmental var.

 This is not a problem in itself, but I have tried using env var macros
 in the IDDE to specify include directories. The IDDE converts & stores
 my macro names in lowercase & then the make fails because the macro does
 not expand correctly.
 --
 Regards
 Kon Tantos
 ksoft1 attglobal.net or kon.tantos tafe.nsw.edu.au

Dec 29 2002