]> git.tdb.fi Git - ext/sigc++-2.0.git/blob - MSVC_NMake/config-msvc.mak
Adjust the name of the library to match upstream
[ext/sigc++-2.0.git] / MSVC_NMake / config-msvc.mak
1 # NMake Makefile portion for enabling features for Windows builds
2
3 # These are the base minimum libraries required for building libsigc++.
4 BASE_INCLUDES = /I$(PREFIX)\include
5
6 # Please do not change anything beneath this line unless maintaining the NMake Makefiles
7
8 LIBSIGC_MAJOR_VERSION = 2
9 LIBSIGC_MINOR_VERSION = 0
10
11 !if "$(CFG)" == "debug" || "$(CFG)" == "Debug"
12 DEBUG_SUFFIX = -d
13 !else
14 DEBUG_SUFFIX =
15 !endif
16
17 !ifndef M4
18 M4 = m4
19 !endif
20
21 LIBSIGCPP_DEFINES = /DSIGC_BUILD /D_WINDLL
22
23 SIGCPP_BASE_CFLAGS =    \
24         /Ivs$(VSVER)\$(CFG)\$(PLAT)\sigc        \
25         /I..\untracked /I.. /I..\untracked\MSVC_NMake /I.       \
26         /EHsc $(CFLAGS)
27
28 LIBSIGC_INT_SOURCES = $(sigc_sources_cc:/=\)
29 LIBSIGC_INT_HDRS = $(sigc_public_h:/=\)
30
31 SIGCPP_CFLAGS = $(SIGCPP_BASE_CFLAGS) $(CFLAGS)
32 LIBSIGCPP_CFLAGS = $(SIGCPP_CFLAGS) $(LIBSIGCPP_DEFINES)
33
34 # We build sigc-vc$(PDBVER)0-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION).dll or
35 #          sigc-vc$(PDBVER)0d-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION).dll at least
36
37 !ifdef USE_MESON_LIBS
38 LIBSIGC_LIBNAME = sigc-$(LIBSIGC_MAJOR_VERSION).$(LIBSIGC_MINOR_VERSION)
39 LIBSIGC_DLLNAME = $(LIBSIGC_LIBNAME)-0
40 !else
41 LIBSIGC_LIBNAME = sigc-vc$(PDBVER)0$(DEBUG_SUFFIX)-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION)
42 LIBSIGC_DLLNAME = $(LIBSIGC_LIBNAME)
43 !endif
44
45 LIBSIGC_DLL = vs$(VSVER)\$(CFG)\$(PLAT)\$(LIBSIGC_DLLNAME).dll
46 LIBSIGC_LIB = vs$(VSVER)\$(CFG)\$(PLAT)\$(LIBSIGC_LIBNAME).lib
47
48 # Note that building the benchmark requires Boost!
49 libsigc_bench = vs$(VSVER)\$(CFG)\$(PLAT)\libsigc++-benchmark.exe
50
51 # If your Boost libraries are built as DLLs, use BOOST_DLL=1 in your NMake command line
52 !ifdef BOOST_DLL
53 SIGCPP_BENCHMARK_CFLAGS = $(SIGCPP_BASE_CFLAGS) /DBOOST_ALL_DYN_LINK
54 !else
55 SIGCPP_BENCHMARK_CFLAGS = $(SIGCPP_BASE_CFLAGS)
56 !endif