CFLAGS

From VrlWiki
Jump to navigation Jump to search
CXXFLAGS += <C++ Compiler flags>  ...

Set CXXFLAGS when you want to explicitly set C++ compiler options. Use the "+=" assignment unless you explicitly intend to clear prior settings. This setting is for advanced users that understand command line options for the compiler on the platforms they work with.


Examples:

CXXFLAGS += -L$(G_IMPORT)/sdl/sdl_1.2.13_gcc3/lib   -lSDL              # Linux
CXXFLAGS += -LIBPATH:"$(G_IMPORT)/sdl/sdl_1.2.13_gcc3/lib"  SDL.lib    # Windows