Main Page | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

common.sh File Reference


Detailed Description

Common build code for sample main() program.

This script is common to build.sh and clean.sh and is not designed to do anything on its own.

Each of these directories contains a build.sh script. In addition to these, an Eclipse project file is available in each for use with the Eclipse C/C++ plugin, so this entire directory tree may be imported wholesale into an Eclipse workspace and used without changes. (Eclipse 3.0.2 generated these files.) Notice that the Eclipse setup does not build the documentation set. This must be done manually with the top-level 'build.sh dox'.

Each of these directories also contains a clean.sh script which removes the output of build.sh.

Attention:
The configuration options stored by 'config.sh' into the file config/confopts.gcc are not directly available to Eclipse and must be manually entered there after they are established by config.sh. They should be entered in the project build parameters for C/C++ in the miscellaneous parameters section. For example, '-m32' and '-m64'. For a command line GCC invocation, the following is a convenient way to incorporate the options:
 *
 *   $ gcc `cat ../config/config_opts_always.gcc` \
 *         `cat ../config/config_opts_usually.gcc` -c filename.c ...
 *
 * 

Notice that this script may be run instead of or as well as an Eclipse build. The only difference is where the object files are stored.

See also:
main/build.sh

main/clean.sh

./build.sh

./clean.sh

./common.sh

Todo:
A Windows .BAT version of this script needs to be written

Control

$URL: https://svn.apache.org/path/name/common.sh $ $Id: common.sh 0 09/28/2005 dlydick $

Copyright 2005 The Apache Software Foundation or its licensors, as applicable.

Licensed under the Apache License, Version 2.0 ("the License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and limitations under the License.

Version:
$LastChangedRevision: 0 $
Date:
$LastChangedDate: 09/28/2005 $
Author:
$LastChangedBy: dlydick $ Original code contributed by Daniel Lydick on 09/28/2005.

Reference

Definition in file common.sh.

Go to the source code of this file.


Generated on Fri Sep 30 18:49:20 2005 by  doxygen 1.4.4