X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=Makefile.build.inc;fp=Makefile.build.inc;h=fc4c471441cc4c6a53dcbcde353f6a15dcd9fb1c;hb=317f9f21987c107985366fa06d7f649b7767163e;hp=0000000000000000000000000000000000000000;hpb=833dbdb633ba44bfb71b4b965a83096d8e4e827b;p=urcu.git diff --git a/Makefile.build.inc b/Makefile.build.inc new file mode 100644 index 0000000..fc4c471 --- /dev/null +++ b/Makefile.build.inc @@ -0,0 +1,38 @@ + +CFLAGS=-Wall -O2 -g -I. +#debug +#CFLAGS=-Wall -g + +LDFLAGS=-lpthread + +HOSTTYPE=$(shell uname -m) + +ifeq ("${HOSTTYPE}","x86_64") +ARCHTYPE=x86 +endif +ifeq ("${HOSTTYPE}","i586") +ARCHTYPE=x86 +endif +ifeq ("${HOSTTYPE}","i686") +ARCHTYPE=x86 +endif +ifeq ("${HOSTTYPE}","powerpc") +ARCHTYPE=ppc +endif +ifeq ("${HOSTTYPE}","ppc64") +ARCHTYPE=ppc +endif +ifeq ("${HOSTTYPE}","s390") +ARCHTYPE=s390 +endif +ifeq ("${HOSTTYPE}","s390x") +ARCHTYPE=s390 +endif + +#Build the library without using signals. Slower read-side. +#CFLAGS+=-DCONFIG_URCU_AVOID_SIGNALS + +#Changing the signal number used by the library. SIGUSR1 by default. +#CFLAGS+=-DSIGURCU=SIGUSR2 + +SRC_DEP=`echo $^ | sed 's/[^ ]*\.h//g'`