index
:
libpinyin.git
0.3.x
0.5.x
0.6.x
0.7.x
0.8.x
0.9.x
1.0.x
1.2.x
1.3.x
1.6.x
1.7.x
2.0.x
ambiguities
c-api
devel
main
ucs4
mirror of libpinyin.
Peng Wu
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Peng Wu <alexepico@gmail.com>
2011-04-18 16:59:03 +0800
committer
Peng Wu <alexepico@gmail.com>
2011-04-18 16:59:03 +0800
commit
c418ddb0e8ec1eb8e79cb03e83ed3ebc202d02e5
(
)
PYTHON
=
python
$(
PYVER
)
PYTHONINCLUDE
= /
usr
/
include
/$(
PYTHON
)
ARCH
:= $(
patsubst
i
%
86
,
i386
,$(
shell
uname
-
m
))
ARCH
:= $(
patsubst
sparc
%,
sparc
,$(
ARCH
))
ARCH
:= $(
patsubst
ppc
%,
ppc
,$(
ARCH
))
FULLARCH
:= $(
shell
uname
-
m
)
ifneq
(,$(
filter
ppc64 x86_64 s390x
,$(
FULLARCH
)))
LIBDIR
=
lib64
else
LIBDIR
=
lib
endif
USESELINUX
=
1
ifeq
($(
USESELINUX
),
1
)
SELINUXLIBES
= -
lselinux
-
lsepol SELINUXFLAGS
= -
DUSESELINUX
=
1
endif
ifndef
RPM_OPT_FLAGS RPM_OPT_FLAGS
= -
O2
-
g
-
pipe
-
Wp
,-
D_FORTIFY_SOURCE
=
2
-
fexceptions
endif
# uncomment to build 32bit on an 64bit host
#M32FLAGS = -m32
CFLAGS
= $(
RPM_OPT_FLAGS
) -
Wall
-
Werror
-
D_GNU_SOURCE
=
1
-
D_FILE_OFFSET_BITS
=
64
-
D_LARGEFILE_SOURCE
=
1
-
D_LARGEFILE64_SOURCE
=
1
$(
SELINUXFLAGS
) $(
M32FLAGS
)
LDFLAGS
= $(
M32FLAGS
) -
rdynamic