diff options
author | Jaron Kent-Dobias <jkentdobias@g.hmc.edu> | 2014-05-01 16:01:48 -0700 |
---|---|---|
committer | Jaron Kent-Dobias <jkentdobias@g.hmc.edu> | 2014-05-01 16:01:48 -0700 |
commit | a79c2f04682c44275d2415d39e6996802c4a83c4 (patch) | |
tree | d811bfc2f9e781c6b3d262c758223179f9b4f511 /makefile | |
download | code-a79c2f04682c44275d2415d39e6996802c4a83c4.tar.gz code-a79c2f04682c44275d2415d39e6996802c4a83c4.tar.bz2 code-a79c2f04682c44275d2415d39e6996802c4a83c4.zip |
created a git repository for my thesis code.
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 |