From 8364b9a96b8f60a3effbe8843c89717a89a8fc5e Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 3 Apr 2025 15:45:29 -0300 Subject: Split functions into library to deduplicate code --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c013825..d4c15bf 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ all: walk correlations integrator fourier_integrator get_energy -CC := clang++ -std=c++17 -Wno-mathematical-notation-identifier-extension -O3 -march=native -mtune=native -fopenmp -lfftw3 -g +CC := clang++ -std=c++17 -flto -Wno-mathematical-notation-identifier-extension -O3 -march=native -mtune=native -fopenmp walk: walk.cpp $(CC) walk.cpp -o walk @@ -11,8 +11,11 @@ correlations: correlations.cpp integrator: integrator.cpp $(CC) integrator.cpp -o integrator -fourier_integrator: fourier_integrator.cpp - $(CC) fourier_integrator.cpp -o fourier_integrator +fourier.o: fourier.cpp fourier.hpp + $(CC) fourier.cpp -c -o fourier.o -get_energy: get_energy.cpp - $(CC) get_energy.cpp -o get_energy +fourier_integrator: fourier_integrator.cpp fourier.hpp fourier.o + $(CC) fourier_integrator.cpp fourier.o -lfftw3 -o fourier_integrator + +get_energy: get_energy.cpp fourier.hpp fourier.o + $(CC) get_energy.cpp fourier.o -lfftw3 -o get_energy -- cgit v1.2.3-70-g09d2