From 8d569c7bb0a8a5e868abac7a523675206f1122b1 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 20 Dec 2010 21:51:09 +0100 Subject: build: refactoring of msvc makefiles to allow overriding of library filenames. Default libcurl's file names are kept equal to those used since Y2K. --- Makefile.msvc.names | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Makefile.msvc.names (limited to 'Makefile.msvc.names') diff --git a/Makefile.msvc.names b/Makefile.msvc.names new file mode 100644 index 000000000..56c81ad72 --- /dev/null +++ b/Makefile.msvc.names @@ -0,0 +1,81 @@ +#*************************************************************************** +# _ _ ____ _ +# Project ___| | | | _ \| | +# / __| | | | |_) | | +# | (__| |_| | _ <| |___ +# \___|\___/|_| \_\_____| +# +# Copyright (C) 1999 - 2010, Daniel Stenberg, , et al. +# +# This software is licensed as described in the file COPYING, which +# you should have received as part of this distribution. The terms +# are also available at http://curl.haxx.se/docs/copyright.html. +# +# You may opt to use, copy, modify, merge, publish, distribute and/or sell +# copies of the Software, and permit persons to whom the Software is +# furnished to do so, under the terms of the COPYING file. +# +# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY +# KIND, either express or implied. +# +#*************************************************************************** + +# +# This file is included from MSVC makefiles located in lib and src, +# providing libcurl common file names required by these makefiles. +# + +# ------------------ +# libcurl base name +# ------------------ + +!IF !DEFINED(LIB_NAME) || "$(LIB_NAME)" == "" +LIB_NAME = libcurl +!ENDIF + +# ------------------------------------------------- +# libcurl static and dynamic libraries common base +# file names for release and debug configurations +# ------------------------------------------------- + +!IF !DEFINED(LIB_NAME_STA_REL) || "$(LIB_NAME_STA_REL)" == "" +LIB_NAME_STA_REL = $(LIB_NAME) +!ENDIF + +!IF !DEFINED(LIB_NAME_STA_DBG) || "$(LIB_NAME_STA_DBG)" == "" +LIB_NAME_STA_DBG = $(LIB_NAME_STA_REL)d +!ENDIF + +!IF !DEFINED(LIB_NAME_DYN_REL) || "$(LIB_NAME_DYN_REL)" == "" +LIB_NAME_DYN_REL = $(LIB_NAME) +!ENDIF + +!IF !DEFINED(LIB_NAME_DYN_DBG) || "$(LIB_NAME_DYN_DBG)" == "" +LIB_NAME_DYN_DBG = $(LIB_NAME_DYN_REL)d +!ENDIF + +# -------------------------------------------- +# Base names for libcurl DLL import libraries +# -------------------------------------------- + +!IF !DEFINED(LIB_NAME_IMP_REL) || "$(LIB_NAME_IMP_REL)" == "" +LIB_NAME_IMP_REL = $(LIB_NAME_DYN_REL)_imp +!ENDIF + +!IF !DEFINED(LIB_NAME_IMP_DBG) || "$(LIB_NAME_IMP_DBG)" == "" +LIB_NAME_IMP_DBG = $(LIB_NAME_DYN_DBG)_imp +!ENDIF + +# -------------------------------------- +# File names with extension and no path +# -------------------------------------- + +LIBCURL_STA_LIB_REL = $(LIB_NAME_STA_REL).lib +LIBCURL_STA_LIB_DBG = $(LIB_NAME_STA_DBG).lib +LIBCURL_DYN_LIB_REL = $(LIB_NAME_DYN_REL).dll +LIBCURL_DYN_LIB_DBG = $(LIB_NAME_DYN_DBG).dll +LIBCURL_IMP_LIB_REL = $(LIB_NAME_IMP_REL).lib +LIBCURL_IMP_LIB_DBG = $(LIB_NAME_IMP_DBG).lib +LIBCURL_DYN_LIB_PDB = $(LIB_NAME_IMP_DBG).pdb + +# End of Makefile.msvc.names -- cgit v1.2.3