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