44 lines
1.5 KiB
Makefile
44 lines
1.5 KiB
Makefile
# NMake Makefile portion for enabling features for Windows builds
|
|
|
|
# These are the base minimum libraries required for building libsigc++.
|
|
BASE_INCLUDES = /I$(PREFIX)\include
|
|
|
|
# Please do not change anything beneath this line unless maintaining the NMake Makefiles
|
|
|
|
LIBSIGC_MAJOR_VERSION = 2
|
|
LIBSIGC_MINOR_VERSION = 0
|
|
|
|
!if "$(CFG)" == "debug" || "$(CFG)" == "Debug"
|
|
LIBSIGC_DEBUG_SUFFIX = -d
|
|
!else
|
|
LIBSIGC_DEBUG_SUFFIX =
|
|
!endif
|
|
|
|
LIBSIGCPP_DEFINES = /DSIGC_BUILD /D_WINDLL
|
|
|
|
SIGCPP_BASE_CFLAGS = /I.. /I. /I..\untracked /I..\MSVC_NMake /wd4530 /EHsc $(CFLAGS)
|
|
|
|
LIBSIGC_INT_SOURCES = $(sigc_sources_cc:/=\)
|
|
LIBSIGC_INT_HDRS = $(sigc_public_h:/=\)
|
|
|
|
SIGCPP_CFLAGS = $(SIGCPP_BASE_CFLAGS) $(CFLAGS)
|
|
LIBSIGCPP_CFLAGS = $(SIGCPP_CFLAGS) $(LIBSIGCPP_DEFINES)
|
|
|
|
# We build sigc-vc$(PDBVER)0-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION).dll or
|
|
# sigc-vc$(PDBVER)0d-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION).dll at least
|
|
|
|
LIBSIGC_LIBNAME = sigc-vc$(PDBVER)0$(LIBSIGC_DEBUG_SUFFIX)-$(LIBSIGC_MAJOR_VERSION)_$(LIBSIGC_MINOR_VERSION)
|
|
|
|
LIBSIGC_DLL = vs$(VSVER)\$(CFG)\$(PLAT)\$(LIBSIGC_LIBNAME).dll
|
|
LIBSIGC_LIB = vs$(VSVER)\$(CFG)\$(PLAT)\$(LIBSIGC_LIBNAME).lib
|
|
|
|
# Note that building the benchmark requires Boost!
|
|
libsigc_bench = vs$(VSVER)\$(CFG)\$(PLAT)\libsigc++-benchmark.exe
|
|
|
|
# If your Boost libraries are built as DLLs, use BOOST_DLL=1 in your NMake command line
|
|
!ifdef BOOST_DLL
|
|
SIGCPP_BENCHMARK_CFLAGS = $(SIGCPP_BASE_CFLAGS) /DBOOST_ALL_DYN_LINK
|
|
!else
|
|
SIGCPP_BENCHMARK_CFLAGS = $(SIGCPP_BASE_CFLAGS)
|
|
!endif
|