74 lines
2.8 KiB
Makefile
74 lines
2.8 KiB
Makefile
# Convert the source listing to object (.obj) listing in
|
|
# another NMake Makefile module, include it, and clean it up.
|
|
# This is a "fact-of-life" regarding NMake Makefiles...
|
|
# This file does not need to be changed unless one is maintaining the NMake Makefiles
|
|
|
|
# For those wanting to add things here:
|
|
# To add a list, do the following:
|
|
# # $(description_of_list)
|
|
# if [call create-lists.bat header $(makefile_snippet_file) $(variable_name)]
|
|
# endif
|
|
#
|
|
# if [call create-lists.bat file $(makefile_snippet_file) $(file_name)]
|
|
# endif
|
|
#
|
|
# if [call create-lists.bat footer $(makefile_snippet_file)]
|
|
# endif
|
|
# ... (repeat the if [call ...] lines in the above order if needed)
|
|
# !include $(makefile_snippet_file)
|
|
#
|
|
# (add the following after checking the entries in $(makefile_snippet_file) is correct)
|
|
# (the batch script appends to $(makefile_snippet_file), you will need to clear the file unless the following line is added)
|
|
#!if [del /f /q $(makefile_snippet_file)]
|
|
#!endif
|
|
|
|
# In order to obtain the .obj filename that is needed for NMake Makefiles to build DLLs/static LIBs or EXEs, do the following
|
|
# instead when doing 'if [call create-lists.bat file $(makefile_snippet_file) $(file_name)]'
|
|
# (repeat if there are multiple $(srcext)'s in $(source_list), ignore any headers):
|
|
# !if [for %c in ($(source_list)) do @if "%~xc" == ".$(srcext)" @call create-lists.bat file $(makefile_snippet_file) $(intdir)\%~nc.obj]
|
|
#
|
|
# $(intdir)\%~nc.obj needs to correspond to the rules added in build-rules-msvc.mak
|
|
# %~xc gives the file extension of a given file, %c in this case, so if %c is a.cc, %~xc means .cc
|
|
# %~nc gives the file name of a given file without extension, %c in this case, so if %c is a.cc, %~nc means a
|
|
|
|
NULL=
|
|
|
|
# For libsigc++
|
|
|
|
!if [call create-lists.bat header libsigcpp.mak libsigcpp_dll_OBJS]
|
|
!endif
|
|
|
|
!if [for %c in ($(sigc_sources_cc)) do @if "%~xc" == ".cc" @call create-lists.bat file libsigcpp.mak vs^$(VSVER)\^$(CFG)\^$(PLAT)\libsigcpp\%~nc.obj]
|
|
!endif
|
|
|
|
!if [@call create-lists.bat file libsigcpp.mak vs^$(VSVER)\^$(CFG)\^$(PLAT)\libsigcpp\sigc.res]
|
|
!endif
|
|
|
|
!if [call create-lists.bat footer libsigcpp.mak]
|
|
!endif
|
|
|
|
!if [call create-lists.bat header libsigcpp.mak libsigc_ex]
|
|
!endif
|
|
|
|
!if [for %s in (..\examples\*.cc) do @call create-lists.bat file libsigcpp.mak vs^$(VSVER)\^$(CFG)\^$(PLAT)\%~ns.exe]
|
|
!endif
|
|
|
|
!if [call create-lists.bat footer libsigcpp.mak]
|
|
!endif
|
|
|
|
!if [call create-lists.bat header libsigcpp.mak libsigc_tests]
|
|
!endif
|
|
|
|
# Skipping testutilities.cc: Not to be built as a .exe, but is a common dependency for the tests
|
|
# benchmark: Not built on default; requires Boost
|
|
!if [for %s in (..\tests\*.cc) do @if not "%~ns" == "testutilities" if not "%~ns" == "benchmark" @call create-lists.bat file libsigcpp.mak vs^$(VSVER)\^$(CFG)\^$(PLAT)\%~ns.exe]
|
|
!endif
|
|
|
|
!if [call create-lists.bat footer libsigcpp.mak]
|
|
!endif
|
|
|
|
!include libsigcpp.mak
|
|
|
|
!if [del /f /q libsigcpp.mak]
|
|
!endif
|