LIB = ../lib CXX = g++ -I$(LIB) -std=c++17 -pedantic -Wall -O2 # -g H = $(LIB)/qce.h $(LIB)/fft.h $(LIB)/svd.h $(LIB)/simplex.h A = $(LIB)/qce.a EXES = count AMP add Grover SDC DJ-coin test # HCC HC all: $(EXES) count: count.cc $(H) $(A) Makefile $(CXX) count.cc $(A) -o count -lm AMP: AMP.cc $(H) $(A) Makefile $(CXX) AMP.cc $(A) -o AMP -lm 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