############################################################################################### # # # BRATS INSTALLATION INSTRUCTIONS # # # # BRATS is dependent on 2 non standard libraries, both of which must first be obtained # # before installation. These are PGPLOT and Funtools. We have generally found that using # # standard repository tools (e.g. yum or apt-get) to install these libraries causes the # # least compatibility issues and provides the easiest installation. # # # # Other requirements, which come packaged with most Mac builds, include: GCC, OpenMP, GSL, # # and X11. # # # # To install BRATS, the paths to these dependencies must be updated below. The required # # paths are as follows: # # # # INSTALLFROM - Directory containing the install files # # INSTALLTO - Directory which you wish BRATS to be installed to # # PGPLOT - Directory where PGPLOT is installed # # LIBS - Directory containing standard libraries # # X11LIBS - Directory containing the X11 libraries # # GCC - Directory containing the GCC libraries # # INCLUDE - Directory containing any additional libraries or files # # # # It is also required that enviroment variables are set before running BRATS. We recommend # # adding these variables to your shell configurations files (e.g. .cshrc .bashrc). # # # # CSH Example: # # setenv LD_LIBRARY_PATH /usr/local/pgplot # # setenv PGPLOT_DIR /usr/local/pgplot/ # # # # BASH Example: # # export LD_LIBRARY_PATH='/usr/local/pgplot' # # export PGPLOT_DIR='/usr/local/pgplot/' # # # # Non-standard machine setups may require additional fine tuning of the commands directly. # # # # BRATS then be installed using the 'make brats'. # # # # ***** IMPORTANT ***** # # # # Support for external installation is currently limited. If you have any major issues, # # please get in touch via the BRATS website at http://www.askanastronomer.co.uk/brats # # However, please be aware the installation support will be done on an as and when basis. # # # # PGPLOT: http://www.astro.caltech.edu/~tjp/pgplot/ # # Funtools: https://www.cfa.harvard.edu/~john/funtools/ # # # ############################################################################################### INSTALLFROM = /Users/harwood/software/brats_240 INSTALLTO = /Users/harwood/software/brats PGPLOT = /usr/local/Cellar/pgplot LIBS = /usr/local/bin/funtools/include INCLUDE = /usr/local/bin/funtools/lib/ X11LIBS = /usr/x11R6/lib GCC = /usr/local/Cellar/gcc/4.9.1/lib/gcc/x86_64-apple-darwin13.4.0/4.9.1/include PREVVER = v2.3.1 VERSION = v2.4.0 brats: main.c mkdir -p $(INSTALLTO) gcc -fopenmp -w -g -O0 -c main.c -c $(INSTALLFROM)/synchrotron_src/synchrotron.c $(INSTALLFROM)/synchrotron_src/bessel.c $(INSTALLFROM)/synchrotron_src/gsl_integ.c -I$(INCLUDE) -I$(PGPLOT) -I $(GCC) -I$(INSTALLFROM)/synchrotron_src -I$(LIBS) gfortran -fopenmp main.o bessel.o gsl_integ.o -L$(X11LIBS) -L$(LIBS) -L$(PGPLOT) -L$(GCC) -L$(INCLUDE) -lcpgplot -lpgplot -lfuntools -lm -lX11 -lpng -lgsl -lgslcblas -o $(INSTALLTO)/brats cp $(INSTALLFROM)/updates.txt $(INSTALLTO)