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.
ck/regressions/ck_ring/validate/Makefile

41 lines
1.3 KiB

.PHONY: check clean distribution
14 years ago
OBJECTS=ck_ring_spsc ck_ring_spmc ck_ring_spmc_template ck_ring_mpmc \
ck_ring_mpmc_template
SIZE=2048
14 years ago
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)
14 years ago
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
14 years ago
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
14 years ago
clean:
rm -rf *~ *.o $(OBJECTS) *.dSYM *.exe
14 years ago
include ../../../build/regressions.build
CFLAGS+=$(PTHREAD_CFLAGS) -D_GNU_SOURCE