| 1 |
.PHONY: check clean distribution |
| 2 |
|
| 3 |
OBJECTS=ck_fifo_spsc ck_fifo_mpmc ck_fifo_spsc_iterator ck_fifo_mpmc_iterator |
| 4 |
|
| 5 |
all: $(OBJECTS) |
| 6 |
|
| 7 |
check: all |
| 8 |
./ck_fifo_spsc $(CORES) 1 64000 |
| 9 |
./ck_fifo_mpmc $(CORES) 1 16000 |
| 10 |
./ck_fifo_spsc_iterator |
| 11 |
./ck_fifo_mpmc_iterator |
| 12 |
|
| 13 |
ck_fifo_spsc: ck_fifo_spsc.c ../../../include/ck_fifo.h |
| 14 |
$(CC) $(CFLAGS) -o ck_fifo_spsc ck_fifo_spsc.c |
| 15 |
|
| 16 |
ck_fifo_mpmc: ck_fifo_mpmc.c ../../../include/ck_fifo.h |
| 17 |
$(CC) $(CFLAGS) -o ck_fifo_mpmc ck_fifo_mpmc.c |
| 18 |
|
| 19 |
ck_fifo_spsc_iterator: ck_fifo_spsc_iterator.c ../../../include/ck_fifo.h |
| 20 |
$(CC) $(CFLAGS) -o ck_fifo_spsc_iterator ck_fifo_spsc_iterator.c |
| 21 |
|
| 22 |
ck_fifo_mpmc_iterator: ck_fifo_mpmc_iterator.c ../../../include/ck_fifo.h |
| 23 |
$(CC) $(CFLAGS) -o ck_fifo_mpmc_iterator ck_fifo_mpmc_iterator.c |
| 24 |
|
| 25 |
clean: |
| 26 |
rm -rf *.dSYM *.exe *~ *.o $(OBJECTS) |
| 27 |
|
| 28 |
include ../../../build/regressions.build |
| 29 |
CFLAGS+=$(PTHREAD_CFLAGS) -D_GNU_SOURCE |