Servertec Target
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Change Log
Future Plans
Knowledge Base
Reference Manual
Conventions
iMake
Touch
Make Files
Constants
Identifiers
Operators
Directives
Statements
Assignment
Inference
Target

Macros
Legal
Contact Us

 

Tells the make processor which file(s) a target depends on.

Syntax

    target: { srcfile { depfile }... }
       { command }...

Notes

    target the target file to build.
    srcfile the source file to use.
    depfile any file(s) which the target file depends on.
    command any command(s) to use to build the target from from the source file. If commands are specified any associated inferance rule will not be used. Commands must begin with a space or a tab character.

Notes

    After inference statement definitions, a make file contains one or more target definitions. Each target definition tells iMake the file to make and what source files it is build with.

    Targets can either be the name of the file to make or a label.

    iMake allows for a target to be specified, if none is then iMake uses all as the default target to make.

    Quotes [ " | ' ] enclosing file names in target definitions are removed when target is evaluated.

Example

    all:    pp.exe ss.exe
    
    pp.exe: pp.obj isup.lib
    pp.obj: pp.c pp.h $(INCLUDES)
    
    ss.exe: ss.obj isup.lib
    ss.obj: ss.c ss.h $(INCLUDES)
    

Example

    
    basedir = "c:\imake\samples\"
    
    all:    $(basedir)bin\hello.exe
    
    $(basedir)bin\hello.exe: $(basedir)obj\hello.obj
    $(basedir)obj\hello.obj: $(basedir)src\hello.c
    
    

Example

    
    all:    "c:\imake\samples\bin\hello.exe"
    
    "c:\imake\samples\bin\hello.exe": "c:\temp\hello.obj"
    "c:\temp\hello.obj": "c:\imake\samples\src\hello.c"
    
    
 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Sun Sep 04 14:56:00 EDT 2005