Files
isspam/Makefile
T
retoor 9967ea9a6c feat: add rust toolchain installation and build step for risspam in CI
Add curl to apt install list and install Rust nightly via rustup in the CI workflow. Update Makefile all target to include build_risspam before run_risspam, ensuring the Rust-based risspam binary is compiled before execution.
2024-11-30 20:10:24 +00:00

40 lines
710 B
Makefile

CC = gcc
CFLAGS = -Wall -Werror -Wextra -Ofast -std=c2x
all: build run valgrind build_risspam run_risspam
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_risspam run_not_spam_risspam
format:
clang-format *.c *.h -i
wl:
@echo ""
run_spam:
@./isspam ./spam/*.txt
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