Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland MAKE v4.0 - single targets with multiple rules http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Single targets with multiple rules
- - - - - - - - - - - - - - - - - -
A single target can have more than one explicit rule. You must use the
double colon (::) after the target name to tell MAKE to expect multiple
explicit rules. The following example shows how one target can have
multiple rules and commands:

  .cpp.obj:
        bcc -c -ncobj $<

  .asm.obj:
        tasm  /mx $<, asmobj\\

  mylib.lib :: f1.obj f2.obj
        echo Adding C files
        tlib mylib -+cobj\f1 -+cobj\f2

  mylib.lib :: f3.obj f4.obj
        echo Adding ASM files
        tlib mylib -+asmobj\f3 -+asmobj\f4

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson