Thanks again for all response.
I think I should add more information here.
After this part of script runing, I can see the file tmp.0 looks like:
-c
-o hse.tms
-m hse.map
-stack 0x100
hseobj/hardware.obj
hseobj/main.obj
...
hseobj/version.obj
-l c:/j/c3xtools/lib/stdmthss.lib
-l c:/j/c3xtools/lib/tms450.lib
...
As you can see, the variables are all expanded(
$@=hse.tms, $(@:b)=hse, etc.). There are some conditional (ifeq..) excution too, all handled well. Except that, all other stuff recorded in file tmp.0.
I did try excute command on MKS KSH terminal like:
cp <+ \
-c \
+>tmp.0
I got error "can not open '+' for input". But the scrip running under command: make (targetname) is OK. So, I suspect that might regarding command 'make' under MKS.
jason