Servertec   Inference 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

 

Inference macros are used to access the file(s) a target depends on.

Syntax

    $inference

Notes

    Inference Identifier Description Example
    $s dependency file c:\work\prog.c
    $d dependency drive c:
    $p dependency path c:\work\
    $f dependency file name prog.c
    $b dependency file base prog
    $e dependency file extension c
    $@ target c:\work\prog.exe
    $* target base path c:\work\prog
    $** all dependencies
    $? newer dependencies
    $< newer dependencies

    Can only be used with inference statements.

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