forked from DeadSix27/python_mingw_libs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (30 loc) · 1.21 KB
/
Makefile
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
# #################################################################################################################
# Copyright (C) 2017 DeadSix27
#
# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
# To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.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.
# #################################################################################################################
ifndef PYTHON_VERSION
$(error PYTHON_VERSION is not set)
endif
#amd64, win32
ARCH = amd64
ifndef PREFIX
$(error PREFIX is not set)
endif
ifndef GENDEF
$(error GENDEF is not set)
endif
ifndef DLLTOOL
$(error DLLTOOL is not set)
endif
all:
@python install_python_libs.py install $(ARCH) $(PYTHON_VERSION) $(PREFIX) $(DLLTOOL) $(GENDEF)
uninstall:
@python install_python_libs.py uninstall $(ARCH) $(PYTHON_VERSION) $(PREFIX) $(DLLTOOL) $(GENDEF)