diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..a098946 --- /dev/null +++ b/makefile @@ -0,0 +1,32 @@ +# domain_tools - modulated domain toolkit +# See COPYING file for copyright and license details. + +CC = g++ +CFLAGS = -Ofast -std=c++11 -fopenmp +LDFLAGS = -lgslcblas -lgsl -latlas + +OBJ = domain_energy domain_minimize domain_eigen +BIN = bifurchaser initialize domain_increase domain_improve hessget gradget evolve eigenvalues + +all: opt ${OBJ:%=obj/%.o} ${BIN:%=bin/%} + +opt: + @echo build options: + @echo "CC = ${CC}" + @echo "CFLAGS = ${CFLAGS}" + @echo "LDFLAGS = ${LDFLAGS}" + +obj/%.o: src/%.cpp + @echo CC -c -o $@ + @${CC} ${CFLAGS} ${LDFLAGS} -c -o $@ $< + +bin/%: src/%.cpp ${OBJ:%=obj/%.o} + @echo CC -o $@ + @${CC} ${COBJ:%=obj/%.o} ${OBJ:%=obj/%.o} ${CFLAGS} ${LDFLAGS} -o $@ $< + +clean: + @echo cleaning: + @echo rm -f ${OBJ:%=obj/%.o} ${BIN:%=bin/%} + @rm -f ${OBJ:%=obj/%.o} ${BIN:%=bin/%} + +.PHONY: all clean |