Gnu Make Two Step
Posted: Mon Jun 13, 2005 5:17 pm
I am using this with the WinARM toolset. It's an expansion on someone else's suggestion for getting output from Gnu Make. Since I had the same problem as Gnu Make, I figure this should fix it for that too.
First. Create two files.
mymake.cmd and mymake.bat
mymake.cmd looks like this:
If you happen to have 4NT or 4DOS, you can use them instead of command.exe.
mymake.bat looks like this:
In my workspace options I have:
Make Command Line = mymake.cmd program
Rebuild Command Line = mymake.cmd all
Clean Command Line = mymake.cmd clean
For you ARM folks, this even works when the lpc21isp.exe program is called from within the makefile. I just have to click in the screen for the Project Make tab to have the interactive prompts show up.
First. Create two files.
mymake.cmd and mymake.bat
mymake.cmd looks like this:
Code: Select all
@echo off
command /c mymake.bat %1
mymake.bat looks like this:
Code: Select all
@echo off
if [%1]==[all] make all
if [%1]==[program] make program
if [%1]==[clean] make clean
exit
Make Command Line = mymake.cmd program
Rebuild Command Line = mymake.cmd all
Clean Command Line = mymake.cmd clean
For you ARM folks, this even works when the lpc21isp.exe program is called from within the makefile. I just have to click in the screen for the Project Make tab to have the interactive prompts show up.