| | @@ -13,15 +13,15 @@ |
| 13 | 13 | # |
| 14 | 14 | |
| 15 | 15 | #### Select one of MinGW, MinGW-64 (32-bit) or MinGW-w64 (64-bit) compilers. |
| 16 | 16 | # By default, this is an empty string (i.e. use the native compiler). |
| 17 | 17 | # |
| 18 | | -# PREFIX = |
| 18 | +PREFIX = |
| 19 | 19 | # PREFIX = mingw32- |
| 20 | 20 | # PREFIX = i686-pc-mingw32- |
| 21 | 21 | # PREFIX = i686-w64-mingw32- |
| 22 | | -PREFIX = x86_64-w64-mingw32- |
| 22 | +# PREFIX = x86_64-w64-mingw32- |
| 23 | 23 | |
| 24 | 24 | #### The toplevel directory of the source tree. Fossil can be built |
| 25 | 25 | # in a directory that is separate from the source tree. Just change |
| 26 | 26 | # the following to point from the build directory to the src/ folder. |
| 27 | 27 | # |
| | @@ -35,10 +35,14 @@ |
| 35 | 35 | # will run on the platform that is doing the build. This is used |
| 36 | 36 | # to compile code-generator programs as part of the build process. |
| 37 | 37 | # See TCC below for the C compiler for building the finished binary. |
| 38 | 38 | # |
| 39 | 39 | BCC = gcc |
| 40 | + |
| 41 | +#### Enable compiling with debug symbols (much larger binary) |
| 42 | +# |
| 43 | +# FOSSIL_ENABLE_SYMBOLS = 1 |
| 40 | 44 | |
| 41 | 45 | #### Enable JSON (http://www.json.org) support using "cson" |
| 42 | 46 | # |
| 43 | 47 | # FOSSIL_ENABLE_JSON = 1 |
| 44 | 48 | |
| | @@ -112,11 +116,18 @@ |
| 112 | 116 | # will run on the target platform. This is usually the same |
| 113 | 117 | # as BCC, unless you are cross-compiling. This C compiler builds |
| 114 | 118 | # the finished binary for fossil. The BCC compiler above is used |
| 115 | 119 | # for building intermediate code-generator tools. |
| 116 | 120 | # |
| 117 | | -TCC = $(PREFIX)gcc -g -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR) |
| 121 | +TCC = $(PREFIX)gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR) |
| 122 | + |
| 123 | +#### Add the necessary command line options to build with debugging |
| 124 | +# symbols, if enabled. |
| 125 | +# |
| 126 | +ifdef FOSSIL_ENABLE_SYMBOLS |
| 127 | +TCC += -g |
| 128 | +endif |
| 118 | 129 | |
| 119 | 130 | #### Compile resources for use in building executables that will run |
| 120 | 131 | # on the target platform. |
| 121 | 132 | # |
| 122 | 133 | RCC = $(PREFIX)windres -I$(SRCDIR) -I$(ZINCDIR) |
| 123 | 134 | |