summaryrefslogtreecommitdiff
path: root/makefile
blob: a55b47f7fa40ace2e391b5b9adfcc1ea40b64447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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: $(CDEPS) double.h double.c
	gcc -o $@ -D MODE=0 $(CFILES) double.c $(CFLAGS)

charf_error: $(CDEPS) double-error.h double-error.c
	gcc -o $@ -D MODE=1 $(CFILES) double-error.c $(CFLAGS)

charf_exact: $(CDEPS) ratio.h ratio.c
	gcc -o $@ -D MODE=2 $(CFILES) ratio.c $(CFLAGS)