Target types

CreateMake generates different build rules for each type of target. Here are a few common target descriptions.

Library

Generates rules to build a shared library.

      Library WidgetLib {
    
          Source:
              AbstractWidget.C
              Widget.C
          PublicHeaders:
              Widget.h
          Link:
              TestFrameworkLib
              ToolboxLib
      }

Program

Generates rules to build an application
.

      Program ShowWidget {
          Source:
              ShowWidget.C
      }

ParentObject

Generates rules to build and combine the source files. This target is frequently used to combine several projects into one larger library
.

      
    ParentObject FooBarLib {
          source:
              Foo.C
              Bar.C
          publicheaders:
              Foo.h
              Bar.h
      }

SubProjectList

A special type of target that lists all the subprojects
you want to build; it does not have a target name or any labels. Makeit uses this list when traversing the project hierarchy and builds only from those directories listed.

      SubProjectList {
          SubProj1
    
          SubProj2
      }

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker