max@0: # NOTE: max@0: # This file is mainly useful when doing a manual installation of Armadillo. max@0: # It is overwritten by CMake when doing an automatic installation. max@0: # max@0: # You may need to edit this file to reflect the type and capabilities max@0: # of your system. The defaults are for a Linux system and will need max@0: # to be changed for other systems (e.g. Mac OS X). max@0: max@0: max@0: CXX=g++ max@0: #CXX=g++-4.2 max@0: ## Under MacOS you may have an old compiler as default (e.g. GCC 4.0). max@0: ## However, GCC 4.2 or later is available and preferable due to better max@0: ## handling of template code. max@0: max@0: #CXX=CC max@0: ## When using the Sun Studio compiler max@0: max@0: max@0: ARMA_INCLUDE_FLAG = -I ../include max@0: ## If you've installed Armadillo's headers manually, max@0: ## you may need to tell the compiler where they are. max@0: ## For example, change ../include to /usr/local/include max@0: ## and uncomment the above line. max@0: max@0: max@0: #BOOST_INCLUDE_FLAG = -I /usr/include max@0: ## If you have Boost libraries, change /usr/include max@0: ## to point to where they are installed and uncomment max@0: ## the above line. max@0: max@0: max@0: #EXTRA_LIB_FLAGS = -llapack -lblas max@0: ## The above line is an example of the extra libraries max@0: ## that can be used by Armadillo. You will also need max@0: ## to modify "include/armadillo_bits/config.hpp" max@0: ## to indicate which extra libraries are present. max@0: ## If you're using Mac OS, comment out the line and max@0: ## instead use the line below. max@0: max@0: max@0: #EXTRA_LIB_FLAGS = -framework Accelerate max@0: ## Uncomment the above line when using Mac OS max@0: ## and modify "include/armadillo_bits/config.hpp" max@0: ## to indicate that LAPACK and BLAS libraries max@0: ## are present max@0: max@0: max@0: #EXTRA_LIB_FLAGS = -library=sunperf max@0: ## When using the Sun Studio compiler max@0: max@0: max@0: LIB_FLAGS = $(EXTRA_LIB_FLAGS) max@0: ## NOTE: on Ubuntu and Debian based systems you may need to add max@0: ## -lgfortran to LIB_FLAGS max@0: max@0: max@0: OPT = -O1 max@0: ## As the Armadillo library uses recursive templates, max@0: ## compilation times depend on the level of optimisation: max@0: ## max@0: ## -O0: quick compilation, but the resulting program will be slow max@0: ## -O1: produces programs which achieve most of the possible speedup max@0: ## -O3: produces programs which have almost all possible speedups, max@0: ## but compilation takes considerably longer max@0: max@0: max@0: #OPT = -xO4 -xannotate=no max@0: ## When using the Sun Studio compiler max@0: max@0: max@0: #EXTRA_OPT = -fwhole-program max@0: ## Uncomment the above line if you're compiling max@0: ## all source files into one program in a single hit. max@0: max@0: max@0: #DEBUG = -DARMA_EXTRA_DEBUG max@0: ## Uncomment the above line to enable low-level max@0: ## debugging. Lots of debugging information will max@0: ## be printed when a compiled program is run. max@0: ## Please enable this option when reporting bugs. max@0: max@0: max@0: #FINAL = -DARMA_NO_DEBUG max@0: ## Uncomment the above line to disable Armadillo's checks. max@0: ## DANGEROUS! Not recommended unless your code has been max@0: ## thoroughly tested. max@0: max@0: max@0: # max@0: # max@0: # max@0: max@0: CXXFLAGS = $(ARMA_INCLUDE_FLAG) $(BOOST_INCLUDE_FLAG) $(DEBUG) $(FINAL) $(OPT) $(EXTRA_OPT) max@0: max@0: all: example1 example2 max@0: max@0: example1: example1.cpp max@0: $(CXX) $(CXXFLAGS) -o $@ $< $(LIB_FLAGS) max@0: max@0: example2: example2.cpp max@0: $(CXX) $(CXXFLAGS) -o $@ $< $(LIB_FLAGS) max@0: max@0: max@0: .PHONY: clean max@0: max@0: clean: max@0: rm -f example1 example2 max@0: