# define SVD_STANDALONE if not being compiled as part of qce++ CXX = g++ -DSVD_STANDALONE -std=c++17 -pedantic -Wall -O2 # -g H = svd.h OBJ = svd.o LIB = svd.a EXE = main cmain all: $(LIB) $(EXE) $(LIB): $(OBJ) Makefile ar rcs $(LIB) $(OBJ) $(OBJ): svd.cc svd.h Makefile $(CXX) -c svd.cc main: main.cc $(H) $(LIB) Makefile $(CXX) main.cc $(LIB) -o main -lm cmain: main.cc $(H) $(LIB) Makefile $(CXX) -DCOMPLEX main.cc $(LIB) -o cmain -lm check: find . -newer svd.tar.gz dist: clean rm -f svd.tar.gz cd .. && tar cf - --exclude=NEW --exclude=references svd | gzip > svd.tar.gz mv ../svd.tar.gz . clean: rm -f a.out core $(EXE) $(OBJ) $(LIB)