Fossil SCM
Add new tcl target to Makefile.mingw. Only build what is necessary for building Fossil.
Commit
c237195fa4b9bf926a53b33548e32f061b6035fb
Parent
5d20065c4b9963c…
3 files changed
+6
+6
+6
+6
| --- src/makemake.tcl | ||
| +++ src/makemake.tcl | ||
| @@ -451,12 +451,14 @@ | ||
| 451 | 451 | |
| 452 | 452 | #### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)? |
| 453 | 453 | # |
| 454 | 454 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 455 | 455 | LIBTCL = -ltclstub86 |
| 456 | +TCLTARGET = libtclstub86.a | |
| 456 | 457 | else |
| 457 | 458 | LIBTCL = -ltcl86 |
| 459 | +TCLTARGET = binaries | |
| 458 | 460 | endif |
| 459 | 461 | |
| 460 | 462 | #### C Compile and options for use in building executables that |
| 461 | 463 | # will run on the target platform. This is usually the same |
| 462 | 464 | # as BCC, unless you are cross-compiling. This C compiler builds |
| @@ -695,10 +697,14 @@ | ||
| 695 | 697 | |
| 696 | 698 | openssl: zlib |
| 697 | 699 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 698 | 700 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 699 | 701 | |
| 702 | +tcl: | |
| 703 | + cd $(TCLSRCDIR)/win;./configure | |
| 704 | + $(MAKE) -C $(TCLSRCDIR)/win $(TCLTARGET) | |
| 705 | + | |
| 700 | 706 | $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o zlib |
| 701 | 707 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 702 | 708 | |
| 703 | 709 | # This rule prevents make from using its default rules to try build |
| 704 | 710 | # an executable named "manifest" out of the file named "manifest.c" |
| 705 | 711 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -451,12 +451,14 @@ | |
| 451 | |
| 452 | #### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)? |
| 453 | # |
| 454 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 455 | LIBTCL = -ltclstub86 |
| 456 | else |
| 457 | LIBTCL = -ltcl86 |
| 458 | endif |
| 459 | |
| 460 | #### C Compile and options for use in building executables that |
| 461 | # will run on the target platform. This is usually the same |
| 462 | # as BCC, unless you are cross-compiling. This C compiler builds |
| @@ -695,10 +697,14 @@ | |
| 695 | |
| 696 | openssl: zlib |
| 697 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 698 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 699 | |
| 700 | $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o zlib |
| 701 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 702 | |
| 703 | # This rule prevents make from using its default rules to try build |
| 704 | # an executable named "manifest" out of the file named "manifest.c" |
| 705 |
| --- src/makemake.tcl | |
| +++ src/makemake.tcl | |
| @@ -451,12 +451,14 @@ | |
| 451 | |
| 452 | #### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)? |
| 453 | # |
| 454 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 455 | LIBTCL = -ltclstub86 |
| 456 | TCLTARGET = libtclstub86.a |
| 457 | else |
| 458 | LIBTCL = -ltcl86 |
| 459 | TCLTARGET = binaries |
| 460 | endif |
| 461 | |
| 462 | #### C Compile and options for use in building executables that |
| 463 | # will run on the target platform. This is usually the same |
| 464 | # as BCC, unless you are cross-compiling. This C compiler builds |
| @@ -695,10 +697,14 @@ | |
| 697 | |
| 698 | openssl: zlib |
| 699 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 700 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 701 | |
| 702 | tcl: |
| 703 | cd $(TCLSRCDIR)/win;./configure |
| 704 | $(MAKE) -C $(TCLSRCDIR)/win $(TCLTARGET) |
| 705 | |
| 706 | $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o zlib |
| 707 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 708 | |
| 709 | # This rule prevents make from using its default rules to try build |
| 710 | # an executable named "manifest" out of the file named "manifest.c" |
| 711 |
+6
| --- win/Makefile.mingw | ||
| +++ win/Makefile.mingw | ||
| @@ -112,12 +112,14 @@ | ||
| 112 | 112 | |
| 113 | 113 | #### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)? |
| 114 | 114 | # |
| 115 | 115 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 116 | 116 | LIBTCL = -ltclstub86 |
| 117 | +TCLTARGET = libtclstub86.a | |
| 117 | 118 | else |
| 118 | 119 | LIBTCL = -ltcl86 |
| 120 | +TCLTARGET = binaries | |
| 119 | 121 | endif |
| 120 | 122 | |
| 121 | 123 | #### C Compile and options for use in building executables that |
| 122 | 124 | # will run on the target platform. This is usually the same |
| 123 | 125 | # as BCC, unless you are cross-compiling. This C compiler builds |
| @@ -662,10 +664,14 @@ | ||
| 662 | 664 | |
| 663 | 665 | openssl: zlib |
| 664 | 666 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 665 | 667 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 666 | 668 | |
| 669 | +tcl: | |
| 670 | + cd $(TCLSRCDIR)/win;./configure | |
| 671 | + $(MAKE) -C $(TCLSRCDIR)/win $(TCLTARGET) | |
| 672 | + | |
| 667 | 673 | $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o zlib |
| 668 | 674 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 669 | 675 | |
| 670 | 676 | # This rule prevents make from using its default rules to try build |
| 671 | 677 | # an executable named "manifest" out of the file named "manifest.c" |
| 672 | 678 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -112,12 +112,14 @@ | |
| 112 | |
| 113 | #### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)? |
| 114 | # |
| 115 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 116 | LIBTCL = -ltclstub86 |
| 117 | else |
| 118 | LIBTCL = -ltcl86 |
| 119 | endif |
| 120 | |
| 121 | #### C Compile and options for use in building executables that |
| 122 | # will run on the target platform. This is usually the same |
| 123 | # as BCC, unless you are cross-compiling. This C compiler builds |
| @@ -662,10 +664,14 @@ | |
| 662 | |
| 663 | openssl: zlib |
| 664 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 665 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 666 | |
| 667 | $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o zlib |
| 668 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 669 | |
| 670 | # This rule prevents make from using its default rules to try build |
| 671 | # an executable named "manifest" out of the file named "manifest.c" |
| 672 |
| --- win/Makefile.mingw | |
| +++ win/Makefile.mingw | |
| @@ -112,12 +112,14 @@ | |
| 112 | |
| 113 | #### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)? |
| 114 | # |
| 115 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 116 | LIBTCL = -ltclstub86 |
| 117 | TCLTARGET = libtclstub86.a |
| 118 | else |
| 119 | LIBTCL = -ltcl86 |
| 120 | TCLTARGET = binaries |
| 121 | endif |
| 122 | |
| 123 | #### C Compile and options for use in building executables that |
| 124 | # will run on the target platform. This is usually the same |
| 125 | # as BCC, unless you are cross-compiling. This C compiler builds |
| @@ -662,10 +664,14 @@ | |
| 664 | |
| 665 | openssl: zlib |
| 666 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 667 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 668 | |
| 669 | tcl: |
| 670 | cd $(TCLSRCDIR)/win;./configure |
| 671 | $(MAKE) -C $(TCLSRCDIR)/win $(TCLTARGET) |
| 672 | |
| 673 | $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o zlib |
| 674 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 675 | |
| 676 | # This rule prevents make from using its default rules to try build |
| 677 | # an executable named "manifest" out of the file named "manifest.c" |
| 678 |
| --- win/Makefile.mingw.mistachkin | ||
| +++ win/Makefile.mingw.mistachkin | ||
| @@ -112,12 +112,14 @@ | ||
| 112 | 112 | |
| 113 | 113 | #### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)? |
| 114 | 114 | # |
| 115 | 115 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 116 | 116 | LIBTCL = -ltclstub86 |
| 117 | +TCLTARGET = libtclstub86.a | |
| 117 | 118 | else |
| 118 | 119 | LIBTCL = -ltcl86 |
| 120 | +TCLTARGET = binaries | |
| 119 | 121 | endif |
| 120 | 122 | |
| 121 | 123 | #### C Compile and options for use in building executables that |
| 122 | 124 | # will run on the target platform. This is usually the same |
| 123 | 125 | # as BCC, unless you are cross-compiling. This C compiler builds |
| @@ -662,10 +664,14 @@ | ||
| 662 | 664 | |
| 663 | 665 | openssl: zlib |
| 664 | 666 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 665 | 667 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 666 | 668 | |
| 669 | +tcl: | |
| 670 | + cd $(TCLSRCDIR)/win;./configure | |
| 671 | + $(MAKE) -C $(TCLSRCDIR)/win $(TCLTARGET) | |
| 672 | + | |
| 667 | 673 | $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o zlib |
| 668 | 674 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 669 | 675 | |
| 670 | 676 | # This rule prevents make from using its default rules to try build |
| 671 | 677 | # an executable named "manifest" out of the file named "manifest.c" |
| 672 | 678 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -112,12 +112,14 @@ | |
| 112 | |
| 113 | #### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)? |
| 114 | # |
| 115 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 116 | LIBTCL = -ltclstub86 |
| 117 | else |
| 118 | LIBTCL = -ltcl86 |
| 119 | endif |
| 120 | |
| 121 | #### C Compile and options for use in building executables that |
| 122 | # will run on the target platform. This is usually the same |
| 123 | # as BCC, unless you are cross-compiling. This C compiler builds |
| @@ -662,10 +664,14 @@ | |
| 662 | |
| 663 | openssl: zlib |
| 664 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 665 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 666 | |
| 667 | $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o zlib |
| 668 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 669 | |
| 670 | # This rule prevents make from using its default rules to try build |
| 671 | # an executable named "manifest" out of the file named "manifest.c" |
| 672 |
| --- win/Makefile.mingw.mistachkin | |
| +++ win/Makefile.mingw.mistachkin | |
| @@ -112,12 +112,14 @@ | |
| 112 | |
| 113 | #### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)? |
| 114 | # |
| 115 | ifdef FOSSIL_ENABLE_TCL_STUBS |
| 116 | LIBTCL = -ltclstub86 |
| 117 | TCLTARGET = libtclstub86.a |
| 118 | else |
| 119 | LIBTCL = -ltcl86 |
| 120 | TCLTARGET = binaries |
| 121 | endif |
| 122 | |
| 123 | #### C Compile and options for use in building executables that |
| 124 | # will run on the target platform. This is usually the same |
| 125 | # as BCC, unless you are cross-compiling. This C compiler builds |
| @@ -662,10 +664,14 @@ | |
| 664 | |
| 665 | openssl: zlib |
| 666 | cd $(OPENSSLLIBDIR);./Configure --cross-compile-prefix=$(PREFIX) --with-zlib-lib=$(PWD)/$(ZLIBDIR) --with-zlib-include=$(PWD)/$(ZLIBDIR) zlib mingw |
| 667 | $(MAKE) -C $(OPENSSLLIBDIR) build_libs |
| 668 | |
| 669 | tcl: |
| 670 | cd $(TCLSRCDIR)/win;./configure |
| 671 | $(MAKE) -C $(TCLSRCDIR)/win $(TCLTARGET) |
| 672 | |
| 673 | $(APPNAME): $(OBJDIR)/headers $(OBJ) $(EXTRAOBJ) $(OBJDIR)/fossil.o zlib |
| 674 | $(TCC) -o $(APPNAME) $(OBJ) $(EXTRAOBJ) $(LIB) $(OBJDIR)/fossil.o |
| 675 | |
| 676 | # This rule prevents make from using its default rules to try build |
| 677 | # an executable named "manifest" out of the file named "manifest.c" |
| 678 |