xref: /trunk/main/python/pyversion_dmake.mk (revision 31bbceb0f9d64c0c2c3b22a794a1666c1f33396e)
11c25f252Sdamjan# *************************************************************
21c25f252Sdamjan#
31c25f252Sdamjan#  Licensed to the Apache Software Foundation (ASF) under one
41c25f252Sdamjan#  or more contributor license agreements.  See the NOTICE file
51c25f252Sdamjan#  distributed with this work for additional information
61c25f252Sdamjan#  regarding copyright ownership.  The ASF licenses this file
71c25f252Sdamjan#  to you under the Apache License, Version 2.0 (the
81c25f252Sdamjan#  "License"); you may not use this file except in compliance
91c25f252Sdamjan#  with the License.  You may obtain a copy of the License at
101c25f252Sdamjan#
111c25f252Sdamjan#    http://www.apache.org/licenses/LICENSE-2.0
121c25f252Sdamjan#
131c25f252Sdamjan#  Unless required by applicable law or agreed to in writing,
141c25f252Sdamjan#  software distributed under the License is distributed on an
151c25f252Sdamjan#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
161c25f252Sdamjan#  KIND, either express or implied.  See the License for the
171c25f252Sdamjan#  specific language governing permissions and limitations
181c25f252Sdamjan#  under the License.
191c25f252Sdamjan#
201c25f252Sdamjan# *************************************************************
211c25f252Sdamjan# when you want to change the python version, you must update the d.lst
221c25f252Sdamjan# in the python project accordingly !!!
231c25f252SdamjanPYMAJOR=2
241c25f252SdamjanPYMINOR=7
25*26aca12fSDon LewisPYMICRO=18
261c25f252SdamjanPYVERSION=$(PYMAJOR).$(PYMINOR).$(PYMICRO)
271c25f252Sdamjan
281c25f252Sdamjan.IF "$(GUI)" == "UNX"
291c25f252Sdamjan.IF "$(OS)" == "MACOSX"
301c25f252SdamjanPY_FULL_DLL_NAME=libpython$(PYMAJOR).$(PYMINOR).dylib
311c25f252Sdamjan.ELSE
321c25f252SdamjanPY_FULL_DLL_NAME=libpython$(PYMAJOR).$(PYMINOR).so.1.0
331c25f252Sdamjan.ENDIF
341c25f252SdamjanPYTHONLIB=-lpython$(PYMAJOR).$(PYMINOR)
351c25f252Sdamjan.ELIF "$(GUI)" == "OS2"
361c25f252SdamjanPY_FULL_DLL_NAME=python$(PYMAJOR)$(PYMINOR).dll
371c25f252SdamjanPYTHONLIB=python$(PYMAJOR)$(PYMINOR).lib
381c25f252Sdamjan.ELSE
391c25f252Sdamjan.IF "$(COM)" == "GCC"
401c25f252SdamjanPY_FULL_DLL_NAME=libpython$(PYMAJOR).$(PYMINOR).dll
411c25f252SdamjanPYTHONLIB=-lpython$(PYMAJOR).$(PYMINOR)
421c25f252Sdamjan.ELSE
431c25f252SdamjanPY_FULL_DLL_NAME=python$(PYMAJOR)$(PYMINOR).dll
441c25f252SdamjanPYTHONLIB=python$(PYMAJOR)$(PYMINOR).lib
451c25f252Sdamjan.ENDIF
461c25f252Sdamjan.ENDIF
47