From: Mathieu Desnoyers Date: Sun, 30 Aug 2009 14:50:36 +0000 (-0400) Subject: add global include Makefile X-Git-Tag: v0.1~100 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=317f9f21987c107985366fa06d7f649b7767163e;p=urcu.git add global include Makefile Signed-off-by: Mathieu Desnoyers --- 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'`