On mac, how to add path to environment variable?
===

I'm using opencv on mac, every time I compile the program, I have to type:

    g++ -I /usr/local/include -L /usr/local/lib main.cpp


What can I do to avoid typing -I and -L params?