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_stack/validate/Makefile

36 lines
1.5 KiB

.PHONY: clean distribution
OBJECTS=serial mpnc_push mpmc_push upmc_push spinlock_push spinlock_eb_push \
mpmc_pop upmc_pop spinlock_pop spinlock_eb_pop \
mpmc_pair spinlock_pair spinlock_eb_pair pthreads_pair
all: $(OBJECTS)
serial: serial.c
$(CC) $(CFLAGS) -o serial serial.c
mpnc_push mpmc_push upmc_push spinlock_push spinlock_eb_push: push.c
$(CC) -lpthread -DMPNC -D_GNU_SOURCE $(CFLAGS) -o mpnc_push push.c
$(CC) -lpthread -DMPMC -D_GNU_SOURCE $(CFLAGS) -o mpmc_push push.c
$(CC) -lpthread -DUPMC -D_GNU_SOURCE $(CFLAGS) -o upmc_push push.c
$(CC) -lpthread -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_push push.c
$(CC) -lpthread -DSPINLOCK -DEB -D_GNU_SOURCE $(CFLAGS) -o spinlock_eb_push push.c
mpmc_pop upmc_pop spinlock_pop spinlock_eb_pop: pop.c
$(CC) -lpthread -DMPMC -D_GNU_SOURCE $(CFLAGS) -o mpmc_pop pop.c
$(CC) -lpthread -DUPMC -D_GNU_SOURCE $(CFLAGS) -o upmc_pop pop.c
$(CC) -lpthread -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_pop pop.c
$(CC) -lpthread -DEB -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_eb_pop pop.c
mpmc_pair spinlock_pair spinlock_eb_pair pthreads_pair: pair.c
$(CC) -lpthread -DMPMC -D_GNU_SOURCE $(CFLAGS) -o mpmc_pair pair.c
$(CC) -lpthread -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_pair pair.c
$(CC) -lpthread -DEB -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_eb_pair pair.c
$(CC) -lpthread -DPTHREADS -D_GNU_SOURCE $(CFLAGS) -o pthreads_pair pair.c
clean:
rm -rf *~ *.o *.dSYM $(OBJECTS)
include ../../../build/regressions.build
CFLAGS+=-lpthread