Added free option
parent
eba796a33d
commit
2462e543fa
8
Makefile
8
Makefile
|
@ -16,8 +16,10 @@
|
|||
|
||||
printing ?= 0
|
||||
timing ?= 0
|
||||
assume_safe ?= 0
|
||||
assume ?= 0
|
||||
find_one ?= 0
|
||||
fancy ?= 0
|
||||
free ?= 0
|
||||
|
||||
# note: setting deleted to 0 doesn't get any extra words,
|
||||
# but does just about triple the execution time.
|
||||
|
@ -26,7 +28,7 @@ delete ?= 1
|
|||
|
||||
CC := clang
|
||||
|
||||
MACROS := -DPRINT_INTERMEDIATES=$(printing) -DTIME_SECTIONS=$(timing) -DASSUME_SAFE=$(assume_safe) -DFIND_ONE=$(find_one) -DDELETE=$(delete)
|
||||
MACROS := -DPRINT_INTERMEDIATES=$(printing) -DTIME_SECTIONS=$(timing) -Dassume=$(assume) -DFIND_ONE=$(find_one) -DDELETE=$(delete) -DFANCYPRINT=$(fancy) -DFREE=$(free)
|
||||
|
||||
FLAGS := -Ofast -Wall -Werror
|
||||
OUTPUT := -o bw
|
||||
|
@ -50,7 +52,7 @@ run: bw wordleWords.txt
|
|||
|
||||
.PHONY: fast
|
||||
fast: solvedle.c boilerplate.c
|
||||
$(CC) -c $(FLAGS) -DPRINT_INTERMEDIATES=0 -DTIME_SECTIONS=0 -DASSUME_SAFE=1 -DFIND_ONE=1 -DDELETE=1 $^
|
||||
$(CC) $(FLAGS) -DPRINT_INTERMEDIATES=0 -DTIME_SECTIONS=0 -Dassume=1 -DFIND_ONE=1 -DDELETE=1 -DFANCYPRINT=0 -DFREE=0 -c $^
|
||||
make bw
|
||||
|
||||
.PHONY: clean
|
||||
|
|
Loading…
Reference in New Issue