Forums

How to build large project from eclipse using make utility ?

Started by learn February 19, 2015
The make.exe utility is located at C:Eclipsemsys

Following is a batch file called make.bat


@rem ######################################################## 
@rem #                                                      #
@rem # Eclipse build configuration start batch as           #
@rem # general GNU make build process entry point           #
@rem #                                                      #
@rem # AEP2.1 / RBR                                         #
@rem #                                                      #
@rem ########################################################

@echo off

set buildmode=%1
set verbose=%2
set MEASURE=""


IF "%4"=="" (
	
	set mv=%3
) ELSE (


set MEASURE=%3

set mv=%4
)


set dh=%mv:~0,-2%.h
set dc=%mv:~0,-2%.c
set do=%mv:~0,-2%.o

IF %mv% == %dc% set mv=%do%
IF %mv% == %dh% set mv=%do%

rem GNU make options used:
rem -r : turn off GNU make built-in implicite rules
rem -j : configure GNU to run jobs simultaneously, here
rem      set to 2-threads 


%MSYS%make.exe -r BUILDMODE=%buildmode% MAKE_VERBOSE=%verbose% %mv%



This batch file has %MSY%.  I think %MSY% is path C:Eclipsemsys which I
need to specify in a environment variable.  
This batch file has %1, %2, %3, %4.  I think these are inputs I need to
specify when I invoke make.exe.  Looking at the batch file, it looks like
build has to be invoked from Eclipse.  

How should I invoke this build from eclipse ?

The folder that contain make.bat also contains make.mk
	   
					
---------------------------------------		
Posted through http://www.EmbeddedRelated.com
>The make.exe utility is located at C:Eclipsemsys > >Following is a batch file called make.bat > > >@rem ######################################################## >@rem # # >@rem # Eclipse build configuration start batch as # >@rem # general GNU make build process entry point # >@rem # # >@rem # AEP2.1 / RBR # >@rem # # >@rem ######################################################## > >@echo off > >set buildmode=%1 >set verbose=%2 >set MEASURE="" > > >IF "%4"=="" ( > > set mv=%3 >) ELSE ( > > >set MEASURE=%3 > >set mv=%4 >) > > >set dh=%mv:~0,-2%.h >set dc=%mv:~0,-2%.c >set do=%mv:~0,-2%.o > >IF %mv% == %dc% set mv=%do% >IF %mv% == %dh% set mv=%do% > >rem GNU make options used: >rem -r : turn off GNU make built-in implicite rules >rem -j : configure GNU to run jobs simultaneously, here >rem set to 2-threads > > >%MSYS%make.exe -r BUILDMODE=%buildmode% MAKE_VERBOSE=%verbose% %mv% > > > >This batch file has %MSY%. I think %MSY% is path C:Eclipsemsys which I >need to specify in a environment variable. >This batch file has %1, %2, %3, %4. I think these are inputs I need to >specify when I invoke make.exe. Looking at the batch file, it looks like >build has to be invoked from Eclipse. > >How should I invoke this build from eclipse ? > >The folder that contain make.bat also contains make.mk > > >--------------------------------------- >Posted through http://www.EmbeddedRelated.com >
I entered following from the command line: make msm_debug VERBOSE_ON what should be %mv% --------------------------------------- Posted through http://www.EmbeddedRelated.com