-
Notifications
You must be signed in to change notification settings - Fork 39
Building
The recommended build tool for MAD-X is make and the reference documentation is http://cern.ch/madx/development.html.
The recommended targets are, according to your platform:
make madx-linux64-gnu make madx-macosx64-gnu make madx-win64-gnu (requires MSYS2 and MinGW-w64)
For makefile documentation, please read make/README. For information and bug report, please contact [email protected]
- See below customised examples using madx Makefile (see also make/README):
-
- toggle yes/no flags to set up your configuration
- by default madx uses the fortran compiler for linking (i.e. LD = FC)
- note that gfortran 4.4 or higher is required to compile madx
clean all build files generated by Lahey 32 bits compiler for madx32 - depends on OSTYPE (detected), FC and ARCH !!!:
make FC=lf95 ARCH=32 cleanall
show all the information collected by the makefile for Intel 64 bits compilers (depends on user setup, ARCH is detected !!!):
make CC=icc FC=ifort infoall
use compilers families shortcuts (default COMP=gnu):
make COMP=gnu infoall # (equiv. to CC=gcc CXX=g++ FC=gfortran) make COMP=intel infoall # (equiv. to CC=icc CXX=icc FC=ifort on Unix) make COMP=intel infoall # (equiv. to CC=icl CXX=icl FC=ifort on Windows)
build madx32 static online version for debug using Nag fortran compiler/linker:
make FC=nagfor ARCH=32 STATIC=yes ONLINE=yes DEBUG=yes
build madx64 online version using Intel ifort compiler/linker and show commands:
make FC=ifort ONLINE=yes SHOW=yes
build madx32 static online version using gfortran44 as compiler/linker:
make FC=gfortran44 FCNAME=gfortran ARCH=32 STATIC=yes ONLINE=yes