58 lines
1.5 KiB
Makefile
58 lines
1.5 KiB
Makefile
# NMake Makefile for building libsigc++ on Windows using Visual Studio
|
|
|
|
# The items below this line should not be changed, unless one is maintaining
|
|
# the NMake Makefiles. Customizations can be done in the following NMake Makefile
|
|
# portions (please see comments in the these files to see what can be customized):
|
|
#
|
|
# detectenv-msvc.mak
|
|
# config-msvc.mak
|
|
|
|
!include detectenv-msvc.mak
|
|
|
|
# Include the Makefile portions with the source listings
|
|
!include ..\sigc++\filelist.am
|
|
|
|
# Include the Makefile portion that enables features based on user input
|
|
!include config-msvc.mak
|
|
|
|
!if "$(VALID_CFGSET)" == "TRUE"
|
|
|
|
# We need Visual Studio 2013 or later
|
|
!if $(VSVER) < 12
|
|
VALID_MSC = FALSE
|
|
!else
|
|
VALID_MSC = TRUE
|
|
!endif
|
|
|
|
!if "$(VALID_MSC)" == "TRUE"
|
|
|
|
# Include the Makefile portion to convert the source and header lists
|
|
# into the lists we need for compilation and introspection
|
|
!include create-lists-msvc.mak
|
|
|
|
all: $(LIBSIGC_LIB) $(libsigc_ex) all-build-info
|
|
|
|
tests: $(libsigc_tests) all-build-info
|
|
|
|
benchmark: all $(libsigc_bench) all-build-info
|
|
|
|
# Include the build rules for sources, DLLs and executables
|
|
!include generate-msvc.mak
|
|
!include build-rules-msvc.mak
|
|
|
|
!include install.mak
|
|
|
|
!else # "$(VALID_MSC)" == "TRUE"
|
|
all:
|
|
@echo You need Visual Studio 2013 or later.
|
|
|
|
!endif # "$(VALID_MSC)" == "TRUE"
|
|
|
|
!else # "$(VALID_CFGSET)" == "TRUE"
|
|
all: help
|
|
@echo You need to specify a valid configuration, via
|
|
@echo CFG=release or CFG=debug
|
|
!endif # "$(VALID_CFGSET)" == "TRUE"
|
|
|
|
!include info-msvc.mak
|