From a79c2f04682c44275d2415d39e6996802c4a83c4 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 1 May 2014 16:01:48 -0700 Subject: created a git repository for my thesis code. --- makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 makefile (limited to 'makefile') 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 -- cgit v1.2.3-54-g00ecf