FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
rocketmq-client-python/project/Makefile at boostpython · apache/rocketmq-client-python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
apache
/
rocketmq-client-python
Public
Notifications
You must be signed in to change notification settings
Fork
97
Star
304
Code
Issues
47
Pull requests
2
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
rocketmq-client-python
/
project
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
98 lines (81 loc) · 3.16 KB
Breadcrumbs
rocketmq-client-python
/
project
/
Makefile
Copy path
File metadata and controls
executable file
·
98 lines (81 loc) · 3.16 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#
/*
#
* Licensed to the Apache Software Foundation (ASF) under one or more
#
* contributor license agreements. See the NOTICE file distributed with
#
* this work for additional information regarding copyright ownership.
#
* The ASF licenses this file to You under the Apache License, Version 2.0
#
* (the "License"); you may not use this file except in compliance with
#
* the License. You may obtain a copy of the License at
#
*
#
* http://www.apache.org/licenses/LICENSE-2.0
#
*
#
* Unless required by applicable law or agreed to in writing, software
#
* distributed under the License is distributed on an "AS IS" BASIS,
#
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
* See the License for the specific language governing permissions and
#
* limitations under the License.
#
*/
#
#====================================================================
#
make release=0 debug版。
#
make release=1 release版。
CXXFLAGS
= -g -pthread -Wall -fPIC -Wno-deprecated -fno-strict-aliasing -fno-omit-frame-pointer -O0 -DNDEBUG
ifeq
(
$(
shell
uname -m)
,x86_64)
CXXFLAGS += -m64
else
CXXFLAGS += -m32
endif
#
#====================================================================
PREFIX:
=/usr/local
TOPDIR
:= ..
STATIC_TARGET
:=
$(
TOPDIR
)
/bin/librocketmqclientpython.a
SHARED_TARGET
:=
$(
TOPDIR
)
/bin/librocketmqclientpython.so
SRCDIR:
=
$(
TOPDIR
)
/src
INCFILES:
=
$(
wildcard
$(
TOPDIR
)
/include/
*
.h)
CPP_SRCDIR
:=
$(
SRCDIR
)
CPP_SRC
:=
$(
foreach
dir,
$(
CPP_SRCDIR
)
,
$(
wildcard
$(
dir
)
/
*
.cpp)
)
STATIC_OBJ
:=
$(
filter-out
%
/dllmain.o,
$(
patsubst
%
.cpp,
%
.o,
$(
CPP_SRC
)
)
)
SHARED_OBJ
:=
$(
filter-out
%
/dllmain.lo,
$(
patsubst
%
.cpp,
%
.lo,
$(
CPP_SRC
)
)
)
VPATH:
=
$(
CPP_SRCDIR
)
PYTHON_INCLUDE:
=/usr/include/python2.7
ROCKETMQ_INCLUDE:
=/usr/local/include/rocketmq
PYTHON_LIB:
=/usr/python/bin
PYTHON_LIBD:
=/usr/python/lib
ROCKETMQ_LIBD:
=/usr/local/lib
CPPFLAGS
:= -I
$(
TOPDIR
)
/include
\
$(
addprefix
-I,
$(
CPP_SRCDIR
)
)
\
$(
addprefix
-I,
$(
ROCKETMQ_INCLUDE
)
)
\
$(
addprefix
-I,
$(
PYTHON_INCLUDE
)
)
LDFLAGS
:= -shared -Wl,-soname=librocketmqclientpython.so -pthread -fPIC
LIBPATH
:=
$(
addprefix
-L,
$(
ROCKETMQ_LIBD
)
$(
PYTHON_LIBD
)
)
LDLIBS
:=
$(
addprefix
-l,rocketmq boost_python)
CXX
:= g++
AR
:= ar
ARFLAGS
:= rcs
LIBS:
=
$(
foreach
dir,
$(
ROCKETMQ_LIBD
)
,
$(
wildcard
$(
dir
)
/
*
/lib/
*
.a)
)
#
#====================================================================
#
include tool.mak
#
#====================================================================
all
:build-static build-shared
build-static
:
$(
STATIC_TARGET
)
build-shared
:
$(
SHARED_TARGET
)
$(
STATIC_TARGET
)
:
$(
STATIC_OBJ
)
$(
LIBS
)
$(
SHARED_TARGET
)
:
$(
SHARED_OBJ
)
$(
CXX
)
$(
LDFLAGS
)
-o
$@
$^
$(
LIBPATH
)
$(
LDLIBS
)
%
.o
:
%
.cpp
$(
CXX
)
-c
$(
CXXFLAGS
)
$(
CPPFLAGS
)
-o
$@
$<
%
.lo
:
%
.cpp
$(
CXX
)
-c
$(
CXXFLAGS
)
$(
CPPFLAGS
)
-o
$@
$<
rebuild
:clean build
test
:
@echo
$(
LIBS
)
clean
:
$(
RM
)
-rf
$(
STATIC_OBJ
)
$(
RM
)
-rf
$(
SHARED_OBJ
)
$(
RM
)
-rf ipch
*
.sdf
*
.opensdf
*
.user
*
.suo
install
:
$(
STATIC_TARGET
)
$(
SHARED_TARGET
)
mkdir -p
$(
PREFIX
)
/lib
rm -rf
$(
PREFIX
)
/lib/librocketmqclientpython.a
rm -rf
$(
PREFIX
)
/lib/librocketmqclientpython.so
#
cp -rf $(STATIC_TARGET) $(PREFIX)/lib/
cp -rf
$(
SHARED_TARGET
)
$(
PREFIX
)
/lib/
@echo
@echo
'
Install succeed, target directory is "
'
$(
PREFIX
)
'
".
'
Back
|
FazBrowse Home
|
New Git URL