56c7705690f0afb7dbffe6e6bdd3020d1aa34e56
[urcu.git] / Makefile.build.inc
1
2 CFLAGS=-Wall -I.
3
4 #optimized
5 CFLAGS+=-O2
6
7 #debug information
8 CFLAGS+=-g
9
10 #RCU debug (slower, with error-checks)
11 #CFLAGS+=-DDEBUG_RCU
12
13 LDFLAGS=-lpthread
14
15 HOSTTYPE=$(shell uname -m)
16
17 ifeq ("${HOSTTYPE}","x86_64")
18 ARCHTYPE=x86
19 endif
20 ifeq ("${HOSTTYPE}","i586")
21 ARCHTYPE=x86
22 endif
23 ifeq ("${HOSTTYPE}","i686")
24 ARCHTYPE=x86
25 endif
26 ifeq ("${HOSTTYPE}","powerpc")
27 ARCHTYPE=ppc
28 endif
29 ifeq ("${HOSTTYPE}","ppc64")
30 ARCHTYPE=ppc
31 endif
32 ifeq ("${HOSTTYPE}","s390")
33 ARCHTYPE=s390
34 endif
35 ifeq ("${HOSTTYPE}","s390x")
36 ARCHTYPE=s390
37 endif
38
39 #Build the library without using signals. Slower read-side.
40 #CFLAGS+=-DCONFIG_URCU_AVOID_SIGNALS
41
42 #Changing the signal number used by the library. SIGUSR1 by default.
43 #CFLAGS+=-DSIGURCU=SIGUSR2
44
45 SRC_DEP=`echo $^ | sed 's/[^ ]*\.h//g'`
This page took 0.030021 seconds and 3 git commands to generate.