build: - configure step will generate relevant CFLAGS. - build profiles are for convenience (developers can use themu for cross-compilation). regressions: - Renamed ck_barrier unit tests to work-around behavior of Solaris linker. - Adopted use of a PTHREAD_CFLAGS variable. ck_cc: - Added internal CK_CC_IMM macro for compilers that are verbose against impossible inline constraints (or limited optimizers). ck_pr/x86*: - Adopted CK_CC_IMM macro. - Dropped redundant constraints. This work was mostly completed by Theo Schlossnagle <jesus@omniti.com>, much thanks to him. He has also provided access to a machine with Sun Studio 12.ck_pring
parent
2754038882
commit
49a2820000
@ -1,5 +1,7 @@
|
|||||||
CC=@CC@
|
CC=@CC@
|
||||||
MAKE=make
|
MAKE=make
|
||||||
CFLAGS=-D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I../include -std=gnu99 -pedantic -Wall -W -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wdisabled-optimization -fstrict-aliasing -O2 -pipe -Wno-parentheses @CFLAGS@
|
CFLAGS=@CFLAGS@ -I../include
|
||||||
|
LDFLAGS=@LDFLAGS@
|
||||||
|
LD=@LD@
|
||||||
|
|
||||||
include ../build/ck.build.@PROFILE@
|
include ../build/ck.build.@PROFILE@
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
CC=@CC@
|
CC=@CC@
|
||||||
MAKE=make
|
MAKE=make
|
||||||
CFLAGS=-D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I../../../include -std=gnu99 -pedantic -Wall -W -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wdisabled-optimization -fstrict-aliasing -O2 -pipe -Wno-parentheses @CFLAGS@
|
CFLAGS=@CFLAGS@ -I../../../include
|
||||||
|
LD=@LD@
|
||||||
|
LDFLAGS=@LDFLAGS@
|
||||||
|
PTHREADS_LDFLAGS=@PTHREADS_CFLAGS@
|
||||||
|
|
||||||
include ../../../build/ck.build.@PROFILE@
|
include ../../../build/ck.build.@PROFILE@
|
||||||
|
@ -1,40 +1,40 @@
|
|||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
||||||
all:
|
all:
|
||||||
make -C ./ck_spinlock/validate all
|
$(MAKE) -C ./ck_spinlock/validate all
|
||||||
make -C ./ck_spinlock/benchmark all
|
$(MAKE) -C ./ck_spinlock/benchmark all
|
||||||
make -C ./ck_fifo/validate all
|
$(MAKE) -C ./ck_fifo/validate all
|
||||||
make -C ./ck_fifo/benchmark all
|
$(MAKE) -C ./ck_fifo/benchmark all
|
||||||
make -C ./ck_pr/validate all
|
$(MAKE) -C ./ck_pr/validate all
|
||||||
make -C ./ck_pr/benchmark all
|
$(MAKE) -C ./ck_pr/benchmark all
|
||||||
make -C ./ck_barrier/validate all
|
$(MAKE) -C ./ck_barrier/validate all
|
||||||
make -C ./ck_barrier/benchmark all
|
$(MAKE) -C ./ck_barrier/benchmark all
|
||||||
make -C ./ck_bytelock/validate all
|
$(MAKE) -C ./ck_bytelock/validate all
|
||||||
make -C ./ck_bytelock/benchmark all
|
$(MAKE) -C ./ck_bytelock/benchmark all
|
||||||
make -C ./ck_epoch/validate all
|
$(MAKE) -C ./ck_epoch/validate all
|
||||||
make -C ./ck_sequence/validate all
|
$(MAKE) -C ./ck_sequence/validate all
|
||||||
make -C ./ck_stack/validate all
|
$(MAKE) -C ./ck_stack/validate all
|
||||||
make -C ./ck_stack/benchmark all
|
$(MAKE) -C ./ck_stack/benchmark all
|
||||||
make -C ./ck_ring/validate all
|
$(MAKE) -C ./ck_ring/validate all
|
||||||
make -C ./ck_hp/validate all
|
$(MAKE) -C ./ck_hp/validate all
|
||||||
make -C ./ck_hp/benchmark all
|
$(MAKE) -C ./ck_hp/benchmark all
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
make -C ./ck_spinlock/validate clean
|
$(MAKE) -C ./ck_spinlock/validate clean
|
||||||
make -C ./ck_spinlock/benchmark clean
|
$(MAKE) -C ./ck_spinlock/benchmark clean
|
||||||
make -C ./ck_fifo/validate clean
|
$(MAKE) -C ./ck_fifo/validate clean
|
||||||
make -C ./ck_fifo/benchmark clean
|
$(MAKE) -C ./ck_fifo/benchmark clean
|
||||||
make -C ./ck_pr/validate clean
|
$(MAKE) -C ./ck_pr/validate clean
|
||||||
make -C ./ck_pr/benchmark clean
|
$(MAKE) -C ./ck_pr/benchmark clean
|
||||||
make -C ./ck_barrier/validate clean
|
$(MAKE) -C ./ck_barrier/validate clean
|
||||||
make -C ./ck_barrier/benchmark clean
|
$(MAKE) -C ./ck_barrier/benchmark clean
|
||||||
make -C ./ck_bytelock/validate clean
|
$(MAKE) -C ./ck_bytelock/validate clean
|
||||||
make -C ./ck_bytelock/benchmark clean
|
$(MAKE) -C ./ck_bytelock/benchmark clean
|
||||||
make -C ./ck_epoch/validate clean
|
$(MAKE) -C ./ck_epoch/validate clean
|
||||||
make -C ./ck_sequence/validate clean
|
$(MAKE) -C ./ck_sequence/validate clean
|
||||||
make -C ./ck_stack/validate clean
|
$(MAKE) -C ./ck_stack/validate clean
|
||||||
make -C ./ck_stack/benchmark clean
|
$(MAKE) -C ./ck_stack/benchmark clean
|
||||||
make -C ./ck_ring/validate clean
|
$(MAKE) -C ./ck_ring/validate clean
|
||||||
make -C ./ck_hp/validate clean
|
$(MAKE) -C ./ck_hp/validate clean
|
||||||
make -C ./ck_hp/benchmark clean
|
$(MAKE) -C ./ck_hp/benchmark clean
|
||||||
|
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
.PHONY: clean distribution
|
.PHONY: clean distribution
|
||||||
|
|
||||||
OBJECTS=ck_barrier_centralized ck_barrier_combining ck_barrier_dissemination ck_barrier_tournament ck_barrier_mcs
|
OBJECTS=barrier_centralized barrier_combining barrier_dissemination barrier_tournament barrier_mcs
|
||||||
|
|
||||||
all: $(OBJECTS)
|
all: $(OBJECTS)
|
||||||
|
|
||||||
ck_barrier_centralized: ck_barrier_centralized.c ../../../include/ck_barrier.h ../../../src/ck_barrier_centralized.c
|
barrier_centralized: barrier_centralized.c ../../../include/ck_barrier.h ../../../src/ck_barrier_centralized.c
|
||||||
$(CC) $(CFLAGS) -o ck_barrier_centralized ck_barrier_centralized.c ../../../src/ck_barrier_centralized.c
|
$(CC) $(CFLAGS) -o barrier_centralized barrier_centralized.c ../../../src/ck_barrier_centralized.c
|
||||||
|
|
||||||
ck_barrier_combining: ck_barrier_combining.c ../../../include/ck_barrier.h ../../../src/ck_barrier_combining.c
|
barrier_combining: barrier_combining.c ../../../include/ck_barrier.h ../../../src/ck_barrier_combining.c
|
||||||
$(CC) $(CFLAGS) -o ck_barrier_combining ck_barrier_combining.c ../../../src/ck_barrier_combining.c
|
$(CC) $(CFLAGS) -o barrier_combining barrier_combining.c ../../../src/ck_barrier_combining.c
|
||||||
|
|
||||||
ck_barrier_dissemination: ck_barrier_dissemination.c ../../../include/ck_barrier.h ../../../src/ck_barrier_dissemination.c
|
barrier_dissemination: barrier_dissemination.c ../../../include/ck_barrier.h ../../../src/ck_barrier_dissemination.c
|
||||||
$(CC) $(CFLAGS) -o ck_barrier_dissemination ck_barrier_dissemination.c ../../../src/ck_barrier_dissemination.c
|
$(CC) $(CFLAGS) -o barrier_dissemination barrier_dissemination.c ../../../src/ck_barrier_dissemination.c
|
||||||
|
|
||||||
ck_barrier_tournament: ck_barrier_tournament.c ../../../include/ck_barrier.h ../../../src/ck_barrier_tournament.c
|
barrier_tournament: barrier_tournament.c ../../../include/ck_barrier.h ../../../src/ck_barrier_tournament.c
|
||||||
$(CC) $(CFLAGS) -o ck_barrier_tournament ck_barrier_tournament.c ../../../src/ck_barrier_tournament.c
|
$(CC) $(CFLAGS) -o barrier_tournament barrier_tournament.c ../../../src/ck_barrier_tournament.c
|
||||||
|
|
||||||
ck_barrier_mcs: ck_barrier_mcs.c ../../../include/ck_barrier.h ../../../src/ck_barrier_mcs.c
|
barrier_mcs: barrier_mcs.c ../../../include/ck_barrier.h ../../../src/ck_barrier_mcs.c
|
||||||
$(CC) $(CFLAGS) -o ck_barrier_mcs ck_barrier_mcs.c ../../../src/ck_barrier_mcs.c
|
$(CC) $(CFLAGS) -o barrier_mcs barrier_mcs.c ../../../src/ck_barrier_mcs.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf *.dSYM *~ *.o $(OBJECTS)
|
rm -rf *.dSYM *~ *.o $(OBJECTS)
|
||||||
|
|
||||||
include ../../../build/regressions.build
|
include ../../../build/regressions.build
|
||||||
CFLAGS+=-D_GNU_SOURCE -pthread
|
CFLAGS+=$(PTHREAD_CFLAGS) -D_GNU_SOURCE
|
||||||
|
Loading…
Reference in new issue