Skip to content

Instantly share code, notes, and snippets.

@an-dr
Created May 31, 2019 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save an-dr/2f3b7a1ddc66ccb9f278d133dfea7d64 to your computer and use it in GitHub Desktop.
Save an-dr/2f3b7a1ddc66ccb9f278d133dfea7d64 to your computer and use it in GitHub Desktop.
An alias for printing of all building variables set in the session (https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html)
alias a_print_build_vars="printf \"
Standart GNU variables for additional building rules:
=====================================================
ARFLAGS = $ARFLAGS
Flags to give the archive-maintaining program; default 'rv'.
ASFLAGS = $ASFLAGS
Extra flags to give to the assembler (when explicitly invoked on a '.s' or '.S' file).
CFLAGS = $CFLAGS
Extra flags to give to the C compiler.
CXXFLAGS = $CXXFLAGS
Extra flags to give to the C++ compiler.
COFLAGS = $COFLAGS
Extra flags to give to the RCS co program.
CPPFLAGS = $CPPFLAGS
Extra flags to give to the C preprocessor and programs that use it (the C and Fortran compilers).
FFLAGS = $FFLAGS
Extra flags to give to the Fortran compiler.
GFLAGS = $GFLAGS
Extra flags to give to the SCCS get program.
LDFLAGS = $LDFLAGS
Extra flags to give to compilers when they are supposed to invoke the linker, 'ld', such as -L. Libraries (-lfoo) should be added to the LDLIBS variable instead.
LDLIBS = $LDLIBS
Library flags or names given to compilers when they are supposed to invoke the linker, 'ld'. LOADLIBES is a deprecated (but still supported) alternative to LDLIBS. Non-library linker flags, such as -L, should go in the LDFLAGS variable.
LFLAGS = $LFLAGS
Extra flags to give to Lex.
YFLAGS = $YFLAGS
Extra flags to give to Yacc.
PFLAGS = $PFLAGS
Extra flags to give to the Pascal compiler.
RFLAGS = $RFLAGS
Extra flags to give to the Fortran compiler for Ratfor programs.
LINTFLAGS = $LINTFLAGS
Extra flags to give to lint.\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment