Servertec   Make Files
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
Sales
Legal
Feedback

 

Make files are text files which tell iMake how to generate target files from source files.

Syntax

    { directive | statement }...

Notes

    directive a command to the make preprocessor.
    statement a command to the make processor.

    A \ (line continuation character) may be used at the end of a directive or statement to indicate that the directive or statement continues on the next line. This operator is normally used to break up long lines into multiple small lines.

Example

    #sample makefile
    
    #-----------------------------
    INCLUDES = global.h ppsup.h
    LIBS = global.lib ppsup.lib
    #-----------------------------
    .c.obj:
        cl /c $*.c
    
    .obj.lib:
        lib /out $*.lib $*.obj
    
    .obj.exe:
        link $*.obj $(LIBS)
    
    #-----------------------------
    all:        pp.exe
    
    #-----------------------------
    pp.exe:     pp.obj $(LIBS)
    pp.obj:     pp.c pp.h $(INCLUDES)
    
    #-----------------------------
    ppsup.lib:  ppexpr.obj symtab.obj
    ppexpr.obj: ppexpr.c $(INCLUDES)
    symtab.obj: 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