From 2d4e19872b18b1d440cf80b85c0f91838446ad17 Mon Sep 17 00:00:00 2001 From: jerly <2201210562@stu.pku.edu.cn> Date: Sun, 4 Jun 2023 23:06:15 +0800 Subject: [PATCH] [fix] modify Makefile to compile all targets program --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 99736aa..e8616ed 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,11 @@ CXX = g++ CXXFLAGS = -O3 TARGETS = eigen spmv spmv2 spmv3 spmv4 spmv5 +all: $(TARGETS) + $(TARGETS): %: %.cpp spmv_float.S - $(CXX) -fopenmp $(CXXFLAGS) -o $@ $< spmv_float.S + $(CXX) -fopenmp $(CXXFLAGS) -o $@ $< spmv_float.S .PHONY: clean clean: - rm -f $(TARGETS) + rm -f $(TARGETS) -- GitLab