1# -*- makefile -*- Time-stamp: <03/07/15 18:23:04 ptr> 2# $Id: lib.mak 3023 2007-05-16 20:01:32Z dums $ 3 4LIB_PREFIX ?= 5 6ifeq (gcc, $(COMPILER_NAME)) 7LIB_PREFIX := lib 8endif 9 10ifeq (gcc, $(COMPILER_NAME)) 11DBG_SUFFIX := g 12else 13DBG_SUFFIX := d 14endif 15 16STLDBG_SUFFIX := stl${DBG_SUFFIX} 17 18ifdef WITH_STATIC_RTL 19LIB_TYPE := _x 20else 21LIB_TYPE := 22endif 23 24ifdef LIB_MOTIF 25LIB_SUFFIX := _$(LIB_MOTIF).${MAJOR}.${MINOR} 26else 27LIB_SUFFIX := .${MAJOR}.${MINOR} 28endif 29 30# Shared libraries: 31SO_NAME_BASE := $(LIB_PREFIX)${LIBNAME}${LIB_TYPE}${LIB_SUFFIX} 32SO_NAME := ${SO_NAME_BASE}.$(SO) 33LIB_NAME := ${SO_NAME_BASE}.$(LIB) 34#EXP_NAME := ${SO_NAME_BASE}.$(EXP) 35 36SO_NAME_OUT := $(OUTPUT_DIR)/${SO_NAME} 37LIB_NAME_OUT := $(OUTPUT_DIR)/${LIB_NAME} 38#EXP_NAME_OUT := $(OUTPUT_DIR)/${EXP_NAME} 39 40SO_NAME_DBG_BASE := $(LIB_PREFIX)${LIBNAME}${DBG_SUFFIX}${LIB_TYPE}${LIB_SUFFIX} 41SO_NAME_DBG := ${SO_NAME_DBG_BASE}.$(SO) 42LIB_NAME_DBG := ${SO_NAME_DBG_BASE}.$(LIB) 43#EXP_NAME_DBG := ${SO_NAME_DBG_BASE}.$(EXP) 44 45SO_NAME_OUT_DBG := $(OUTPUT_DIR_DBG)/${SO_NAME_DBG} 46LIB_NAME_OUT_DBG := $(OUTPUT_DIR_DBG)/${LIB_NAME_DBG} 47#EXP_NAME_OUT_DBG := $(OUTPUT_DIR_DBG)/${EXP_NAME_DBG} 48 49SO_NAME_STLDBG_BASE := $(LIB_PREFIX)${LIBNAME}${STLDBG_SUFFIX}${LIB_TYPE}${LIB_SUFFIX} 50SO_NAME_STLDBG := ${SO_NAME_STLDBG_BASE}.$(SO) 51LIB_NAME_STLDBG := ${SO_NAME_STLDBG_BASE}.$(LIB) 52#EXP_NAME_STLDBG := ${SO_NAME_STLDBG_BASE}.$(EXP) 53 54SO_NAME_OUT_STLDBG := $(OUTPUT_DIR_STLDBG)/${SO_NAME_STLDBG} 55LIB_NAME_OUT_STLDBG := $(OUTPUT_DIR_STLDBG)/${LIB_NAME_STLDBG} 56#EXP_NAME_OUT_STLDBG := $(OUTPUT_DIR_STLDBG)/${EXP_NAME_STLDBG} 57 58# Static libraries: 59ifeq (gcc, $(COMPILER_NAME)) 60A_LIB_TYPE := 61else 62ifdef WITH_DYNAMIC_RTL 63A_LIB_TYPE := _statix 64else 65A_LIB_TYPE := _static 66endif 67endif 68 69ifdef LIB_MOTIF 70LIB_A_SUFFIX := _$(LIB_MOTIF) 71else 72LIB_A_SUFFIX := 73endif 74 75A_NAME := $(LIB_PREFIX)${LIBNAME}${A_LIB_TYPE}${LIB_A_SUFFIX}.$(ARCH) 76A_NAME_OUT := $(OUTPUT_DIR_A)/$(A_NAME) 77 78A_NAME_DBG := $(LIB_PREFIX)${LIBNAME}${DBG_SUFFIX}${A_LIB_TYPE}${LIB_A_SUFFIX}.${ARCH} 79A_NAME_OUT_DBG := $(OUTPUT_DIR_A_DBG)/$(A_NAME_DBG) 80 81A_NAME_STLDBG := ${LIB_PREFIX}${LIBNAME}${STLDBG_SUFFIX}${A_LIB_TYPE}${LIB_A_SUFFIX}.${ARCH} 82A_NAME_OUT_STLDBG := $(OUTPUT_DIR_A_STLDBG)/$(A_NAME_STLDBG) 83