diff options
| author | Julian Weigt <juw@posteo.de> | 2026-02-09 18:51:46 +0100 |
|---|---|---|
| committer | Julian Weigt <juw@posteo.de> | 2026-02-09 19:13:37 +0100 |
| commit | 15cb5ccbbee7abb8ce253632bc2c4febdfaedca5 (patch) | |
| tree | 6c335dac9be90fed6e57e6b0e471f928872fb094 /makefile | |
| parent | 3397d3040a63d3afd9392fa465c8b6e1380dce71 (diff) | |
Add more comments to code.
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -3,14 +3,23 @@ CFILES = charf.c misc.h misc.c CDEPS = $(CFILES) misc.h CFLAGS = -lm -pthread -O3 -march=native -pipe -pedantic -Wextra#-Wall +# -lm: link math +# -pthread: use multithreading +# -O3: most aggressive optimization of binary +# -pipe: use RAM instead of disk for temporary files +# -pedantic: +# -Wextra: more warnings all: charf_approx charf_exact charf_error +# use floating point computations charf_approx: $(CDEPS) double.h double.c gcc -o $@ -D MODE=0 $(CFILES) double.c $(CFLAGS) +# use floating point computations with error bounds charf_error: $(CDEPS) double-error.h double-error.c gcc -o $@ -D MODE=1 $(CFILES) double-error.c $(CFLAGS) +# use fractions charf_exact: $(CDEPS) ratio.h ratio.c gcc -o $@ -D MODE=2 $(CFILES) ratio.c $(CFLAGS) |
