summaryrefslogtreecommitdiffstats
path: root/regressions/ck_ring/validate/Makefile
blob: f849a56b416633bf064768dd96c8470adf6643eb (plain)
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
.PHONY: check clean distribution

OBJECTS=ck_ring_spsc ck_ring_spmc ck_ring_spmc_template ck_ring_mpmc \
	ck_ring_mpmc_template
SIZE=2048

all: $(OBJECTS)

check: all
	./ck_ring_spsc $(CORES) 1 $(SIZE)
	./ck_ring_spmc $(CORES) 1 $(SIZE)
	./ck_ring_spmc_template $(CORES) 1 $(SIZE)
	./ck_ring_mpmc $(CORES) 1 $(SIZE)
	./ck_ring_mpmc_template $(CORES) 1 $(SIZE)

ck_ring_spsc: ck_ring_spsc.c ../../../include/ck_ring.h
	$(CC) $(CFLAGS) -o ck_ring_spsc ck_ring_spsc.c \
		../../../src/ck_barrier_centralized.c

ck_ring_spmc: ck_ring_spmc.c ../../../include/ck_ring.h
	$(CC) $(CFLAGS) -o ck_ring_spmc ck_ring_spmc.c \
		../../../src/ck_barrier_centralized.c

ck_ring_mpmc: ck_ring_mpmc.c ../../../include/ck_ring.h
	$(CC) $(CFLAGS) -o ck_ring_mpmc ck_ring_mpmc.c \
		../../../src/ck_barrier_centralized.c

ck_ring_mpmc_template: ck_ring_mpmc_template.c ../../../include/ck_ring.h
	$(CC) $(CFLAGS) -o ck_ring_mpmc_template ck_ring_mpmc_template.c \
		../../../src/ck_barrier_centralized.c

ck_ring_spmc_template: ck_ring_spmc_template.c ../../../include/ck_ring.h
	$(CC) $(CFLAGS) -o ck_ring_spmc_template ck_ring_spmc_template.c \
		../../../src/ck_barrier_centralized.c

clean:
	rm -rf *~ *.o $(OBJECTS) *.dSYM *.exe

include ../../../build/regressions.build
CFLAGS+=$(PTHREAD_CFLAGS) -D_GNU_SOURCE