Fossil SCM
More MSVC makefile simplifications.
Commit
1ebe5bbec0b62412e02522b905d2586f267f086012d427c6862975c7b8918faf
Parent
2a0c020313c29b7…
2 files changed
+8
-8
+8
-8
+8
-8
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -1506,17 +1506,14 @@ | ||
| 1506 | 1506 | # |
| 1507 | 1507 | !if !exist("$(B)\.fossil-settings") |
| 1508 | 1508 | !error Please specify path to project base directory: B="path/to/fossil" |
| 1509 | 1509 | !endif |
| 1510 | 1510 | |
| 1511 | -# Perl is only necessary if OpenSSL support is enabled and it must | |
| 1512 | -# be built from source code. The PERLDIR variable should point to | |
| 1513 | -# the directory containing the main Perl binary (i.e. "perl.exe"). | |
| 1514 | -!ifndef PERLDIR | |
| 1515 | -PERLDIR = C:\Perl\bin | |
| 1516 | -!endif | |
| 1517 | - | |
| 1511 | +# Perl is only necessary if OpenSSL support is enabled and it is built from | |
| 1512 | +# source code. The PERLDIR environment variable, if it exists, should point | |
| 1513 | +# to the directory containing the main Perl executable specified here (i.e. | |
| 1514 | +# "perl.exe"). | |
| 1518 | 1515 | PERL = perl.exe |
| 1519 | 1516 | |
| 1520 | 1517 | # Enable debugging symbols? |
| 1521 | 1518 | !ifndef DEBUG |
| 1522 | 1519 | DEBUG = 0 |
| @@ -1655,13 +1652,16 @@ | ||
| 1655 | 1652 | |
| 1656 | 1653 | !if $(FOSSIL_ENABLE_TCL)!=0 |
| 1657 | 1654 | INCL = $(INCL) /I"$(TCLINCDIR)" |
| 1658 | 1655 | !endif |
| 1659 | 1656 | |
| 1660 | -CFLAGS = /nologo /wd4996 | |
| 1657 | +CFLAGS = /nologo | |
| 1661 | 1658 | LDFLAGS = |
| 1662 | 1659 | |
| 1660 | +CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS | |
| 1661 | +CFLAGS = $(CFLAGS) /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_NONSTDC_NO_WARNINGS | |
| 1662 | + | |
| 1663 | 1663 | !if $(FOSSIL_DYNAMIC_BUILD)!=0 |
| 1664 | 1664 | LDFLAGS = $(LDFLAGS) /MANIFEST |
| 1665 | 1665 | !else |
| 1666 | 1666 | LDFLAGS = $(LDFLAGS) /NODEFAULTLIB:msvcrt /MANIFEST:NO |
| 1667 | 1667 | !endif |
| 1668 | 1668 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -1506,17 +1506,14 @@ | |
| 1506 | # |
| 1507 | !if !exist("$(B)\.fossil-settings") |
| 1508 | !error Please specify path to project base directory: B="path/to/fossil" |
| 1509 | !endif |
| 1510 | |
| 1511 | # Perl is only necessary if OpenSSL support is enabled and it must |
| 1512 | # be built from source code. The PERLDIR variable should point to |
| 1513 | # the directory containing the main Perl binary (i.e. "perl.exe"). |
| 1514 | !ifndef PERLDIR |
| 1515 | PERLDIR = C:\Perl\bin |
| 1516 | !endif |
| 1517 | |
| 1518 | PERL = perl.exe |
| 1519 | |
| 1520 | # Enable debugging symbols? |
| 1521 | !ifndef DEBUG |
| 1522 | DEBUG = 0 |
| @@ -1655,13 +1652,16 @@ | |
| 1655 | |
| 1656 | !if $(FOSSIL_ENABLE_TCL)!=0 |
| 1657 | INCL = $(INCL) /I"$(TCLINCDIR)" |
| 1658 | !endif |
| 1659 | |
| 1660 | CFLAGS = /nologo /wd4996 |
| 1661 | LDFLAGS = |
| 1662 | |
| 1663 | !if $(FOSSIL_DYNAMIC_BUILD)!=0 |
| 1664 | LDFLAGS = $(LDFLAGS) /MANIFEST |
| 1665 | !else |
| 1666 | LDFLAGS = $(LDFLAGS) /NODEFAULTLIB:msvcrt /MANIFEST:NO |
| 1667 | !endif |
| 1668 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -1506,17 +1506,14 @@ | |
| 1506 | # |
| 1507 | !if !exist("$(B)\.fossil-settings") |
| 1508 | !error Please specify path to project base directory: B="path/to/fossil" |
| 1509 | !endif |
| 1510 | |
| 1511 | # Perl is only necessary if OpenSSL support is enabled and it is built from |
| 1512 | # source code. The PERLDIR environment variable, if it exists, should point |
| 1513 | # to the directory containing the main Perl executable specified here (i.e. |
| 1514 | # "perl.exe"). |
| 1515 | PERL = perl.exe |
| 1516 | |
| 1517 | # Enable debugging symbols? |
| 1518 | !ifndef DEBUG |
| 1519 | DEBUG = 0 |
| @@ -1655,13 +1652,16 @@ | |
| 1652 | |
| 1653 | !if $(FOSSIL_ENABLE_TCL)!=0 |
| 1654 | INCL = $(INCL) /I"$(TCLINCDIR)" |
| 1655 | !endif |
| 1656 | |
| 1657 | CFLAGS = /nologo |
| 1658 | LDFLAGS = |
| 1659 | |
| 1660 | CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS |
| 1661 | CFLAGS = $(CFLAGS) /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_NONSTDC_NO_WARNINGS |
| 1662 | |
| 1663 | !if $(FOSSIL_DYNAMIC_BUILD)!=0 |
| 1664 | LDFLAGS = $(LDFLAGS) /MANIFEST |
| 1665 | !else |
| 1666 | LDFLAGS = $(LDFLAGS) /NODEFAULTLIB:msvcrt /MANIFEST:NO |
| 1667 | !endif |
| 1668 |
+8
-8
| --- win/Makefile.msc | ||
| +++ win/Makefile.msc | ||
| @@ -31,17 +31,14 @@ | ||
| 31 | 31 | # |
| 32 | 32 | !if !exist("$(B)\.fossil-settings") |
| 33 | 33 | !error Please specify path to project base directory: B="path/to/fossil" |
| 34 | 34 | !endif |
| 35 | 35 | |
| 36 | -# Perl is only necessary if OpenSSL support is enabled and it must | |
| 37 | -# be built from source code. The PERLDIR variable should point to | |
| 38 | -# the directory containing the main Perl binary (i.e. "perl.exe"). | |
| 39 | -!ifndef PERLDIR | |
| 40 | -PERLDIR = C:\Perl\bin | |
| 41 | -!endif | |
| 42 | - | |
| 36 | +# Perl is only necessary if OpenSSL support is enabled and it is built from | |
| 37 | +# source code. The PERLDIR environment variable, if it exists, should point | |
| 38 | +# to the directory containing the main Perl executable specified here (i.e. | |
| 39 | +# "perl.exe"). | |
| 43 | 40 | PERL = perl.exe |
| 44 | 41 | |
| 45 | 42 | # Enable debugging symbols? |
| 46 | 43 | !ifndef DEBUG |
| 47 | 44 | DEBUG = 0 |
| @@ -180,13 +177,16 @@ | ||
| 180 | 177 | |
| 181 | 178 | !if $(FOSSIL_ENABLE_TCL)!=0 |
| 182 | 179 | INCL = $(INCL) /I"$(TCLINCDIR)" |
| 183 | 180 | !endif |
| 184 | 181 | |
| 185 | -CFLAGS = /nologo /wd4996 | |
| 182 | +CFLAGS = /nologo | |
| 186 | 183 | LDFLAGS = |
| 187 | 184 | |
| 185 | +CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS | |
| 186 | +CFLAGS = $(CFLAGS) /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_NONSTDC_NO_WARNINGS | |
| 187 | + | |
| 188 | 188 | !if $(FOSSIL_DYNAMIC_BUILD)!=0 |
| 189 | 189 | LDFLAGS = $(LDFLAGS) /MANIFEST |
| 190 | 190 | !else |
| 191 | 191 | LDFLAGS = $(LDFLAGS) /NODEFAULTLIB:msvcrt /MANIFEST:NO |
| 192 | 192 | !endif |
| 193 | 193 |
| --- win/Makefile.msc | |
| +++ win/Makefile.msc | |
| @@ -31,17 +31,14 @@ | |
| 31 | # |
| 32 | !if !exist("$(B)\.fossil-settings") |
| 33 | !error Please specify path to project base directory: B="path/to/fossil" |
| 34 | !endif |
| 35 | |
| 36 | # Perl is only necessary if OpenSSL support is enabled and it must |
| 37 | # be built from source code. The PERLDIR variable should point to |
| 38 | # the directory containing the main Perl binary (i.e. "perl.exe"). |
| 39 | !ifndef PERLDIR |
| 40 | PERLDIR = C:\Perl\bin |
| 41 | !endif |
| 42 | |
| 43 | PERL = perl.exe |
| 44 | |
| 45 | # Enable debugging symbols? |
| 46 | !ifndef DEBUG |
| 47 | DEBUG = 0 |
| @@ -180,13 +177,16 @@ | |
| 180 | |
| 181 | !if $(FOSSIL_ENABLE_TCL)!=0 |
| 182 | INCL = $(INCL) /I"$(TCLINCDIR)" |
| 183 | !endif |
| 184 | |
| 185 | CFLAGS = /nologo /wd4996 |
| 186 | LDFLAGS = |
| 187 | |
| 188 | !if $(FOSSIL_DYNAMIC_BUILD)!=0 |
| 189 | LDFLAGS = $(LDFLAGS) /MANIFEST |
| 190 | !else |
| 191 | LDFLAGS = $(LDFLAGS) /NODEFAULTLIB:msvcrt /MANIFEST:NO |
| 192 | !endif |
| 193 |
| --- win/Makefile.msc | |
| +++ win/Makefile.msc | |
| @@ -31,17 +31,14 @@ | |
| 31 | # |
| 32 | !if !exist("$(B)\.fossil-settings") |
| 33 | !error Please specify path to project base directory: B="path/to/fossil" |
| 34 | !endif |
| 35 | |
| 36 | # Perl is only necessary if OpenSSL support is enabled and it is built from |
| 37 | # source code. The PERLDIR environment variable, if it exists, should point |
| 38 | # to the directory containing the main Perl executable specified here (i.e. |
| 39 | # "perl.exe"). |
| 40 | PERL = perl.exe |
| 41 | |
| 42 | # Enable debugging symbols? |
| 43 | !ifndef DEBUG |
| 44 | DEBUG = 0 |
| @@ -180,13 +177,16 @@ | |
| 177 | |
| 178 | !if $(FOSSIL_ENABLE_TCL)!=0 |
| 179 | INCL = $(INCL) /I"$(TCLINCDIR)" |
| 180 | !endif |
| 181 | |
| 182 | CFLAGS = /nologo |
| 183 | LDFLAGS = |
| 184 | |
| 185 | CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS |
| 186 | CFLAGS = $(CFLAGS) /D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_NONSTDC_NO_WARNINGS |
| 187 | |
| 188 | !if $(FOSSIL_DYNAMIC_BUILD)!=0 |
| 189 | LDFLAGS = $(LDFLAGS) /MANIFEST |
| 190 | !else |
| 191 | LDFLAGS = $(LDFLAGS) /NODEFAULTLIB:msvcrt /MANIFEST:NO |
| 192 | !endif |
| 193 |