You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
878 B
30 lines
878 B
.PHONY: check clean distribution
|
|
|
|
OBJECTS=ck_fifo_spsc ck_fifo_mpmc ck_fifo_spsc_iterator ck_fifo_mpmc_iterator
|
|
|
|
all: $(OBJECTS)
|
|
|
|
check: all
|
|
./ck_fifo_spsc $(CORES) 1 64000
|
|
./ck_fifo_mpmc $(CORES) 1 16000
|
|
./ck_fifo_spsc_iterator
|
|
./ck_fifo_mpmc_iterator
|
|
|
|
ck_fifo_spsc: ck_fifo_spsc.c ../../../include/ck_fifo.h
|
|
$(CC) $(CFLAGS) -o ck_fifo_spsc ck_fifo_spsc.c
|
|
|
|
ck_fifo_mpmc: ck_fifo_mpmc.c ../../../include/ck_fifo.h
|
|
$(CC) $(CFLAGS) -o ck_fifo_mpmc ck_fifo_mpmc.c
|
|
|
|
ck_fifo_spsc_iterator: ck_fifo_spsc_iterator.c ../../../include/ck_fifo.h
|
|
$(CC) $(CFLAGS) -o ck_fifo_spsc_iterator ck_fifo_spsc_iterator.c
|
|
|
|
ck_fifo_mpmc_iterator: ck_fifo_mpmc_iterator.c ../../../include/ck_fifo.h
|
|
$(CC) $(CFLAGS) -o ck_fifo_mpmc_iterator ck_fifo_mpmc_iterator.c
|
|
|
|
clean:
|
|
rm -rf *.dSYM *.exe *~ *.o $(OBJECTS)
|
|
|
|
include ../../../build/regressions.build
|
|
CFLAGS+=$(PTHREAD_CFLAGS) -D_GNU_SOURCE
|