From 824b9f9c709080e805e6e210b70051649cf21a07 Mon Sep 17 00:00:00 2001 From: retoor Date: Sat, 30 Nov 2024 20:58:00 +0100 Subject: [PATCH] Added rust version --- Makefile | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8d73c7a..a341744 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,21 @@ CC = gcc CFLAGS = -Wall -Werror -Wextra -Ofast -std=c2x -all: build run +all: build run run_rust build: @# removed -pedantic flag because it doesn't accept ' for formatting numbers @# using printf @$(CC) $(CFLAGS) isspam.c -o isspam + +build_risspam: + cd 12bitfloat_rust/risspam && cargo run --release && cp target/release/risspam ../../ + + run: run_spam wl run_not_spam - +run_risspam: run_spam_rispam run_not_spam_rispam + format: clang-format *.c *.h -i @@ -22,5 +28,12 @@ run_spam: run_not_spam: @./isspam ./not_spam/*.txt +run_spam_risspam: + @./risspam ./spam/*.txt + +run_not_spam_risspam: + @./risspam ./not_spam/*.txt + + valgrind: build - valgrind ./isspam ./spam/*.txt \ No newline at end of file + valgrind ./isspam ./spam/*.txt