Fossil SCM
Cleanup and unify the 'extra targets' handling.
Commit
6c6f83c4fd58a99efa39e182cb0993a3d631ae7c
Parent
5735181c4db4330…
4 files changed
+18
-11
+12
-6
+12
-6
+6
-5
+18
-11
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -713,11 +713,13 @@ | ||
| 713 | 713 | writeln -nonewline "OBJ =" |
| 714 | 714 | foreach s [lsort $src] { |
| 715 | 715 | writeln -nonewline " \\\n \$(OBJDIR)/$s.o" |
| 716 | 716 | } |
| 717 | 717 | writeln "\n" |
| 718 | -writeln "APPNAME = ${name}.exe" | |
| 718 | +writeln "APPNAME = ${name}.exe" | |
| 719 | +writeln "APPTARGETS =" | |
| 720 | +writeln "LIBTARGETS =" | |
| 719 | 721 | writeln { |
| 720 | 722 | #### If the USE_WINDOWS variable exists, it is assumed that we are building |
| 721 | 723 | # inside of a Windows-style shell; otherwise, it is assumed that we are |
| 722 | 724 | # building inside of a Unix-style shell. Note that the "move" command is |
| 723 | 725 | # broken when attempting to use it from the Windows shell via MinGW make |
| @@ -836,17 +838,15 @@ | ||
| 836 | 838 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc libz.a |
| 837 | 839 | |
| 838 | 840 | clean-zlib: |
| 839 | 841 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc clean |
| 840 | 842 | |
| 841 | -EXTRATARGET = | |
| 842 | - | |
| 843 | 843 | ifndef FOSSIL_ENABLE_MINIZ |
| 844 | -EXTRATARGET += zlib | |
| 844 | +LIBTARGETS += zlib | |
| 845 | 845 | endif |
| 846 | 846 | |
| 847 | -openssl: $(EXTRATARGET) | |
| 847 | +openssl: $(LIBTARGETS) | |
| 848 | 848 | ifndef FOSSIL_ENABLE_MINIZ |
| 849 | 849 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 850 | 850 | else |
| 851 | 851 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw |
| 852 | 852 | endif |
| @@ -860,11 +860,17 @@ | ||
| 860 | 860 | $(MAKE) -C $(TCLSRCDIR)/win $(TCLTARGET) |
| 861 | 861 | |
| 862 | 862 | clean-tcl: |
| 863 | 863 | $(MAKE) -C $(TCLSRCDIR)/win distclean |
| 864 | 864 | |
| 865 | -$(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(EXTRATARGET) | |
| 865 | +APPTARGETS += $(LIBTARGETS) | |
| 866 | + | |
| 867 | +ifdef FOSSIL_ENABLE_SSL | |
| 868 | +APPTARGETS += openssl | |
| 869 | +endif | |
| 870 | + | |
| 871 | +$(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(APPTARGETS) | |
| 866 | 872 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 867 | 873 | |
| 868 | 874 | # This rule prevents make from using its default rules to try build |
| 869 | 875 | # an executable named "manifest" out of the file named "manifest.c" |
| 870 | 876 | # |
| @@ -1279,12 +1285,13 @@ | ||
| 1279 | 1285 | writeln -nonewline " " |
| 1280 | 1286 | writeln "\$(OX)\\miniz\$O \\"; incr i |
| 1281 | 1287 | writeln "!endif" |
| 1282 | 1288 | writeln -nonewline " \$(OX)\\fossil.res\n\n" |
| 1283 | 1289 | writeln { |
| 1284 | -APPNAME = $(OX)\fossil$(E) | |
| 1285 | -PDBNAME = $(OX)\fossil$(P) | |
| 1290 | +APPNAME = $(OX)\fossil$(E) | |
| 1291 | +PDBNAME = $(OX)\fossil$(P) | |
| 1292 | +APPTARGETS = | |
| 1286 | 1293 | |
| 1287 | 1294 | all: $(OX) $(APPNAME) |
| 1288 | 1295 | |
| 1289 | 1296 | zlib: |
| 1290 | 1297 | @echo Building zlib from "$(ZLIBDIR)"... |
| @@ -1300,18 +1307,18 @@ | ||
| 1300 | 1307 | @pushd "$(SSLDIR)" && call ms\do_ms.bat && popd |
| 1301 | 1308 | @pushd "$(SSLDIR)" && $(MAKE) /f ms\nt.mak all && popd |
| 1302 | 1309 | !endif |
| 1303 | 1310 | |
| 1304 | 1311 | !ifndef FOSSIL_ENABLE_MINIZ |
| 1305 | -EXTRATARGETS = $(EXTRATARGETS) zlib | |
| 1312 | +APPTARGETS = $(APPTARGETS) zlib | |
| 1306 | 1313 | !endif |
| 1307 | 1314 | |
| 1308 | 1315 | !ifdef FOSSIL_ENABLE_SSL |
| 1309 | -EXTRATARGETS = $(EXTRATARGETS) openssl | |
| 1316 | +APPTARGETS = $(APPTARGETS) openssl | |
| 1310 | 1317 | !endif |
| 1311 | 1318 | |
| 1312 | -$(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OX)\linkopts $(EXTRATARGETS) | |
| 1319 | +$(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OX)\linkopts $(APPTARGETS) | |
| 1313 | 1320 | cd $(OX) |
| 1314 | 1321 | link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts |
| 1315 | 1322 | |
| 1316 | 1323 | $(OX)\linkopts: $B\win\Makefile.msc} |
| 1317 | 1324 | set redir {>} |
| 1318 | 1325 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -713,11 +713,13 @@ | |
| 713 | writeln -nonewline "OBJ =" |
| 714 | foreach s [lsort $src] { |
| 715 | writeln -nonewline " \\\n \$(OBJDIR)/$s.o" |
| 716 | } |
| 717 | writeln "\n" |
| 718 | writeln "APPNAME = ${name}.exe" |
| 719 | writeln { |
| 720 | #### If the USE_WINDOWS variable exists, it is assumed that we are building |
| 721 | # inside of a Windows-style shell; otherwise, it is assumed that we are |
| 722 | # building inside of a Unix-style shell. Note that the "move" command is |
| 723 | # broken when attempting to use it from the Windows shell via MinGW make |
| @@ -836,17 +838,15 @@ | |
| 836 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc libz.a |
| 837 | |
| 838 | clean-zlib: |
| 839 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc clean |
| 840 | |
| 841 | EXTRATARGET = |
| 842 | |
| 843 | ifndef FOSSIL_ENABLE_MINIZ |
| 844 | EXTRATARGET += zlib |
| 845 | endif |
| 846 | |
| 847 | openssl: $(EXTRATARGET) |
| 848 | ifndef FOSSIL_ENABLE_MINIZ |
| 849 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 850 | else |
| 851 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw |
| 852 | endif |
| @@ -860,11 +860,17 @@ | |
| 860 | $(MAKE) -C $(TCLSRCDIR)/win $(TCLTARGET) |
| 861 | |
| 862 | clean-tcl: |
| 863 | $(MAKE) -C $(TCLSRCDIR)/win distclean |
| 864 | |
| 865 | $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(EXTRATARGET) |
| 866 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 867 | |
| 868 | # This rule prevents make from using its default rules to try build |
| 869 | # an executable named "manifest" out of the file named "manifest.c" |
| 870 | # |
| @@ -1279,12 +1285,13 @@ | |
| 1279 | writeln -nonewline " " |
| 1280 | writeln "\$(OX)\\miniz\$O \\"; incr i |
| 1281 | writeln "!endif" |
| 1282 | writeln -nonewline " \$(OX)\\fossil.res\n\n" |
| 1283 | writeln { |
| 1284 | APPNAME = $(OX)\fossil$(E) |
| 1285 | PDBNAME = $(OX)\fossil$(P) |
| 1286 | |
| 1287 | all: $(OX) $(APPNAME) |
| 1288 | |
| 1289 | zlib: |
| 1290 | @echo Building zlib from "$(ZLIBDIR)"... |
| @@ -1300,18 +1307,18 @@ | |
| 1300 | @pushd "$(SSLDIR)" && call ms\do_ms.bat && popd |
| 1301 | @pushd "$(SSLDIR)" && $(MAKE) /f ms\nt.mak all && popd |
| 1302 | !endif |
| 1303 | |
| 1304 | !ifndef FOSSIL_ENABLE_MINIZ |
| 1305 | EXTRATARGETS = $(EXTRATARGETS) zlib |
| 1306 | !endif |
| 1307 | |
| 1308 | !ifdef FOSSIL_ENABLE_SSL |
| 1309 | EXTRATARGETS = $(EXTRATARGETS) openssl |
| 1310 | !endif |
| 1311 | |
| 1312 | $(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OX)\linkopts $(EXTRATARGETS) |
| 1313 | cd $(OX) |
| 1314 | link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts |
| 1315 | |
| 1316 | $(OX)\linkopts: $B\win\Makefile.msc} |
| 1317 | set redir {>} |
| 1318 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -713,11 +713,13 @@ | |
| 713 | writeln -nonewline "OBJ =" |
| 714 | foreach s [lsort $src] { |
| 715 | writeln -nonewline " \\\n \$(OBJDIR)/$s.o" |
| 716 | } |
| 717 | writeln "\n" |
| 718 | writeln "APPNAME = ${name}.exe" |
| 719 | writeln "APPTARGETS =" |
| 720 | writeln "LIBTARGETS =" |
| 721 | writeln { |
| 722 | #### If the USE_WINDOWS variable exists, it is assumed that we are building |
| 723 | # inside of a Windows-style shell; otherwise, it is assumed that we are |
| 724 | # building inside of a Unix-style shell. Note that the "move" command is |
| 725 | # broken when attempting to use it from the Windows shell via MinGW make |
| @@ -836,17 +838,15 @@ | |
| 838 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc libz.a |
| 839 | |
| 840 | clean-zlib: |
| 841 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc clean |
| 842 | |
| 843 | ifndef FOSSIL_ENABLE_MINIZ |
| 844 | LIBTARGETS += zlib |
| 845 | endif |
| 846 | |
| 847 | openssl: $(LIBTARGETS) |
| 848 | ifndef FOSSIL_ENABLE_MINIZ |
| 849 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 850 | else |
| 851 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw |
| 852 | endif |
| @@ -860,11 +860,17 @@ | |
| 860 | $(MAKE) -C $(TCLSRCDIR)/win $(TCLTARGET) |
| 861 | |
| 862 | clean-tcl: |
| 863 | $(MAKE) -C $(TCLSRCDIR)/win distclean |
| 864 | |
| 865 | APPTARGETS += $(LIBTARGETS) |
| 866 | |
| 867 | ifdef FOSSIL_ENABLE_SSL |
| 868 | APPTARGETS += openssl |
| 869 | endif |
| 870 | |
| 871 | $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(APPTARGETS) |
| 872 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 873 | |
| 874 | # This rule prevents make from using its default rules to try build |
| 875 | # an executable named "manifest" out of the file named "manifest.c" |
| 876 | # |
| @@ -1279,12 +1285,13 @@ | |
| 1285 | writeln -nonewline " " |
| 1286 | writeln "\$(OX)\\miniz\$O \\"; incr i |
| 1287 | writeln "!endif" |
| 1288 | writeln -nonewline " \$(OX)\\fossil.res\n\n" |
| 1289 | writeln { |
| 1290 | APPNAME = $(OX)\fossil$(E) |
| 1291 | PDBNAME = $(OX)\fossil$(P) |
| 1292 | APPTARGETS = |
| 1293 | |
| 1294 | all: $(OX) $(APPNAME) |
| 1295 | |
| 1296 | zlib: |
| 1297 | @echo Building zlib from "$(ZLIBDIR)"... |
| @@ -1300,18 +1307,18 @@ | |
| 1307 | @pushd "$(SSLDIR)" && call ms\do_ms.bat && popd |
| 1308 | @pushd "$(SSLDIR)" && $(MAKE) /f ms\nt.mak all && popd |
| 1309 | !endif |
| 1310 | |
| 1311 | !ifndef FOSSIL_ENABLE_MINIZ |
| 1312 | APPTARGETS = $(APPTARGETS) zlib |
| 1313 | !endif |
| 1314 | |
| 1315 | !ifdef FOSSIL_ENABLE_SSL |
| 1316 | APPTARGETS = $(APPTARGETS) openssl |
| 1317 | !endif |
| 1318 | |
| 1319 | $(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OX)\linkopts $(APPTARGETS) |
| 1320 | cd $(OX) |
| 1321 | link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts |
| 1322 | |
| 1323 | $(OX)\linkopts: $B\win\Makefile.msc} |
| 1324 | set redir {>} |
| 1325 |
+12
-6
| --- win/Makefile.mingw | ||
| +++ win/Makefile.mingw | ||
| @@ -646,11 +646,13 @@ | ||
| 646 | 646 | $(OBJDIR)/wysiwyg.o \ |
| 647 | 647 | $(OBJDIR)/xfer.o \ |
| 648 | 648 | $(OBJDIR)/xfersetup.o \ |
| 649 | 649 | $(OBJDIR)/zip.o |
| 650 | 650 | |
| 651 | -APPNAME = fossil.exe | |
| 651 | +APPNAME = fossil.exe | |
| 652 | +APPTARGETS = | |
| 653 | +LIBTARGETS = | |
| 652 | 654 | |
| 653 | 655 | #### If the USE_WINDOWS variable exists, it is assumed that we are building |
| 654 | 656 | # inside of a Windows-style shell; otherwise, it is assumed that we are |
| 655 | 657 | # building inside of a Unix-style shell. Note that the "move" command is |
| 656 | 658 | # broken when attempting to use it from the Windows shell via MinGW make |
| @@ -766,17 +768,15 @@ | ||
| 766 | 768 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc libz.a |
| 767 | 769 | |
| 768 | 770 | clean-zlib: |
| 769 | 771 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc clean |
| 770 | 772 | |
| 771 | -EXTRATARGET = | |
| 772 | - | |
| 773 | 773 | ifndef FOSSIL_ENABLE_MINIZ |
| 774 | -EXTRATARGET += zlib | |
| 774 | +LIBTARGETS += zlib | |
| 775 | 775 | endif |
| 776 | 776 | |
| 777 | -openssl: $(EXTRATARGET) | |
| 777 | +openssl: $(LIBTARGETS) | |
| 778 | 778 | ifndef FOSSIL_ENABLE_MINIZ |
| 779 | 779 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 780 | 780 | else |
| 781 | 781 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw |
| 782 | 782 | endif |
| @@ -790,11 +790,17 @@ | ||
| 790 | 790 | $(MAKE) -C $(TCLSRCDIR)/win $(TCLTARGET) |
| 791 | 791 | |
| 792 | 792 | clean-tcl: |
| 793 | 793 | $(MAKE) -C $(TCLSRCDIR)/win distclean |
| 794 | 794 | |
| 795 | -$(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(EXTRATARGET) | |
| 795 | +APPTARGETS += $(LIBTARGETS) | |
| 796 | + | |
| 797 | +ifdef FOSSIL_ENABLE_SSL | |
| 798 | +APPTARGETS += openssl | |
| 799 | +endif | |
| 800 | + | |
| 801 | +$(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(APPTARGETS) | |
| 796 | 802 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 797 | 803 | |
| 798 | 804 | # This rule prevents make from using its default rules to try build |
| 799 | 805 | # an executable named "manifest" out of the file named "manifest.c" |
| 800 | 806 | # |
| 801 | 807 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -646,11 +646,13 @@ | |
| 646 | $(OBJDIR)/wysiwyg.o \ |
| 647 | $(OBJDIR)/xfer.o \ |
| 648 | $(OBJDIR)/xfersetup.o \ |
| 649 | $(OBJDIR)/zip.o |
| 650 | |
| 651 | APPNAME = fossil.exe |
| 652 | |
| 653 | #### If the USE_WINDOWS variable exists, it is assumed that we are building |
| 654 | # inside of a Windows-style shell; otherwise, it is assumed that we are |
| 655 | # building inside of a Unix-style shell. Note that the "move" command is |
| 656 | # broken when attempting to use it from the Windows shell via MinGW make |
| @@ -766,17 +768,15 @@ | |
| 766 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc libz.a |
| 767 | |
| 768 | clean-zlib: |
| 769 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc clean |
| 770 | |
| 771 | EXTRATARGET = |
| 772 | |
| 773 | ifndef FOSSIL_ENABLE_MINIZ |
| 774 | EXTRATARGET += zlib |
| 775 | endif |
| 776 | |
| 777 | openssl: $(EXTRATARGET) |
| 778 | ifndef FOSSIL_ENABLE_MINIZ |
| 779 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 780 | else |
| 781 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw |
| 782 | endif |
| @@ -790,11 +790,17 @@ | |
| 790 | $(MAKE) -C $(TCLSRCDIR)/win $(TCLTARGET) |
| 791 | |
| 792 | clean-tcl: |
| 793 | $(MAKE) -C $(TCLSRCDIR)/win distclean |
| 794 | |
| 795 | $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(EXTRATARGET) |
| 796 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 797 | |
| 798 | # This rule prevents make from using its default rules to try build |
| 799 | # an executable named "manifest" out of the file named "manifest.c" |
| 800 | # |
| 801 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -646,11 +646,13 @@ | |
| 646 | $(OBJDIR)/wysiwyg.o \ |
| 647 | $(OBJDIR)/xfer.o \ |
| 648 | $(OBJDIR)/xfersetup.o \ |
| 649 | $(OBJDIR)/zip.o |
| 650 | |
| 651 | APPNAME = fossil.exe |
| 652 | APPTARGETS = |
| 653 | LIBTARGETS = |
| 654 | |
| 655 | #### If the USE_WINDOWS variable exists, it is assumed that we are building |
| 656 | # inside of a Windows-style shell; otherwise, it is assumed that we are |
| 657 | # building inside of a Unix-style shell. Note that the "move" command is |
| 658 | # broken when attempting to use it from the Windows shell via MinGW make |
| @@ -766,17 +768,15 @@ | |
| 768 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc libz.a |
| 769 | |
| 770 | clean-zlib: |
| 771 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc clean |
| 772 | |
| 773 | ifndef FOSSIL_ENABLE_MINIZ |
| 774 | LIBTARGETS += zlib |
| 775 | endif |
| 776 | |
| 777 | openssl: $(LIBTARGETS) |
| 778 | ifndef FOSSIL_ENABLE_MINIZ |
| 779 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 780 | else |
| 781 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw |
| 782 | endif |
| @@ -790,11 +790,17 @@ | |
| 790 | $(MAKE) -C $(TCLSRCDIR)/win $(TCLTARGET) |
| 791 | |
| 792 | clean-tcl: |
| 793 | $(MAKE) -C $(TCLSRCDIR)/win distclean |
| 794 | |
| 795 | APPTARGETS += $(LIBTARGETS) |
| 796 | |
| 797 | ifdef FOSSIL_ENABLE_SSL |
| 798 | APPTARGETS += openssl |
| 799 | endif |
| 800 | |
| 801 | $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(APPTARGETS) |
| 802 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 803 | |
| 804 | # This rule prevents make from using its default rules to try build |
| 805 | # an executable named "manifest" out of the file named "manifest.c" |
| 806 | # |
| 807 |
+12
-6
| --- win/Makefile.mingw.mistachkin | ||
| +++ win/Makefile.mingw.mistachkin | ||
| @@ -646,11 +646,13 @@ | ||
| 646 | 646 | $(OBJDIR)/wysiwyg.o \ |
| 647 | 647 | $(OBJDIR)/xfer.o \ |
| 648 | 648 | $(OBJDIR)/xfersetup.o \ |
| 649 | 649 | $(OBJDIR)/zip.o |
| 650 | 650 | |
| 651 | -APPNAME = fossil.exe | |
| 651 | +APPNAME = fossil.exe | |
| 652 | +APPTARGETS = | |
| 653 | +LIBTARGETS = | |
| 652 | 654 | |
| 653 | 655 | #### If the USE_WINDOWS variable exists, it is assumed that we are building |
| 654 | 656 | # inside of a Windows-style shell; otherwise, it is assumed that we are |
| 655 | 657 | # building inside of a Unix-style shell. Note that the "move" command is |
| 656 | 658 | # broken when attempting to use it from the Windows shell via MinGW make |
| @@ -766,17 +768,15 @@ | ||
| 766 | 768 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc libz.a |
| 767 | 769 | |
| 768 | 770 | clean-zlib: |
| 769 | 771 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc clean |
| 770 | 772 | |
| 771 | -EXTRATARGET = | |
| 772 | - | |
| 773 | 773 | ifndef FOSSIL_ENABLE_MINIZ |
| 774 | -EXTRATARGET += zlib | |
| 774 | +LIBTARGETS += zlib | |
| 775 | 775 | endif |
| 776 | 776 | |
| 777 | -openssl: $(EXTRATARGET) | |
| 777 | +openssl: $(LIBTARGETS) | |
| 778 | 778 | ifndef FOSSIL_ENABLE_MINIZ |
| 779 | 779 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 780 | 780 | else |
| 781 | 781 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw |
| 782 | 782 | endif |
| @@ -790,11 +790,17 @@ | ||
| 790 | 790 | $(MAKE) -C $(TCLSRCDIR)/win $(TCLTARGET) |
| 791 | 791 | |
| 792 | 792 | clean-tcl: |
| 793 | 793 | $(MAKE) -C $(TCLSRCDIR)/win distclean |
| 794 | 794 | |
| 795 | -$(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(EXTRATARGET) | |
| 795 | +APPTARGETS += $(LIBTARGETS) | |
| 796 | + | |
| 797 | +ifdef FOSSIL_ENABLE_SSL | |
| 798 | +APPTARGETS += openssl | |
| 799 | +endif | |
| 800 | + | |
| 801 | +$(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(APPTARGETS) | |
| 796 | 802 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 797 | 803 | |
| 798 | 804 | # This rule prevents make from using its default rules to try build |
| 799 | 805 | # an executable named "manifest" out of the file named "manifest.c" |
| 800 | 806 | # |
| 801 | 807 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -646,11 +646,13 @@ | |
| 646 | $(OBJDIR)/wysiwyg.o \ |
| 647 | $(OBJDIR)/xfer.o \ |
| 648 | $(OBJDIR)/xfersetup.o \ |
| 649 | $(OBJDIR)/zip.o |
| 650 | |
| 651 | APPNAME = fossil.exe |
| 652 | |
| 653 | #### If the USE_WINDOWS variable exists, it is assumed that we are building |
| 654 | # inside of a Windows-style shell; otherwise, it is assumed that we are |
| 655 | # building inside of a Unix-style shell. Note that the "move" command is |
| 656 | # broken when attempting to use it from the Windows shell via MinGW make |
| @@ -766,17 +768,15 @@ | |
| 766 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc libz.a |
| 767 | |
| 768 | clean-zlib: |
| 769 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc clean |
| 770 | |
| 771 | EXTRATARGET = |
| 772 | |
| 773 | ifndef FOSSIL_ENABLE_MINIZ |
| 774 | EXTRATARGET += zlib |
| 775 | endif |
| 776 | |
| 777 | openssl: $(EXTRATARGET) |
| 778 | ifndef FOSSIL_ENABLE_MINIZ |
| 779 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 780 | else |
| 781 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw |
| 782 | endif |
| @@ -790,11 +790,17 @@ | |
| 790 | $(MAKE) -C $(TCLSRCDIR)/win $(TCLTARGET) |
| 791 | |
| 792 | clean-tcl: |
| 793 | $(MAKE) -C $(TCLSRCDIR)/win distclean |
| 794 | |
| 795 | $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(EXTRATARGET) |
| 796 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 797 | |
| 798 | # This rule prevents make from using its default rules to try build |
| 799 | # an executable named "manifest" out of the file named "manifest.c" |
| 800 | # |
| 801 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -646,11 +646,13 @@ | |
| 646 | $(OBJDIR)/wysiwyg.o \ |
| 647 | $(OBJDIR)/xfer.o \ |
| 648 | $(OBJDIR)/xfersetup.o \ |
| 649 | $(OBJDIR)/zip.o |
| 650 | |
| 651 | APPNAME = fossil.exe |
| 652 | APPTARGETS = |
| 653 | LIBTARGETS = |
| 654 | |
| 655 | #### If the USE_WINDOWS variable exists, it is assumed that we are building |
| 656 | # inside of a Windows-style shell; otherwise, it is assumed that we are |
| 657 | # building inside of a Unix-style shell. Note that the "move" command is |
| 658 | # broken when attempting to use it from the Windows shell via MinGW make |
| @@ -766,17 +768,15 @@ | |
| 768 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc libz.a |
| 769 | |
| 770 | clean-zlib: |
| 771 | $(MAKE) -C $(ZLIBDIR) PREFIX=$(PREFIX) -f win32/Makefile.gcc clean |
| 772 | |
| 773 | ifndef FOSSIL_ENABLE_MINIZ |
| 774 | LIBTARGETS += zlib |
| 775 | endif |
| 776 | |
| 777 | openssl: $(LIBTARGETS) |
| 778 | ifndef FOSSIL_ENABLE_MINIZ |
| 779 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 780 | else |
| 781 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) mingw |
| 782 | endif |
| @@ -790,11 +790,17 @@ | |
| 790 | $(MAKE) -C $(TCLSRCDIR)/win $(TCLTARGET) |
| 791 | |
| 792 | clean-tcl: |
| 793 | $(MAKE) -C $(TCLSRCDIR)/win distclean |
| 794 | |
| 795 | APPTARGETS += $(LIBTARGETS) |
| 796 | |
| 797 | ifdef FOSSIL_ENABLE_SSL |
| 798 | APPTARGETS += openssl |
| 799 | endif |
| 800 | |
| 801 | $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o $(APPTARGETS) |
| 802 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 803 | |
| 804 | # This rule prevents make from using its default rules to try build |
| 805 | # an executable named "manifest" out of the file named "manifest.c" |
| 806 | # |
| 807 |
+6
-5
| --- win/Makefile.msc | ||
| +++ win/Makefile.msc | ||
| @@ -376,12 +376,13 @@ | ||
| 376 | 376 | $(OX)\miniz$O \ |
| 377 | 377 | !endif |
| 378 | 378 | $(OX)\fossil.res |
| 379 | 379 | |
| 380 | 380 | |
| 381 | -APPNAME = $(OX)\fossil$(E) | |
| 382 | -PDBNAME = $(OX)\fossil$(P) | |
| 381 | +APPNAME = $(OX)\fossil$(E) | |
| 382 | +PDBNAME = $(OX)\fossil$(P) | |
| 383 | +APPTARGETS = | |
| 383 | 384 | |
| 384 | 385 | all: $(OX) $(APPNAME) |
| 385 | 386 | |
| 386 | 387 | zlib: |
| 387 | 388 | @echo Building zlib from "$(ZLIBDIR)"... |
| @@ -397,18 +398,18 @@ | ||
| 397 | 398 | @pushd "$(SSLDIR)" && call ms\do_ms.bat && popd |
| 398 | 399 | @pushd "$(SSLDIR)" && $(MAKE) /f ms\nt.mak all && popd |
| 399 | 400 | !endif |
| 400 | 401 | |
| 401 | 402 | !ifndef FOSSIL_ENABLE_MINIZ |
| 402 | -EXTRATARGETS = $(EXTRATARGETS) zlib | |
| 403 | +APPTARGETS = $(APPTARGETS) zlib | |
| 403 | 404 | !endif |
| 404 | 405 | |
| 405 | 406 | !ifdef FOSSIL_ENABLE_SSL |
| 406 | -EXTRATARGETS = $(EXTRATARGETS) openssl | |
| 407 | +APPTARGETS = $(APPTARGETS) openssl | |
| 407 | 408 | !endif |
| 408 | 409 | |
| 409 | -$(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OX)\linkopts $(EXTRATARGETS) | |
| 410 | +$(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OX)\linkopts $(APPTARGETS) | |
| 410 | 411 | cd $(OX) |
| 411 | 412 | link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts |
| 412 | 413 | |
| 413 | 414 | $(OX)\linkopts: $B\win\Makefile.msc |
| 414 | 415 | echo $(OX)\add.obj > $@ |
| 415 | 416 |
| --- win/Makefile.msc | |
| +++ win/Makefile.msc | |
| @@ -376,12 +376,13 @@ | |
| 376 | $(OX)\miniz$O \ |
| 377 | !endif |
| 378 | $(OX)\fossil.res |
| 379 | |
| 380 | |
| 381 | APPNAME = $(OX)\fossil$(E) |
| 382 | PDBNAME = $(OX)\fossil$(P) |
| 383 | |
| 384 | all: $(OX) $(APPNAME) |
| 385 | |
| 386 | zlib: |
| 387 | @echo Building zlib from "$(ZLIBDIR)"... |
| @@ -397,18 +398,18 @@ | |
| 397 | @pushd "$(SSLDIR)" && call ms\do_ms.bat && popd |
| 398 | @pushd "$(SSLDIR)" && $(MAKE) /f ms\nt.mak all && popd |
| 399 | !endif |
| 400 | |
| 401 | !ifndef FOSSIL_ENABLE_MINIZ |
| 402 | EXTRATARGETS = $(EXTRATARGETS) zlib |
| 403 | !endif |
| 404 | |
| 405 | !ifdef FOSSIL_ENABLE_SSL |
| 406 | EXTRATARGETS = $(EXTRATARGETS) openssl |
| 407 | !endif |
| 408 | |
| 409 | $(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OX)\linkopts $(EXTRATARGETS) |
| 410 | cd $(OX) |
| 411 | link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts |
| 412 | |
| 413 | $(OX)\linkopts: $B\win\Makefile.msc |
| 414 | echo $(OX)\add.obj > $@ |
| 415 |
| --- win/Makefile.msc | |
| +++ win/Makefile.msc | |
| @@ -376,12 +376,13 @@ | |
| 376 | $(OX)\miniz$O \ |
| 377 | !endif |
| 378 | $(OX)\fossil.res |
| 379 | |
| 380 | |
| 381 | APPNAME = $(OX)\fossil$(E) |
| 382 | PDBNAME = $(OX)\fossil$(P) |
| 383 | APPTARGETS = |
| 384 | |
| 385 | all: $(OX) $(APPNAME) |
| 386 | |
| 387 | zlib: |
| 388 | @echo Building zlib from "$(ZLIBDIR)"... |
| @@ -397,18 +398,18 @@ | |
| 398 | @pushd "$(SSLDIR)" && call ms\do_ms.bat && popd |
| 399 | @pushd "$(SSLDIR)" && $(MAKE) /f ms\nt.mak all && popd |
| 400 | !endif |
| 401 | |
| 402 | !ifndef FOSSIL_ENABLE_MINIZ |
| 403 | APPTARGETS = $(APPTARGETS) zlib |
| 404 | !endif |
| 405 | |
| 406 | !ifdef FOSSIL_ENABLE_SSL |
| 407 | APPTARGETS = $(APPTARGETS) openssl |
| 408 | !endif |
| 409 | |
| 410 | $(APPNAME) : translate$E mkindex$E headers $(OBJ) $(OX)\linkopts $(APPTARGETS) |
| 411 | cd $(OX) |
| 412 | link $(LDFLAGS) /OUT:$@ $(LIBDIR) Wsetargv.obj fossil.res @linkopts |
| 413 | |
| 414 | $(OX)\linkopts: $B\win\Makefile.msc |
| 415 | echo $(OX)\add.obj > $@ |
| 416 |