|
From: | Bob Paddock |
Subject: | [avr-gcc-list] How can I "#define" a string in the Makefile? |
Date: | Fri, 31 Oct 2003 09:45:16 -0500 |
User-agent: | Opera7.21/Win32 M2 build 3218 |
How can I "#define" a string in the Makefile? Simple ones like "-DUSE_LCDDISP=1" work fine but doing this: CFLAGS = -g -O$(OPT) ... -DUSE_LCDDISP=1 -DFIRMWARE_REV_STR="1.23" ... results in the error "invalid initializer" on this line: /* Displayed as part of sign on message: */ static CONST char FLASH Firmware_Prj_str[] PROGMEM = FIRMWARE_REV_STR; Is there some kind of shell escaping I should be accounting for?
[Prev in Thread] | Current Thread | [Next in Thread] |