isspam/Makefile

26 lines
422 B
Makefile
Raw Permalink Normal View History

2024-11-28 17:39:34 +00:00
CC = gcc
CFLAGS = -Wall -Werror -Wextra -Ofast -std=c2x
all: build run
build:
@# removed -pedantic flag because it doesn't accept ' for formatting numbers
@# using printf
@$(CC) $(CFLAGS) isspam.c -o isspam
run: run_spam wl run_not_spam
format:
clang-format *.c *.h -i
wl:
@echo ""
run_spam:
@./isspam ./spam/*.txt
run_not_spam:
@./isspam ./not_spam/*.txt
valgrind: build
valgrind ./isspam ./spam/*.txt