next up previous contents index
Next: the runcxx program Up: Using Sophya Previous: Environment variables   Contents   Index

User makefiles

The file $DPCBASEREP/Include/MakefileUser.h defines the compilation flags and the list of Sophya libraries. It should be included in the user's makefile. The default compilation rules assumes that the object (.o) and executable files would be put in the following directories:
$HOME/`uname`-$EROSCXX/Objs
$HOME/`uname`-$EROSCXX/Exec. In the case of a Linux system and using g++ as the C++ compiler, these two directories would be translated to
$HOME/Linux-g++/Objs and $HOME/Linux-g++/Exec. The GNU make program should be used.

The file $DPCBASEREP/Include/makefile_auto defines the rules to compile a given source program, and link it against the Sophya libraries to produce an executable. The example below shows the steps to compile a program named trivial.cc .


csh> cp Examples/auto_makefile makefile
csh> cp Examples/ex1.cc trivial.cc
csh> make trivial
This command should compile the trivial.cc file, and link it against the sophya libraries. The file $DPCBASEREP/Include/ex_makefile provides another example makefile.



Reza Ansari
2001-03-07