LIB = ../lib CXX = g++ -I$(LIB) -std=c++17 -pedantic -Wall -O2 # -g H = $(LIB)/qce.h $(LIB)/fft.h $(LIB)/svd.h A = $(LIB)/qce.a EXES = add Grover SDC DJ-coin test # HCC HC all: $(EXES) add: add.cc $(H) $(A) Makefile $(CXX) add.cc $(A) -o add -lm Grover: Grover.cc $(H) $(A) Makefile $(CXX) Grover.cc $(A) -o Grover -lm SDC: SDC.cc $(H) $(A) Makefile $(CXX) SDC.cc $(A) -o SDC -lm DJ-coin: DJ-coin.cc $(H) $(A) Makefile $(CXX) DJ-coin.cc $(A) -o DJ-coin -lm test: test.cc $(H) $(A) Makefile $(CXX) test.cc $(A) -o test -lm HCC: HCC.cc $(H) $(A) Makefile $(CXX) HCC.cc $(A) -o HCC -lm # C version of HCC for timing comparisons CC = gcc -I../../qce/lib -O2 -std=c11 -pedantic -Wall # -g CLIB = ../../qce/lib HC: HC.c $(CLIB)/qce.a Makefile $(CC) HC.c $(CLIB)/qce.a -o HC -lm clean: rm -f $(EXES) ../data/j.gif ../data/tmp.out