Previous: , Up: Common Variables  


1.7.5 Overridable Flags

Variable: OBJCFLAGS

OBJCFLAGS are flags that are passed to the compiler when compiling Objective-C files. The user can override this variable when running make and specify different flags as the following command illustrates:

make OBJCFLAGS="-Wno-implicit -Wno-protocol"
Variable: CFLAGS

CFLAGS are flags that are passed to the compiler when compiling C files. The user can override this variable when running make and specify different flags as the following command illustrates:

make CFLAGS="-Wall"
Variable: OPTFLAG

OPTFLAG is the flag used to indicate the optimization level that the compiler should perform when compiling Objective-C and C files; this flag is set to ‘-O2’ by default, but the user can override this setting when running make as the following command illustrates:

make OPTFLAG=

This command sets the optimization flag to be empty so that no optimization will be performed by the compiler.

Variable: GNUSTEP_INSTALLATION_DOMAIN

GNUSTEP_INSTALLATION_DOMAIN is the domain where the package will install its files; overriding this variable when running make will change all of the variables within the Makefile Package that depend upon it; the following command illustrates the use of this variable:

make GNUSTEP_INSTALLATION_DOMAIN=SYSTEM

This command states that the SYSTEM domain should be used as the installation root directory; in particualr applications in the package will be installed in the $GNUSTEP_SYSTEM_APPS directory, libraries in the package will be installed under the $GNUSTEP_SYSTEM_LIBRARIES directory, command line tools will be installed under the $GNUSTEP_SYSTEM_TOOLS directory, etc. Depending on the filesystem layout, the various directories may be located anywhere, which is why it’s important to also refer to them by using variables such as GNUSTEP_APPS, GNUSTEP_LIBRARIES and GNUSTEP_TOOLS, which automatically point to the right directory on disk for this filesystem layout and installation domain.

By default the Makefile Package sets GNUSTEP_INSTALLATION_DOMAIN to LOCAL.


Previous: , Up: Common Variables