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

 

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