Servertec   Macros
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
Macros
Inference Macros
defined( )
exist( )

Sales
Legal
Feedback

 

A macro represents some set of operations that result in a value. Macros are either inference macros, environmental variables, predefined identifiers, predefined macros, user defined identifiers or user defined macros.

Syntax

    [ $inference | $( environmental ) | $( identifier ) |
    macro( { expression { , expression }... } ) ]

Notes

    macro a predefined or user defined macro,
    [ A..Z | a..z | _ ]{ A..Z | a..z | _ | 0..9 }...

    iMake predefines the following macros for use with the !if directive:
    defined( ) returns whether the specified identifier or macro exists.
    exist( ) returns whether the specified file exists.

    Can only be used with make preprocessor directives.

    inference a predefined inference macro.

    Can only be used with inference statements.

    environmental an environmental variable.

    By default iMake predefines identifiers for each environmental variables.

    The environmental variables available are system dependent.

    Can be used with inference and target statements.

    identifier a predefined or user defined identifier.

    Can be used with inference and target statements.

    New macros can be defined using the !define directive.

Example

    INCLUDES = global.h ppsup.h
    CC = cl /c
    
    .c.obj:
        $(CC) $*.c
    
    symtab.obj: $(CWD)symtab.c $(INCLUDES)
    
 top of page
 Built with iScript Copyright © 1997-1999 Servertec. All rights reserved.
Last Modified: Tue Jan 26 22:18:21 EST 1999