19 lines
332 B
Makefile
19 lines
332 B
Makefile
|
CFLAGSD=-g -ggdb -Wall -Wextra -Werror
|
||
|
CFLAGSF=-Wall -Wextra -Ofast -march=native -mtune=native -funroll-all-loops
|
||
|
FILES=src/sieve.c src/sieve.h src/prime_ex.c
|
||
|
|
||
|
all: fast
|
||
|
|
||
|
debug: $(FILES)
|
||
|
gcc $(CFLAGSD) $(FILES) -o debugOut
|
||
|
|
||
|
fast: $(FILES)
|
||
|
gcc $(CFLAGSF) $(FILES) -o fastOut
|
||
|
|
||
|
clean:
|
||
|
rm -rf *.o debugOut fastOut prime.txt
|
||
|
|
||
|
|
||
|
|
||
|
|