CopperSpice Overview  1.5.1
Compile & Link

A Makefile must be generated before you can compile and link your application. This process is done by the Autotools system. All Autotools commands are run from a Bash prompt.

Note
For information about installing a Bourne shell (Bash) on Windows, refer to Building for Windows.
For Mac OS X, refer to Compiling on Mac OS X for additional configure requirements.

(1)  Run Autoreconf from your project directory with the syntax shown below. This step is run once or anytime configure.ac file is modified.

autoreconf -i


(2)  Run configure from your project directory with the syntax shown below. This step is run once or anytime the configure.ac file is changed.

./configure


(3)  To build your application from your project directory use the syntax shown below. This step is run every time your project source is modified or a new build is required.

make

To build your application and deploy to the location specified in your bin/Makefile.am use the following command.

make install

This following command is run from your project directory. It will delete all of the object and intermediate files in the bin folder. The next time you run 'make' every file will be compiled, since they were deleted.

make clean


Compiling on Mac OS X

On Mac OS X clang must be used to compile your application. To use clang you will need to add the following environment variables.

  • CC=clang
  • CXX=clang++
  • OBJCXX=clang++

Alternatively, you can create a file like config-myApp in your project folder. This file can pass the prefix and any other required options to configure. The following is a sample of a typical config-myApp file.

./configure CC=clang CXX=clang++ OBJCXX=clang++ --prefix $HOME/cs_lib

To run configure using the config-myApp file, use the following command and syntax from your project folder.

./config-myApp