1 # NMake Makefile portion for enabling features for Windows builds
3 # These are the base minimum libraries required for building libsigc++.
4 BASE_INCLUDES = /I$(PREFIX)\include
6 # Please do not change anything beneath this line unless maintaining the NMake Makefiles
8 LIBSIGC_MAJOR_VERSION = 2
9 LIBSIGC_MINOR_VERSION = 0
11 !if "$(CFG)" == "debug" || "$(CFG)" == "Debug"
21 LIBSIGCPP_DEFINES = /DSIGC_BUILD /D_WINDLL
23 SIGCPP_BASE_CFLAGS = \
24 /Ivs$(VSVER)\$(CFG)\$(PLAT)\sigc \
25 /I..\untracked /I.. /I..\untracked\MSVC_NMake /I. \
28 LIBSIGC_INT_SOURCES = $(sigc_sources_cc:/=\)
29 LIBSIGC_INT_HDRS = $(sigc_public_h:/=\)
31 SIGCPP_CFLAGS = $(SIGCPP_BASE_CFLAGS) $(CFLAGS)
32 LIBSIGCPP_CFLAGS = $(SIGCPP_CFLAGS) $(LIBSIGCPP_DEFINES)
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
38 LIBSIGC_LIBNAME = sigc-$(LIBSIGC_MAJOR_VERSION).$(LIBSIGC_MINOR_VERSION)
39 LIBSIGC_DLLNAME = $(LIBSIGC_LIBNAME)-0
41 LIBSIGC_LIBNAME = sigc-vc$(PDBVER)0$(DEBUG_SUFFIX)-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION)
42 LIBSIGC_DLLNAME = $(LIBSIGC_LIBNAME)
45 LIBSIGC_DLL = vs$(VSVER)\$(CFG)\$(PLAT)\$(LIBSIGC_DLLNAME).dll
46 LIBSIGC_LIB = vs$(VSVER)\$(CFG)\$(PLAT)\$(LIBSIGC_LIBNAME).lib
48 # Note that building the benchmark requires Boost!
49 libsigc_bench = vs$(VSVER)\$(CFG)\$(PLAT)\libsigc++-benchmark.exe
51 # If your Boost libraries are built as DLLs, use BOOST_DLL=1 in your NMake command line
53 SIGCPP_BENCHMARK_CFLAGS = $(SIGCPP_BASE_CFLAGS) /DBOOST_ALL_DYN_LINK
55 SIGCPP_BENCHMARK_CFLAGS = $(SIGCPP_BASE_CFLAGS)