Skip to content

Instantly share code, notes, and snippets.

@indapa
Created April 28, 2014 14:13
Show Gist options
  • Save indapa/11373390 to your computer and use it in GitHub Desktop.
Save indapa/11373390 to your computer and use it in GitHub Desktop.
Makefile for compiling LASER v1.03 on Mac
all: laser
static: laser-static
G++FLAG = -g
G++FLAG = -O3
laser-static: laser.o
g++ -static -o laser laser.o \
/usr/local/lib/libgsl.a \
/Users/indapa/software/lapack-3.5.0/liblapack.a \
/usr/local/lib/libblas.a \
-lgfortran
laser : laser.o
g++ -o laser laser.o -framework accelerate \
-I/opt/local/include \
-L/opt/local/lib \
-L/usr/local/lib \
-L/Users/indapa/software/armadillo-4.200.0 \
-lgsl -lm -larmadillo -lblas -llapack
laser.o : laser.cpp
g++ $(G++FLAG) -c laser.cpp -I/Users/indapa/software/armadillo-4.200.0/include -I/opt/local/include -I/usr/local/include
clean:
rm *.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment