# # Copyright (C) 2022 Stephen Hewitt, cambridgeclarion.org # # This file is part of a programme to research fast Fermat factorisation algorithms. # # This is free software: you can redistribute it and/or modify # it under the terms of version 3 of the GNU General Public License as # published by the Free Software Foundation. # # It is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public Licence # along with this programme. If not, see . # # A copy of the licence is also available at # https://www.cambridgeclarion.org/download/GPLv3.txt # It has the following cryptographic hash # SHA256 3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986 CFLAGS=-g -Wreturn-type MAKEFLAGS=-r %.o: %.cc g++ -std=c++17 -c -O0 $(CFLAGS) -o $@ $*.cc %.o: %.c gcc -c -std=c99 -O0 $(CFLAGS) -o $@ $*.c BENCHMARK_OBJS=\ benchmark.o \ timings.o \ check.o \ zf1.o \ zf2.o \ TO_CLEAN=\ $(BENCHMARK_OBJS) \ benchmark \ generate \ generate.o \ pq.gh \ benchmark: $(BENCHMARK_OBJS) g++ $(BENCHMARK_OBJS) $(CFLAGS) $(LDFLAGS) -l:libgmp.a -o $@ generate: generate.o g++ generate.o $(CFLAGS) $(LDFLAGS) -l:libgmp.a -o $@ clean: rm -f $(TO_CLEAN) timings.o: timings.h benchmark.o: timings.h # a generated include file: pq.gh: generate rm -rf $@ ./generate > $@ || rm -rf $@ benchmark.o: pq.gh timings.o check.o zf1.o zf2.o: zf.h timings.o: lsd2series.gh timings.o: optima.gh