AnsweredAssumed Answered

makefile from cygwin to build with piper.exe chc08.exe command line?

Question asked by Lawrence Roshak Employee on Aug 15, 2007
Latest reply on Aug 19, 2007 by Lawrence Roshak
It has been a while for UNIX scripting but does anyone know how to correctly pass the double quote string from /bin/sh makefile to piper.exe chc08 correctly from with CYGWIN?
 
I want to be able to have a makefile like:
tools_dir = C:\Program Files\Freescale\CodeWarrior for HC08 V5.1
tools_mcu_header = $(tools_dir)\lib\hc08c\include
tools_mcu_device = $(tools_dir)\lib\hc08c\device\include
 
CC_flags = -F2 -Cs08 -Ms
 
code.o : code.c
    piper.exe chc08.exe -I"$(tools_mcu_header)" $(CC_flags)  ./../source/code.c
 
but when the make runs the quotes get stripped.
 
$make
piper.exe chc08.exe -I"C:\Program Files\Freescale\CodeWarrior for HC08 V5.1\lib\
hc08c\include\lib\hc08c\include" -F2 -Cs08 -Ms  ./../source/code.c
FATAL C50: Input file '-IC:\Program Files\Freescale\CodeWarrior for HC08 V5.1\li
b\hc08c\include\lib\hc08c\include' not found
*** command line: '"-IC:\Program Files\Freescale\CodeWarrior for HC08 V5.1\lib\h
c08c\include\lib\hc08c\include" -F2 -Cs08 -Ms ./../source/code.c' ***
HC08 Compiler: *** Error occurred while processing! ***
make: *** [fifo.o] Error 1
 
I have tried the escape \" before the quotes without success.  Anyone know how to pass this correctly?
 
Regards,
 
LR
 

Outcomes