On Thu, Jun 26, 2008 at 08:09:11AM -0700, Roman Morokutti wrote:
> Thank you for your help.
> 
> I've found some other influential environment variables:
> 
> CC          C compiler command
> CFLAGS      C compiler flags
> LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
>             nonstandard directory <lib dir>
> CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
>             headers in a nonstandard directory <include dir>
> CPP         C preprocessor
> CXX         C++ compiler command
> CXXFLAGS    C++ compiler flags
> CXXCPP      C++ preprocessor
> F77         Fortran 77 compiler command
> FFLAGS      Fortran 77 compiler flags
> 
> So if I understand you right, it is important to know that these
> environment variables affect only "make".

These variables are a convention for writing Makefiles, including Makefiles
autogenerated by configure and friends.

There are also implicit make rules, so you can claim that it affects make as 
well.

> And to use it as environment
> variables one would have to call "make -e", otherwise appending
> those flags to "make".

It is important to note that these conventions are not strictly enforced by 
make.
Thus there are many makefiles out there that do not follow them.
Just take care.

regards,
  Fedor.

> 
> Thank you very much.
> 
> Roman.
> --
> This message posted from opensolaris.org
> _______________________________________________
> tools-compilers mailing list
> tools-compilers at opensolaris.org

Reply via email to