]> git.tdb.fi Git - ext/sigc++-2.0.git/blob - MSVC_NMake/create-lists-msvc.mak
Adjust the name of the library to match upstream
[ext/sigc++-2.0.git] / MSVC_NMake / create-lists-msvc.mak
1 # Convert the source listing to object (.obj) listing in
2 # another NMake Makefile module, include it, and clean it up.
3 # This is a "fact-of-life" regarding NMake Makefiles...
4 # This file does not need to be changed unless one is maintaining the NMake Makefiles
5
6 # For those wanting to add things here:
7 # To add a list, do the following:
8 # # $(description_of_list)
9 # if [call create-lists.bat header $(makefile_snippet_file) $(variable_name)]
10 # endif
11 #
12 # if [call create-lists.bat file $(makefile_snippet_file) $(file_name)]
13 # endif
14 #
15 # if [call create-lists.bat footer $(makefile_snippet_file)]
16 # endif
17 # ... (repeat the if [call ...] lines in the above order if needed)
18 # !include $(makefile_snippet_file)
19 #
20 # (add the following after checking the entries in $(makefile_snippet_file) is correct)
21 # (the batch script appends to $(makefile_snippet_file), you will need to clear the file unless the following line is added)
22 #!if [del /f /q $(makefile_snippet_file)]
23 #!endif
24
25 # In order to obtain the .obj filename that is needed for NMake Makefiles to build DLLs/static LIBs or EXEs, do the following
26 # instead when doing 'if [call create-lists.bat file $(makefile_snippet_file) $(file_name)]'
27 # (repeat if there are multiple $(srcext)'s in $(source_list), ignore any headers):
28 # !if [for %c in ($(source_list)) do @if "%~xc" == ".$(srcext)" @call create-lists.bat file $(makefile_snippet_file) $(intdir)\%~nc.obj]
29 #
30 # $(intdir)\%~nc.obj needs to correspond to the rules added in build-rules-msvc.mak
31 # %~xc gives the file extension of a given file, %c in this case, so if %c is a.cc, %~xc means .cc
32 # %~nc gives the file name of a given file without extension, %c in this case, so if %c is a.cc, %~nc means a
33
34 NULL=
35
36 # For libsigc++
37
38 !if [call create-lists.bat header sigc.mak sigc_dll_OBJS]
39 !endif
40
41 !if [for %c in ($(sigc_sources_cc)) do @if "%~xc" == ".cc" @call create-lists.bat file sigc.mak vs^$(VSVER)\^$(CFG)\^$(PLAT)\sigc\%~nc.obj]
42 !endif
43
44 !if [@call create-lists.bat file sigc.mak vs^$(VSVER)\^$(CFG)\^$(PLAT)\sigc\sigc.res]
45 !endif
46
47 !if [call create-lists.bat footer sigc.mak]
48 !endif
49
50 !if [call create-lists.bat header sigc.mak sigc_m4_srcdirs]
51 !endif
52
53 !if [for %d in (adaptors\lambda adaptors functors) do @call create-lists.bat file sigc.mak %d]
54 !endif
55
56 !if [call create-lists.bat footer sigc.mak]
57 !endif
58
59 !if [for %d in (examples tests) do @call create-lists.bat header sigc.mak libsigc_%d & @(for %s in (..\%d\*.cc) do @if not "%~ns" == "testutilities" if not "%~ns" == "benchmark" call create-lists.bat file sigc.mak vs$(VSVER)\$(CFG)\$(PLAT)\%~ns.exe) & @call create-lists.bat footer sigc.mak]
60 !endif
61
62 !if [call create-lists.bat header sigc.mak libsigc_benchmark & @for %s in (..\tests\benchmark.cc) do @(call create-lists.bat file sigc.mak vs$(VSVER)\$(CFG)\$(PLAT)\%~ns.exe) & @call create-lists.bat footer sigc.mak]
63 !endif
64
65 !if [for %d in (examples tests) do @for %s in (..\%d\*.cc) do @if not "%~ns" == "benchmark" echo vs^$(VSVER)\^$(CFG)\^$(PLAT)\sigc-%d\%~ns.obj: %s>>sigc.mak & @echo. @if not exist ^$(@D)\ md ^$(@D)>>sigc.mak & @echo. ^$(CXX) ^$(SIGCPP_CFLAGS) /Fo^$(@D)\ /Fd^$(@D)\ ^$** /c>>sigc.mak & @echo.>>sigc.mak]
66 !endif
67
68 !if [for %s in (..\tests\benchmark.cc) do @echo vs^$(VSVER)\^$(CFG)\^$(PLAT)\sigc-tests\%~ns.obj: %s>>sigc.mak & @echo. @if not exist ^$(@D)\ md ^$(@D)>>sigc.mak & @echo. ^$(CXX) ^$(SIGCPP_BENCHMARK_CFLAGS) /Fo^$(@D)\ /Fd^$(@D)\ ^$** /c>>sigc.mak & @echo.>>sigc.mak]
69 !endif
70
71 !if [for %s in (..\examples\*.cc) do @echo vs^$(VSVER)\^$(CFG)\^$(PLAT)\%~ns.exe: ^$(LIBSIGC_LIB) vs^$(VSVER)\^$(CFG)\^$(PLAT)\sigc-examples\%~ns.obj>>sigc.mak & @echo. link ^$(LDFLAGS) ^$** /out:^$@>>sigc.mak & @echo.>>sigc.mak]
72 !endif
73
74 !if [for %s in (..\tests\*.cc) do @if not "%~ns" == "testutilities" echo vs^$(VSVER)\^$(CFG)\^$(PLAT)\%~ns.exe: ^$(LIBSIGC_LIB) vs^$(VSVER)\^$(CFG)\^$(PLAT)\sigc-tests\%~ns.obj vs^$(VSVER)\^$(CFG)\^$(PLAT)\sigc-tests\testutilities.obj>>sigc.mak & @echo. link ^$(LDFLAGS) ^$** /out:^$@>>sigc.mak & @echo.>>sigc.mak]
75 !endif
76
77 !include sigc.mak
78
79 !if [del /f /q sigc.mak]
80 !endif