Added rust version
This commit is contained in:
parent
d4059d4869
commit
824b9f9c70
19
Makefile
19
Makefile
@ -1,15 +1,21 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -Wall -Werror -Wextra -Ofast -std=c2x
|
CFLAGS = -Wall -Werror -Wextra -Ofast -std=c2x
|
||||||
|
|
||||||
all: build run
|
all: build run run_rust
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@# removed -pedantic flag because it doesn't accept ' for formatting numbers
|
@# removed -pedantic flag because it doesn't accept ' for formatting numbers
|
||||||
@# using printf
|
@# using printf
|
||||||
@$(CC) $(CFLAGS) isspam.c -o isspam
|
@$(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: run_spam wl run_not_spam
|
||||||
|
run_risspam: run_spam_rispam run_not_spam_rispam
|
||||||
|
|
||||||
format:
|
format:
|
||||||
clang-format *.c *.h -i
|
clang-format *.c *.h -i
|
||||||
|
|
||||||
@ -22,5 +28,12 @@ run_spam:
|
|||||||
run_not_spam:
|
run_not_spam:
|
||||||
@./isspam ./not_spam/*.txt
|
@./isspam ./not_spam/*.txt
|
||||||
|
|
||||||
|
run_spam_risspam:
|
||||||
|
@./risspam ./spam/*.txt
|
||||||
|
|
||||||
|
run_not_spam_risspam:
|
||||||
|
@./risspam ./not_spam/*.txt
|
||||||
|
|
||||||
|
|
||||||
valgrind: build
|
valgrind: build
|
||||||
valgrind ./isspam ./spam/*.txt
|
valgrind ./isspam ./spam/*.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user