Next: , Previous: , Up: objc.make   [Contents]


1.4.11.1 Project Variables

Most of the project variables work the same as in Library projects (see library.make).

Objective-C program project: OBJC_PROGRAM_NAME

OBJC_PROGRAM_NAME is the list of names of Objective-C programs that are to be built; each name should be unique as it is the name of the executable file that will be generated.

Objective-C program project: OBJC_LIBS

xxx_OBJC_LIBS is the list of additional libraries that the linker will use when linking to create the xxx Objective-C program executable file. These libraries are specific to the xxx Objective-C program, see ADDITIONAL_OBJC_LIBS, to see how to specify additional global libraries. These libraries are placed before all of the Objective-C Runtime and system libraries, and before the global libraries specified with ADDITIONAL_OBJC_LIBS, so that they will be searched first when linking. The additional libraries should be specified as ‘-l’ flags to the linker as the following example illustrates. Replace the xxx with the name of the program as listed by the OBJC_PROGRAM_NAME variable.