CreateMake

CreateMake reads a file Project.PinkMake and creates a UNIX makefile for building the project. CreateMake writes the makefile to stdout; by convention, you should redirect the output to Project.Make.

Installation

CreateMake is located in /usr/taligent/bin and requires no installation. Make sure this directory is in your command search path.

Syntax

      CreateMake [sourcefile] [-fast] [-D define]... [-I includePath]...
                  [-noum] [-vers] > outputfile

Arguments -D define Includes the specified definition during processing.
-fast Preprocesses the source files and creates a single .C that #includes the source files to build each target. Results in faster builds, but is not to be used for final builds.
-target target Generate a makefile for a specific target. Currently used only by Taligent Operating System and the target is intel. Use Universal.Make.Intel instead of Universal.Make.
-I includePath Adds the path to the #include directory search list.
-noum Generates a makefile that does not rely on Universal.Make for processing.
-vers Echoes the current version and copyright information to stderr. This is the same header that appears at the top of created makefiles. If you use this option with no other parameters, the information echoes and CreateMake exits. Otherwise, the information echoes and processing continues.
outputfile The file containing the new makefile. If you omit outputfile, output goes to stdout.
sourcefile The input file to process is usually a *.PinkMake filename. If you omit sourcefile, CreateMake assumes the current directory name is the project. For example, if the current directory is /TestLib, the sourcefile is TestLib.PinkMake.

Usage

You do not usually call CreateMake directly; instead, you should use Makeit to automatically invoke CreateMake (see "Makeit" on page 83). Makeit executes CreateMake if the makefile is out-of-date or missing.

Makefile format

CreateMake generates a standard AIX makefile whose content depends on the targets in sourcefile. Each makefile supports the standard Taligent build steps (Includes, Objects, Exports, and Binaries).

Example

Simple projects require simple make commands. For example, to create a makefile named Sample.Make, which builds a target from the C source files in the working directory:

    CreateMake Sample.PinkMake > Sample.Make

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker