P. 1
HPUX- Command A - M

HPUX- Command A - M

|Views: 3.067|Likes:
Publicado porT.S.A.Zahir Hussain

More info:

Published by: T.S.A.Zahir Hussain on Sep 02, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/15/2013

pdf

text

original

m

make(1)

make(1)

International Code Set Support

Single and multi-byte character code sets are supported.

RETURN VALUE

make returns a 0 upon successful completion or a value greater than 0 if an error occurred. If the -q
option is specified, make returns 0 if the target was up-to-date and a value greater than 0 if the target
was not up-to-date.

EXAMPLES

The following example creates an executable file from a C source code file without a makefile, if
program.c exists in the current directory:

make program

The following example shows more than one makefile specified and some command line macros defined,
and updates the first target in module1:

make -f module1 -f module2 RELEASE=1.0 CFLAGS=-g

The following example updates two targets in a default makefile currently residing in the current direc-
tory:

make clobber prog

The following example updates the prog target in a specified makefile, allows environment variables to
override any common variables in the makefile, clears the built-in suffix list and ignore the built-in rules,
and outputs exhaustive debugging information:

make -erd -f module1 prog

WARNINGS

Be wary of any file (such as an include file) whose access, modification, and last change times cannot be
altered by the make-ing process. For example, if a program depends on an include file that in turn
depends on another include file, and if one or both of these files are out-of-date, make tries to update
these files each time it is run, thus unnecessarily re-makeing up-to-date files that are dependent on the
include file. The solution is to manually update these files with the touch command before running
make (see touch(1)).

Some commands return non-zero status inappropriately; use -i to overcome the difficulty.

File names with the characters = : @ $ do not work.

Built-in commands that are directly executed by the shell such as cd (see cd(1)), are ineffectual across
new-lines in make.

The syntax (lib(file1.o file2.o file3.o) is illegal.

You cannot build lib(file.o) from file.o.

The macro $(a:.o=.c˜) does not work.

Expanded target lines cannot contain more than 16384 characters, including the terminating new-line.

If no makefile exists in the current directory, typing

make filename

results in make attempting to build filename from filename.c

If make is invoked in a shell script with a quoted argument that evaluates to NULL (such as $@), make
fails.

DEPENDENCIES
NFS Warning:

When comparing modification times of files located on different NFS servers, make behaves unpredict-
ably if the clocks on the servers are not synchronized.

FILES

[Mm]akefile
s.
[Mm]akefile
SCCS/s.
[Mm]akefile

HP-UX 11i Version 2: August 2003

− 10 −

Hewlett-Packard Company Section 1−−527

m

make(1)

make(1)

SEE ALSO

cc_bundled(1), cd(1), lex(1), mkmf(1), sh(1), environ(5), lang(5), regexp(5).

A Nutshell Handbook, Managing Projects With Make by Steve Talbot, Second Edition, O’Reilly & Associ-
ates, Inc., 1986.

STANDARDS CONFORMANCE

make: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2

You're Reading a Free Preview

Descarga
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->