【clearmake】Starting a parallel build

1. Set the CCASE_HOST_TYPE variable. The value of this variable determines which build hosts file that clearmake looks for in your home directory:
Value Build hosts file that clearmake looks for
sun5 .bldhost.sun5
SUN5 .bldhost.SUN5
day .bldhost.day
night .bldhost.night

2. Invoke clearmake. To enable parallel building, use the –J command-line option or set the CCASE_CONC environment variable. To specify a build hosts file, use the –B option. To have clearmake choose a build hosts file, do not use –B.
 
For example, to specify a build hosts file and start a build that builds up to five targets concurrently, use one of the following methods:
% clearmake –J 5 –B ~/.bldhost.day my_target  (command-line options)

% setenv CCASE_CONC 5 % clearmake –B ~/.bldhost.day my_target(environment variable)

% setenv CCASE_HOST_TYPE day % clearmake –J 5 my_target(environment variable and command-line option)

% setenv CCASE_CONC 5 % setenv CCASE_HOST_TYPE day % clearmake my_target(environment variables)
 
Note: If you specify –J, but do not set the CCASE_HOST_TYPE variable or specify a build hosts file with –B, clearmake builds run in parallel on the local host.

你可能感兴趣的:(File,Build,sun,parallel,methods,variables)