Next: 4 Aggregate projects Up: 3 Building more than Previous: 3.1 Building many things

3.2 Building things of different type

If you want to build a tool and an application at the same time, you include both tool.make and application.make at the same time. For example:
include $(GNUSTEP_MAKEFILES)/common.make

TOOL_NAME = CommandLineClient
CommandLineClient_OBJC_FILES = ClientAPI.m CommandLineFrontEnd.m

APP_NAME = GUIClient
GUIClient_OBJC_FILES = ClientAPI.m GUIClientFrontEnd.m

include $(GNUSTEP_MAKEFILES)/tool.make
include $(GNUSTEP_MAKEFILES)/application.make

Note that in this case the order in which you include tool.make and application.make is important: the tool and the application are built in the specified order. In the example above tool.make is included before application.make and hence the tool will be built before the application.



2010-03-12