diff --git a/regressions/ck_barrier/benchmark/Makefile b/regressions/ck_barrier/benchmark/Makefile index 8b8abca..b74a0dd 100644 --- a/regressions/ck_barrier/benchmark/Makefile +++ b/regressions/ck_barrier/benchmark/Makefile @@ -11,5 +11,5 @@ clean: rm -rf *.dSYM *~ *.o $(OBJECTS) include ../../../build/regressions.build -CFLAGS+=-D_GNU_SOURCE -lpthread +CFLAGS+=-D_GNU_SOURCE -pthread diff --git a/regressions/ck_barrier/validate/Makefile b/regressions/ck_barrier/validate/Makefile index ec7754b..76d42b8 100644 --- a/regressions/ck_barrier/validate/Makefile +++ b/regressions/ck_barrier/validate/Makefile @@ -23,4 +23,4 @@ clean: rm -rf *.dSYM *~ *.o $(OBJECTS) include ../../../build/regressions.build -CFLAGS+=-D_GNU_SOURCE -lpthread -ggdb -O0 +CFLAGS+=-D_GNU_SOURCE -pthread -ggdb -O0 diff --git a/regressions/ck_bytelock/benchmark/Makefile b/regressions/ck_bytelock/benchmark/Makefile index e65fdd7..967e271 100644 --- a/regressions/ck_bytelock/benchmark/Makefile +++ b/regressions/ck_bytelock/benchmark/Makefile @@ -5,7 +5,7 @@ OBJECTS=latency all: $(OBJECTS) latency: latency.c - $(CC) $(CFLAGS) -o latency latency.c -lpthread + $(CC) $(CFLAGS) -o latency latency.c -pthread clean: rm -rf *.dSYM *~ *.o $(OBJECTS) diff --git a/regressions/ck_bytelock/validate/Makefile b/regressions/ck_bytelock/validate/Makefile index f59cac8..02b795d 100644 --- a/regressions/ck_bytelock/validate/Makefile +++ b/regressions/ck_bytelock/validate/Makefile @@ -5,7 +5,7 @@ OBJECTS=validate all: $(OBJECTS) validate: validate.c - $(CC) $(CFLAGS) -o validate validate.c -lpthread + $(CC) $(CFLAGS) -o validate validate.c -pthread clean: rm -rf *.dSYM *~ *.o $(OBJECTS) diff --git a/regressions/ck_epoch/validate/Makefile b/regressions/ck_epoch/validate/Makefile index e401585..d87eb39 100644 --- a/regressions/ck_epoch/validate/Makefile +++ b/regressions/ck_epoch/validate/Makefile @@ -11,4 +11,4 @@ clean: rm -rf *~ *.o $(OBJECTS) *.dSYM include ../../../build/regressions.build -CFLAGS+=-lpthread -D_GNU_SOURCE +CFLAGS+=-pthread -D_GNU_SOURCE diff --git a/regressions/ck_fifo/benchmark/Makefile b/regressions/ck_fifo/benchmark/Makefile index 0f7019d..61c3f6e 100644 --- a/regressions/ck_fifo/benchmark/Makefile +++ b/regressions/ck_fifo/benchmark/Makefile @@ -11,4 +11,4 @@ clean: rm -rf *~ *.o *.dSYM $(OBJECTS) include ../../../build/regressions.build -CFLAGS+=-lpthread -D_GNU_SOURCE +CFLAGS+=-pthread -D_GNU_SOURCE diff --git a/regressions/ck_fifo/validate/Makefile b/regressions/ck_fifo/validate/Makefile index 6486ea4..5b8bad8 100644 --- a/regressions/ck_fifo/validate/Makefile +++ b/regressions/ck_fifo/validate/Makefile @@ -20,4 +20,4 @@ clean: rm -rf *.dSYM *~ *.o $(OBJECTS) include ../../../build/regressions.build -CFLAGS+=-lpthread -D_GNU_SOURCE +CFLAGS+=-pthread -D_GNU_SOURCE diff --git a/regressions/ck_hp/benchmark/Makefile b/regressions/ck_hp/benchmark/Makefile index 794c813..b1edcd0 100644 --- a/regressions/ck_hp/benchmark/Makefile +++ b/regressions/ck_hp/benchmark/Makefile @@ -14,4 +14,4 @@ clean: rm -rf *~ *.o *.dSYM $(OBJECTS) include ../../../build/regressions.build -CFLAGS+=-lpthread -D_GNU_SOURCE +CFLAGS+=-pthread -D_GNU_SOURCE diff --git a/regressions/ck_hp/validate/Makefile b/regressions/ck_hp/validate/Makefile index 92db453..6716d12 100644 --- a/regressions/ck_hp/validate/Makefile +++ b/regressions/ck_hp/validate/Makefile @@ -20,4 +20,4 @@ clean: rm -rf *~ *.o *.dSYM $(OBJECTS) include ../../../build/regressions.build -CFLAGS+=-lpthread -D_GNU_SOURCE -ggdb +CFLAGS+=-pthread -D_GNU_SOURCE -ggdb diff --git a/regressions/ck_pr/benchmark/Makefile b/regressions/ck_pr/benchmark/Makefile index ffa8903..d2ca7c0 100644 --- a/regressions/ck_pr/benchmark/Makefile +++ b/regressions/ck_pr/benchmark/Makefile @@ -15,4 +15,4 @@ clean: rm -rf ck_pr_cas_64 ck_pr_fas_64 ck_pr_cas_64_2 *.dSYM include ../../../build/regressions.build -CFLAGS+=-lpthread -D_GNU_SOURCE -lm +CFLAGS+=-pthread -D_GNU_SOURCE -lm diff --git a/regressions/ck_ring/validate/Makefile b/regressions/ck_ring/validate/Makefile index 4cc5da1..3fe3e8a 100644 --- a/regressions/ck_ring/validate/Makefile +++ b/regressions/ck_ring/validate/Makefile @@ -14,4 +14,4 @@ clean: rm -rf *~ *.o $(OBJECTS) *.dSYM include ../../../build/regressions.build -CFLAGS+=-lpthread -D_GNU_SOURCE +CFLAGS+=-pthread -D_GNU_SOURCE diff --git a/regressions/ck_sequence/validate/Makefile b/regressions/ck_sequence/validate/Makefile index df8ab02..04147e9 100644 --- a/regressions/ck_sequence/validate/Makefile +++ b/regressions/ck_sequence/validate/Makefile @@ -12,4 +12,4 @@ clean: rm -rf *~ *.o $(OBJECTS) *.dSYM include ../../../build/regressions.build -CFLAGS+=-lpthread -D_GNU_SOURCE -ggdb +CFLAGS+=-pthread -D_GNU_SOURCE -ggdb diff --git a/regressions/ck_spinlock/benchmark/Makefile b/regressions/ck_spinlock/benchmark/Makefile index c040bea..a65eec5 100644 --- a/regressions/ck_spinlock/benchmark/Makefile +++ b/regressions/ck_spinlock/benchmark/Makefile @@ -70,4 +70,4 @@ clean: rm -rf *.dSYM $(OBJECTS) include ../../../build/regressions.build -CFLAGS+=-D_GNU_SOURCE -lpthread -lm +CFLAGS+=-D_GNU_SOURCE -pthread -lm diff --git a/regressions/ck_spinlock/validate/Makefile b/regressions/ck_spinlock/validate/Makefile index ed2848c..da569e3 100644 --- a/regressions/ck_spinlock/validate/Makefile +++ b/regressions/ck_spinlock/validate/Makefile @@ -35,4 +35,4 @@ clean: ck_anderson test_and_set *.dSYM include ../../../build/regressions.build -CFLAGS+=-lpthread -D_GNU_SOURCE -lm +CFLAGS+=-pthread -D_GNU_SOURCE -lm diff --git a/regressions/ck_stack/benchmark/Makefile b/regressions/ck_stack/benchmark/Makefile index 0f7019d..61c3f6e 100644 --- a/regressions/ck_stack/benchmark/Makefile +++ b/regressions/ck_stack/benchmark/Makefile @@ -11,4 +11,4 @@ clean: rm -rf *~ *.o *.dSYM $(OBJECTS) include ../../../build/regressions.build -CFLAGS+=-lpthread -D_GNU_SOURCE +CFLAGS+=-pthread -D_GNU_SOURCE diff --git a/regressions/ck_stack/validate/Makefile b/regressions/ck_stack/validate/Makefile index 9d7e2fe..f21dfd6 100644 --- a/regressions/ck_stack/validate/Makefile +++ b/regressions/ck_stack/validate/Makefile @@ -10,26 +10,26 @@ 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 + $(CC) -pthread -DMPNC -D_GNU_SOURCE $(CFLAGS) -o mpnc_push push.c + $(CC) -pthread -DMPMC -D_GNU_SOURCE $(CFLAGS) -o mpmc_push push.c + $(CC) -pthread -DUPMC -D_GNU_SOURCE $(CFLAGS) -o upmc_push push.c + $(CC) -pthread -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_push push.c + $(CC) -pthread -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 + $(CC) -pthread -DMPMC -D_GNU_SOURCE $(CFLAGS) -o mpmc_pop pop.c + $(CC) -pthread -DUPMC -D_GNU_SOURCE $(CFLAGS) -o upmc_pop pop.c + $(CC) -pthread -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_pop pop.c + $(CC) -pthread -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 + $(CC) -pthread -DMPMC -D_GNU_SOURCE $(CFLAGS) -o mpmc_pair pair.c + $(CC) -pthread -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_pair pair.c + $(CC) -pthread -DEB -DSPINLOCK -D_GNU_SOURCE $(CFLAGS) -o spinlock_eb_pair pair.c + $(CC) -pthread -DPTHREADS -D_GNU_SOURCE $(CFLAGS) -o pthreads_pair pair.c clean: rm -rf *~ *.o *.dSYM $(OBJECTS) include ../../../build/regressions.build -CFLAGS+=-lpthread +CFLAGS+=-pthread