ifdef I3_PORTS
gsl             =       $(I3_PORTS)
gsl_h           =       -I$(gsl)/include/gsl-1.8
gsl_lib         =       -L$(gsl)/lib/gsl-1.8 -lgsl -lgslcblas
else
gsl             =       /usr/local
gsl_h           =       -I$(gsl)/include/gsl
gsl_lib         =       -L$(gsl)/lib -lgsl -lgslcblas
endif

all:
	c++ mapx.cxx -o mapx -O2 -static $(gsl_h) $(gsl_lib)
