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

Legal
Contact Us

 

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

Syntax

    [ $inference | $( environment ) | $( 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.

    environment an environment variable.

    By default iMake predefines identifiers for each environment variables.

    The environment 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
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Sun Sep 04 14:56:00 EDT 2005