Forum Discussion
Altera_Forum
Honored Contributor
20 years agoI see two possibilities in this case:
- (DOS-based) if you are using a simple HAL project, just create two configurations from the properties of the project; that will generate a makefile in two separate directories (call them Product1 and Product2 instead of Debug/Release). Then, just write a batch file to call make -s on the 2 directories form the command line. You can differentiate among the two products using a -D option passed to the gcc. - (Eclipse based) If you want to remain eclipse based to also control the generation of the makefiles, you can use an ANT script to prepare a little sequence of actions to be performed that are typically a mimic of the commands that can be issued from the IDE. (ANT also works from the command line). That is for example the typical thing we do when I want to generate and compile different application configurations from an OIL configuration file when using ERIKA Enterprise. However, I do not know if the Altera support ANT scripting... bye Paolo