1# -*- makefile -*- Time-stamp: <06/11/02 10:37:02 ptr> 2# 3# Copyright (c) 1997-1999, 2002, 2003, 2005, 2006 4# Petr Ovtchenkov 5# 6# Portion Copyright (c) 1999-2001 7# Parallel Graphics Ltd. 8# 9# Licensed under the Academic Free License version 3.0 10# 11 12DBG_SUFFIX ?= g 13STLDBG_SUFFIX ?= stl${DBG_SUFFIX} 14 15# Shared libraries: 16 17ifndef LIB_MOTIF 18SO_NAME := lib${LIBNAME}.$(SO) 19else 20SO_NAME := lib${LIBNAME}_${LIB_MOTIF}.${SO} 21endif 22SO_NAMEx := ${SO_NAME}.${MAJOR} 23SO_NAMExx := ${SO_NAMEx}.${MINOR} 24SO_NAMExxx := ${SO_NAMExx}.${PATCH} 25 26SO_NAME_OUT := $(OUTPUT_DIR)/${SO_NAME} 27SO_NAME_OUTx := $(OUTPUT_DIR)/${SO_NAMEx} 28SO_NAME_OUTxx := $(OUTPUT_DIR)/${SO_NAMExx} 29SO_NAME_OUTxxx := $(OUTPUT_DIR)/${SO_NAMExxx} 30 31ifndef LIB_MOTIF 32SO_NAME_DBG := lib${LIBNAME}${DBG_SUFFIX}.$(SO) 33else 34SO_NAME_DBG := lib${LIBNAME}${DBG_SUFFIX}_${LIB_MOTIF}.$(SO) 35endif 36SO_NAME_DBGx := ${SO_NAME_DBG}.${MAJOR} 37SO_NAME_DBGxx := ${SO_NAME_DBGx}.${MINOR} 38SO_NAME_DBGxxx := ${SO_NAME_DBGxx}.${PATCH} 39 40SO_NAME_OUT_DBG := $(OUTPUT_DIR_DBG)/${SO_NAME_DBG} 41SO_NAME_OUT_DBGx := $(OUTPUT_DIR_DBG)/${SO_NAME_DBGx} 42SO_NAME_OUT_DBGxx := $(OUTPUT_DIR_DBG)/${SO_NAME_DBGxx} 43SO_NAME_OUT_DBGxxx := $(OUTPUT_DIR_DBG)/${SO_NAME_DBGxxx} 44 45ifndef WITHOUT_STLPORT 46ifndef LIB_MOTIF 47SO_NAME_STLDBG := lib${LIBNAME}${STLDBG_SUFFIX}.$(SO) 48else 49SO_NAME_STLDBG := lib${LIBNAME}${STLDBG_SUFFIX}_${LIB_MOTIF}.$(SO) 50endif 51SO_NAME_STLDBGx := ${SO_NAME_STLDBG}.${MAJOR} 52SO_NAME_STLDBGxx := ${SO_NAME_STLDBGx}.${MINOR} 53SO_NAME_STLDBGxxx := ${SO_NAME_STLDBGxx}.${PATCH} 54 55SO_NAME_OUT_STLDBG := $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBG} 56SO_NAME_OUT_STLDBGx := $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGx} 57SO_NAME_OUT_STLDBGxx := $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGxx} 58SO_NAME_OUT_STLDBGxxx := $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBGxxx} 59# WITHOUT_STLPORT 60endif 61 62# Static libraries: 63 64ifndef LIB_MOTIF 65A_NAME := lib${LIBNAME}.$(ARCH) 66else 67A_NAME := lib${LIBNAME}_${LIB_MOTIF}.$(ARCH) 68endif 69A_NAME_OUT := $(OUTPUT_DIR_A)/$(A_NAME) 70 71ifndef LIB_MOTIF 72A_NAME_DBG := lib${LIBNAME}${DBG_SUFFIX}.$(ARCH) 73else 74A_NAME_DBG := lib${LIBNAME}${DBG_SUFFIX}_${LIB_MOTIF}.$(ARCH) 75endif 76A_NAME_OUT_DBG := $(OUTPUT_DIR_A_DBG)/$(A_NAME_DBG) 77 78ifndef WITHOUT_STLPORT 79ifndef LIB_MOTIF 80A_NAME_STLDBG := lib${LIBNAME}${STLDBG_SUFFIX}.$(ARCH) 81else 82A_NAME_STLDBG := lib${LIBNAME}${STLDBG_SUFFIX}_${LIB_MOTIF}.$(ARCH) 83endif 84A_NAME_OUT_STLDBG := $(OUTPUT_DIR_A_STLDBG)/$(A_NAME_STLDBG) 85endif 86