-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (29 loc) · 1.39 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
CC=gcc
CFLAGS= -march=native -Wall -Wextra -std=c99 -O3
LIB= -lm
DEPS=Makefile worldline.h mersenne.h
default: Thirring Thirring_exp
tests/test_worldline: mersenne_inline.o tests/test_worldline.c worldline.c
$(CC) $(CFLAGS) -DTESTING tests/test_worldline.c worldline.c mersenne_inline.o -o tests/test_worldline -lcmocka -lm
.PHONY: tests
tests: tests/test_worldline
tests/test_worldline
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
montecarlo: montecarlo.o worldline.o mersenne_inline.o $(DEPS)
$(CC) $(CFLAGS) -o montecarlo montecarlo.o worldline.o mersenne_inline.o $(LIB)
LLR: LLR.o worldline.o mersenne_inline.o $(DEPS)
$(CC) $(CFLAGS) -o LLR LLR.o worldline.o mersenne_inline.o $(LIB)
wanglandau: wanglandau.o worldline.o mersenne_inline.o $(DEPS)
$(CC) $(CFLAGS) -o wanglandau wanglandau.o worldline.o mersenne_inline.o $(LIB)
measure_sector: measure_sector.o worldline.o mersenne_inline.o $(DEPS)
$(CC) $(CFLAGS) -o measure_sector measure_sector.o worldline.o mersenne_inline.o $(LIB)
gauged: gauged.o worldline.o mersenne_inline.o $(DEPS)
$(CC) $(CFLAGS) -o gauged gauged.o worldline.o mersenne_inline.o $(LIB)
montecarlobiased: montecarlobiased.o worldline.o mersenne_inline.o $(DEPS)
$(CC) $(CFLAGS) -o montecarlobiased montecarlobiased.o worldline.o mersenne_inline.o $(LIB)
clean:
rm -f *.o
cleanall:
rm -f *.o
rm -f montecarlo LLR wanglandau measure_sector montecarlobiased gauged