add global include Makefile
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sun, 30 Aug 2009 14:50:36 +0000 (10:50 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sun, 30 Aug 2009 14:50:36 +0000 (10:50 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Makefile.build.inc [new file with mode: 0644]

diff --git a/Makefile.build.inc b/Makefile.build.inc
new file mode 100644 (file)
index 0000000..fc4c471
--- /dev/null
@@ -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'`
This page took 0.025708 seconds and 4 git commands to generate.