Penguin

Implicit Variables

$@
Target filename
$<
First prerequesite
$^
All prerequesites

Explicit Variables

Paths to programs

CC
C compiler, usually "cc" (see cc(1))
CXX
C++ compiler, usually "c++"
AR
ar(1), usually "ar"
YACC
yacc(1), usually "yacc"
LD
ld(1), linker, usually "ld"
MAKE
make(1) program, usually "make"
TEX
path to tex(1)
RM
rm(1) command, usually "rm -f"
LEX
path to lex(1)

Arguments to programs

CFLAGS
flags passed to the C compiler. for example: "-g -Wall"
LDLIBS
Libraries to link to, for example: "-ldl"
LDFLAGS
flags passed to the linker
ARFLAGS
flags passed to ar(1)
C_INCLUDE_PATH
directories to add to the include path. (for c header files)
CPLUS_INCLUDE_PATH
directories to add to the include path. (for c++ header files)
LD_LIBRARY_PATH
directories to add to the link path.

Note : To specify multiple directories in a search path use a colon separated list : DIR1:DIR2:DIR3