diff options
| author | Julian Weigt <juw@posteo.de> | 2026-02-04 16:06:07 +0100 |
|---|---|---|
| committer | Julian Weigt <juw@posteo.de> | 2026-02-04 16:06:07 +0100 |
| commit | 25ef88ad223b6c92106fb45658a98a1a4b95c4a2 (patch) | |
| tree | 958d88bd7afa289baa97d95264ff9cd6f7f1a4e9 | |
| parent | d3c203e20f27bea8c0eaa50642b53e2b69d45392 (diff) | |
| -rw-r--r-- | makefile | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -1,12 +1,16 @@ #!/bin/sh +CFILES = charf.c misc.h misc.c +CDEPS = $(CFILES) misc.h +CFLAGS = -lm -pthread -O3 -march=native -pipe -pedantic -Wextra#-Wall + all: charf_approx charf_exact charf_error -charf_approx: charf.c misc.h misc.c double.h double.c - gcc -o $@ -D MODE=0 charf.c misc.c double.c -lm -pthread +charf_approx: $(CDEPS) double.h double.c + gcc -o $@ -D MODE=0 $(CFILES) double.c $(CFLAGS) -charf_error: charf.c misc.h misc.c double-error.h double-error.c - gcc -o $@ -D MODE=1 charf.c misc.c double-error.c -lm -pthread +charf_error: $(CDEPS) double-error.h double-error.c + gcc -o $@ -D MODE=1 $(CFILES) double-error.c $(CFLAGS) -charf_exact: charf.c misc.h misc.c ratio.h ratio.c - gcc -o $@ -D MODE=2 charf.c misc.c ratio.c -lm -pthread +charf_exact: $(CDEPS) ratio.h ratio.c + gcc -o $@ -D MODE=2 $(CFILES) ratio.c $(CFLAGS) |
