Next: 3.2 Building things of Up: 3 Building more than Previous: 3 Building more than

3.1 Building many things of the same type

If you want to build more than one tool in the same GNUmakefile, you simply need to list all the tools you want to build in the TOOL_NAME variable. For example:
include $(GNUSTEP_MAKEFILES)/common.make

TOOL_NAME = Client Server
Client_OBJC_FILES = ClientAPI.m FrontEnd.m
Server_OBJC_FILES = ServerAPI.m BackEnd.m

include $(GNUSTEP_MAKEFILES)/tool.make
In this case, two tools, Client and Server, will be built. The tool Client will be built by compiling and linking the files ClientAPI.m and FrontEnd.m, while the Server will be built compiling and linking the files ServerAPI.m and BackEnd.m.

The same applies to applications, or libraries, or any other type of projects. For example, for applications you would list all the applications you want to build in the APP_NAME variable, and similarly for libraries.

Please note that when you specify multiple tools, apps or libraries to be built in the same GNUmakefile, they may be built in any order; starting with gnustep-make 2.4.0, they will even be built and linked in parallel if you are doing a parallel build (please check the forthcoming 'Parallel Building' Tutorial for more info).



2010-03-12