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

Macros
Sales
Legal
Feedback

 

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

Syntax

    target: srcfile { depfile }...

Notes

    target the target file to build.
    srcfile the source file to use.
    depfile any file(s) which the target file depends on.

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
 Built with iScript Copyright © 1997-1999 Servertec. All rights reserved.
Last Modified: Tue Jan 26 22:18:21 EST 1999