Servertec Inference Macros
M E N U

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( )

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 iMake Copyright © 1997-1998 Servertec. All rights reserved.
Last Modified: Sun Aug 23 19:52:09 PDT 1998