xref: /aoo42x/main/python/pyversion.mk (revision 58c70741)
1d71964d5SAndrew Rist# *************************************************************
2d71964d5SAndrew Rist#
3d71964d5SAndrew Rist#  Licensed to the Apache Software Foundation (ASF) under one
4d71964d5SAndrew Rist#  or more contributor license agreements.  See the NOTICE file
5d71964d5SAndrew Rist#  distributed with this work for additional information
6d71964d5SAndrew Rist#  regarding copyright ownership.  The ASF licenses this file
7d71964d5SAndrew Rist#  to you under the Apache License, Version 2.0 (the
8d71964d5SAndrew Rist#  "License"); you may not use this file except in compliance
9d71964d5SAndrew Rist#  with the License.  You may obtain a copy of the License at
10d71964d5SAndrew Rist#
11d71964d5SAndrew Rist#    http://www.apache.org/licenses/LICENSE-2.0
12d71964d5SAndrew Rist#
13d71964d5SAndrew Rist#  Unless required by applicable law or agreed to in writing,
14d71964d5SAndrew Rist#  software distributed under the License is distributed on an
15d71964d5SAndrew Rist#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16d71964d5SAndrew Rist#  KIND, either express or implied.  See the License for the
17d71964d5SAndrew Rist#  specific language governing permissions and limitations
18d71964d5SAndrew Rist#  under the License.
19d71964d5SAndrew Rist#
20d71964d5SAndrew Rist# *************************************************************
21cdf0e10cSrcweir# when you want to change the python version, you must update the d.lst
22cdf0e10cSrcweir# in the python project accordingly !!!
23cdf0e10cSrcweirPYMAJOR=2
240a45483eSPedro GiffuniPYMINOR=7
257cdbaf76SPedro GiffuniPYMICRO=15
26cdf0e10cSrcweirPYVERSION=$(PYMAJOR).$(PYMINOR).$(PYMICRO)
27cdf0e10cSrcweir
28*58c70741SJim Jagielskiifeq ($(GUI),UNX)
29*58c70741SJim Jagielskiifeq ($(OS),MACOSX)
30cdf0e10cSrcweirPY_FULL_DLL_NAME=libpython$(PYMAJOR).$(PYMINOR).dylib
31*58c70741SJim Jagielskielse
32cdf0e10cSrcweirPY_FULL_DLL_NAME=libpython$(PYMAJOR).$(PYMINOR).so.1.0
33*58c70741SJim Jagielskiendif
34cdf0e10cSrcweirPYTHONLIB=-lpython$(PYMAJOR).$(PYMINOR)
35*58c70741SJim Jagielskielse ifeq ($(GUI),OS2)
36cdf0e10cSrcweirPY_FULL_DLL_NAME=python$(PYMAJOR)$(PYMINOR).dll
37cdf0e10cSrcweirPYTHONLIB=python$(PYMAJOR)$(PYMINOR).lib
38*58c70741SJim Jagielskielse
39*58c70741SJim Jagielskiifeq ($(COM),GCC)
40cdf0e10cSrcweirPY_FULL_DLL_NAME=libpython$(PYMAJOR).$(PYMINOR).dll
41cdf0e10cSrcweirPYTHONLIB=-lpython$(PYMAJOR).$(PYMINOR)
42*58c70741SJim Jagielskielse
43cdf0e10cSrcweirPY_FULL_DLL_NAME=python$(PYMAJOR)$(PYMINOR).dll
44cdf0e10cSrcweirPYTHONLIB=python$(PYMAJOR)$(PYMINOR).lib
45*58c70741SJim Jagielskiendif
46*58c70741SJim Jagielskiendif
47