ACLiC vs gmake

Hi all,

I’m trying to write a short piece of code when can run either with ACliC or compiled with a Makefile to an executable. Is there an easy way to do this? On one hand, ACliC requires my script to have a main function by the name of the script file, but on the other, gcc requires the conventional main().

N.

ACLIC does not require to have the name of the main function to be also the name of the file.
Assume a file myscript.C containing several functions name1, name2, etc, you can do

root > .L myscript.C+ root > name1(); root > name2();, etc
Rene