CHARM++ provides a compiler called charmc in your charm/bin/ directory.
You can use this compiler to build your AMPI program the same way as other
compilers like cc. Especially, to build an AMPI program, a command line
option -language ampi should be applied. All the command line
flags that you would use for other compilers can be used with charmc the
same way. For example:
Shortcuts to the AMPI compiler are provided. If you have added charm/bin
into your $PATH environment variable, simply type mpicc, mpiCC,
mpif77, and mpif90 as provided by other MPI implementations.