Fossil SCM
Added some (as yet untested) fragments for FreeBSD, Solaris and OpenSolaris. FreeBSD and OpenSolaris testing are due soon.
Commit
ffcd314afcb29b5961443785eeff12f2ab6c6c5b
Parent
6b83b517df35aa2…
14 files changed
+23
+3
+22
+3
+3
+3
+3
+1
+3
+4
+4
+4
+20
+4
+
make/README.wiki
~
make/clang-fragment.mk
+
make/freebsd-fragment.mk
+
make/freebsdgcc-pre-config.mk
~
make/gcc-fragment.mk
~
make/linux-fragment.mk
+
make/linuxclang-pre-config.mk
+
make/linuxgcc-pre-config.mk
~
make/mingw32-fragment.mk
+
make/mingw32-pre-config.mk
+
make/opensolaris-fragment.mk
+
make/opensolarisgcc-pre-config.mk
+
make/solaris-fragment.mk
+
make/solarisgcc-pre-config.mk
+23
| --- a/make/README.wiki | ||
| +++ b/make/README.wiki | ||
| @@ -0,0 +1,23 @@ | ||
| 1 | +The makefile fragments in this "new build" directory are of three kinds: | |
| 2 | + | |
| 3 | + * Platform fragments for OS-specific settings. (e.g. | |
| 4 | + <code>linux-fragment.mk</code>); | |
| 5 | + * Compiler fragments for compiler-specific settings (e.g. | |
| 6 | + <code>clang-fragment.mk</code>); | |
| 7 | + * Sample <code>pre-config.mk</code> fragments to use as a baseline for | |
| 8 | + site-specific customization of the build process (e.g. | |
| 9 | + <code>linuxgcc-pre-config.mk</code>. | |
| 10 | + | |
| 11 | +Platform and compiler fragments should not be edited at site except to correct | |
| 12 | +errors in implementation or to add desirable new features so that clashes with | |
| 13 | +the <cite>Fossil</cite> repository don't interfere with operations. Where | |
| 14 | +possible all site customization should be done in pre- and post-config makefile | |
| 15 | +fragments. (Where this is not possible is probably indicative of modifications | |
| 16 | +required to the new build process. | |
| 17 | + | |
| 18 | +To use the sample pre-config fragments, simply copy them into the | |
| 19 | +<cite>Fossil</cite> distribution's root directory as <code>pre-config.mk</code> | |
| 20 | +and edit to taste. | |
| 21 | + | |
| 22 | +Note: new platform and compiler files are always welcome additions to the | |
| 23 | +commuand BSD buil |
| --- a/make/README.wiki | |
| +++ b/make/README.wiki | |
| @@ -0,0 +1,23 @@ | |
| --- a/make/README.wiki | |
| +++ b/make/README.wiki | |
| @@ -0,0 +1,23 @@ | |
| 1 | The makefile fragments in this "new build" directory are of three kinds: |
| 2 | |
| 3 | * Platform fragments for OS-specific settings. (e.g. |
| 4 | <code>linux-fragment.mk</code>); |
| 5 | * Compiler fragments for compiler-specific settings (e.g. |
| 6 | <code>clang-fragment.mk</code>); |
| 7 | * Sample <code>pre-config.mk</code> fragments to use as a baseline for |
| 8 | site-specific customization of the build process (e.g. |
| 9 | <code>linuxgcc-pre-config.mk</code>. |
| 10 | |
| 11 | Platform and compiler fragments should not be edited at site except to correct |
| 12 | errors in implementation or to add desirable new features so that clashes with |
| 13 | the <cite>Fossil</cite> repository don't interfere with operations. Where |
| 14 | possible all site customization should be done in pre- and post-config makefile |
| 15 | fragments. (Where this is not possible is probably indicative of modifications |
| 16 | required to the new build process. |
| 17 | |
| 18 | To use the sample pre-config fragments, simply copy them into the |
| 19 | <cite>Fossil</cite> distribution's root directory as <code>pre-config.mk</code> |
| 20 | and edit to taste. |
| 21 | |
| 22 | Note: new platform and compiler files are always welcome additions to the |
| 23 | commuand BSD buil |
| --- make/clang-fragment.mk | ||
| +++ make/clang-fragment.mk | ||
| @@ -1,5 +1,8 @@ | ||
| 1 | +#### Compiler-specific configuration for users of the CLANG compiler suite. | |
| 2 | +# | |
| 3 | + | |
| 1 | 4 | #### C Compiler and options for use in building executables that |
| 2 | 5 | # will run on the platform that is doing the build. This is used |
| 3 | 6 | # to compile code-generator programs as part of the build process. |
| 4 | 7 | # See TCC below for the C compiler for building the finished binary. |
| 5 | 8 | # |
| 6 | 9 | |
| 7 | 10 | ADDED make/freebsd-fragment.mk |
| 8 | 11 | ADDED make/freebsdgcc-pre-config.mk |
| --- make/clang-fragment.mk | |
| +++ make/clang-fragment.mk | |
| @@ -1,5 +1,8 @@ | |
| 1 | #### C Compiler and options for use in building executables that |
| 2 | # will run on the platform that is doing the build. This is used |
| 3 | # to compile code-generator programs as part of the build process. |
| 4 | # See TCC below for the C compiler for building the finished binary. |
| 5 | # |
| 6 | |
| 7 | DDED make/freebsd-fragment.mk |
| 8 | DDED make/freebsdgcc-pre-config.mk |
| --- make/clang-fragment.mk | |
| +++ make/clang-fragment.mk | |
| @@ -1,5 +1,8 @@ | |
| 1 | #### Compiler-specific configuration for users of the CLANG compiler suite. |
| 2 | # |
| 3 | |
| 4 | #### C Compiler and options for use in building executables that |
| 5 | # will run on the platform that is doing the build. This is used |
| 6 | # to compile code-generator programs as part of the build process. |
| 7 | # See TCC below for the C compiler for building the finished binary. |
| 8 | # |
| 9 | |
| 10 | DDED make/freebsd-fragment.mk |
| 11 | DDED make/freebsdgcc-pre-config.mk |
+22
| --- a/make/freebsd-fragment.mk | ||
| +++ b/make/freebsd-fragment.mk | ||
| @@ -0,0 +1,22 @@ | ||
| 1 | +#### OS-specific configuration for building Fossil on FreeBSD systems. | |
| 2 | +# | |
| 3 | +# UNTESTED | |
| 4 | + | |
| 5 | +#### The suffix to add to executable files. ".exe" for windows. | |
| 6 | +# Nothing for unix. | |
| 7 | +# | |
| 8 | +E = | |
| 9 | + | |
| 10 | +#### The directory into which object code files should be written. | |
| 11 | +# | |
| 12 | +OBJDIR = ./obj | |
| 13 | + | |
| 14 | +#### The following variable definitions decide which features are turned on or | |
| 15 | +# of when building Fossil. Comment out the features which are not needed by | |
| 16 | +# this platform. | |
| 17 | +# | |
| 18 | +#ENABLE_STATIC = 1 # we want a static build | |
| 19 | +ENABLE_SSL = 1 # we are using SSL | |
| 20 | +#ENABLE_SOCKET = 1 # we are using libsocket (OpenSolaris and Solaris) | |
| 21 | +#ENABLE_NSL = 1 # we are using libnsl library (Solaris) | |
| 22 | +ENABLE_I18N = 1 # w |
| --- a/make/freebsd-fragment.mk | |
| +++ b/make/freebsd-fragment.mk | |
| @@ -0,0 +1,22 @@ | |
| --- a/make/freebsd-fragment.mk | |
| +++ b/make/freebsd-fragment.mk | |
| @@ -0,0 +1,22 @@ | |
| 1 | #### OS-specific configuration for building Fossil on FreeBSD systems. |
| 2 | # |
| 3 | # UNTESTED |
| 4 | |
| 5 | #### The suffix to add to executable files. ".exe" for windows. |
| 6 | # Nothing for unix. |
| 7 | # |
| 8 | E = |
| 9 | |
| 10 | #### The directory into which object code files should be written. |
| 11 | # |
| 12 | OBJDIR = ./obj |
| 13 | |
| 14 | #### The following variable definitions decide which features are turned on or |
| 15 | # of when building Fossil. Comment out the features which are not needed by |
| 16 | # this platform. |
| 17 | # |
| 18 | #ENABLE_STATIC = 1 # we want a static build |
| 19 | ENABLE_SSL = 1 # we are using SSL |
| 20 | #ENABLE_SOCKET = 1 # we are using libsocket (OpenSolaris and Solaris) |
| 21 | #ENABLE_NSL = 1 # we are using libnsl library (Solaris) |
| 22 | ENABLE_I18N = 1 # w |
| --- a/make/freebsdgcc-pre-config.mk | ||
| +++ b/make/freebsdgcc-pre-config.mk | ||
| @@ -0,0 +1,3 @@ | ||
| 1 | +#### Sample pre-config.mk file for FreeBSD with Gpre-config.mk in the Fossil root directory to use. | |
| 2 | +# NOTE: You will need to | |
| 3 | +# UNTESTED |
| --- a/make/freebsdgcc-pre-config.mk | |
| +++ b/make/freebsdgcc-pre-config.mk | |
| @@ -0,0 +1,3 @@ | |
| --- a/make/freebsdgcc-pre-config.mk | |
| +++ b/make/freebsdgcc-pre-config.mk | |
| @@ -0,0 +1,3 @@ | |
| 1 | #### Sample pre-config.mk file for FreeBSD with Gpre-config.mk in the Fossil root directory to use. |
| 2 | # NOTE: You will need to |
| 3 | # UNTESTED |
+3
| --- make/gcc-fragment.mk | ||
| +++ make/gcc-fragment.mk | ||
| @@ -1,5 +1,8 @@ | ||
| 1 | +#### Compiler-specific configuration for users of the GCC compiler suite. | |
| 2 | +# | |
| 3 | + | |
| 1 | 4 | #### C Compiler and options for use in building executables that |
| 2 | 5 | # will run on the platform that is doing the build. This is used |
| 3 | 6 | # to compile code-generator programs as part of the build process. |
| 4 | 7 | # See TCC below for the C compiler for building the finished binary. |
| 5 | 8 | # |
| 6 | 9 |
| --- make/gcc-fragment.mk | |
| +++ make/gcc-fragment.mk | |
| @@ -1,5 +1,8 @@ | |
| 1 | #### C Compiler and options for use in building executables that |
| 2 | # will run on the platform that is doing the build. This is used |
| 3 | # to compile code-generator programs as part of the build process. |
| 4 | # See TCC below for the C compiler for building the finished binary. |
| 5 | # |
| 6 |
| --- make/gcc-fragment.mk | |
| +++ make/gcc-fragment.mk | |
| @@ -1,5 +1,8 @@ | |
| 1 | #### Compiler-specific configuration for users of the GCC compiler suite. |
| 2 | # |
| 3 | |
| 4 | #### C Compiler and options for use in building executables that |
| 5 | # will run on the platform that is doing the build. This is used |
| 6 | # to compile code-generator programs as part of the build process. |
| 7 | # See TCC below for the C compiler for building the finished binary. |
| 8 | # |
| 9 |
| --- make/linux-fragment.mk | ||
| +++ make/linux-fragment.mk | ||
| @@ -1,5 +1,8 @@ | ||
| 1 | +#### OS-specific configuration for building Fossil on Linux systems. | |
| 2 | +# | |
| 3 | + | |
| 1 | 4 | #### The suffix to add to executable files. ".exe" for windows. |
| 2 | 5 | # Nothing for unix. |
| 3 | 6 | # |
| 4 | 7 | E = |
| 5 | 8 | |
| 6 | 9 | |
| 7 | 10 | ADDED make/linuxclang-pre-config.mk |
| 8 | 11 | ADDED make/linuxgcc-pre-config.mk |
| --- make/linux-fragment.mk | |
| +++ make/linux-fragment.mk | |
| @@ -1,5 +1,8 @@ | |
| 1 | #### The suffix to add to executable files. ".exe" for windows. |
| 2 | # Nothing for unix. |
| 3 | # |
| 4 | E = |
| 5 | |
| 6 | |
| 7 | DDED make/linuxclang-pre-config.mk |
| 8 | DDED make/linuxgcc-pre-config.mk |
| --- make/linux-fragment.mk | |
| +++ make/linux-fragment.mk | |
| @@ -1,5 +1,8 @@ | |
| 1 | #### OS-specific configuration for building Fossil on Linux systems. |
| 2 | # |
| 3 | |
| 4 | #### The suffix to add to executable files. ".exe" for windows. |
| 5 | # Nothing for unix. |
| 6 | # |
| 7 | E = |
| 8 | |
| 9 | |
| 10 | DDED make/linuxclang-pre-config.mk |
| 11 | DDED make/linuxgcc-pre-config.mk |
| --- a/make/linuxclang-pre-config.mk | ||
| +++ b/make/linuxclang-pre-config.mk | ||
| @@ -0,0 +1,3 @@ | ||
| 1 | +#### Sample pre-config.mk file for Linux with CLApre-config.mk in the FossiPLATFORM=linux | |
| 2 | +COMPILER=clang | |
| 3 | + |
| --- a/make/linuxclang-pre-config.mk | |
| +++ b/make/linuxclang-pre-config.mk | |
| @@ -0,0 +1,3 @@ | |
| --- a/make/linuxclang-pre-config.mk | |
| +++ b/make/linuxclang-pre-config.mk | |
| @@ -0,0 +1,3 @@ | |
| 1 | #### Sample pre-config.mk file for Linux with CLApre-config.mk in the FossiPLATFORM=linux |
| 2 | COMPILER=clang |
| 3 |
| --- a/make/linuxgcc-pre-config.mk | ||
| +++ b/make/linuxgcc-pre-config.mk | ||
| @@ -0,0 +1 @@ | ||
| 1 | +#### Sample pre-config.mk file for Linux with Gpre-#### config.mk file f#### config.mk file for Linux |
| --- a/make/linuxgcc-pre-config.mk | |
| +++ b/make/linuxgcc-pre-config.mk | |
| @@ -0,0 +1 @@ | |
| --- a/make/linuxgcc-pre-config.mk | |
| +++ b/make/linuxgcc-pre-config.mk | |
| @@ -0,0 +1 @@ | |
| 1 | #### Sample pre-config.mk file for Linux with Gpre-#### config.mk file f#### config.mk file for Linux |
| --- make/mingw32-fragment.mk | ||
| +++ make/mingw32-fragment.mk | ||
| @@ -1,5 +1,8 @@ | ||
| 1 | +#### OS-specific configuration for building Fossil on MingGW32 systems. | |
| 2 | +# | |
| 3 | + | |
| 1 | 4 | #### The suffix to add to executable files. |
| 2 | 5 | # |
| 3 | 6 | E = .exe |
| 4 | 7 | |
| 5 | 8 | #### The directory into which object code files should be written. |
| 6 | 9 | |
| 7 | 10 | ADDED make/mingw32-pre-config.mk |
| 8 | 11 | ADDED make/opensolaris-fragment.mk |
| 9 | 12 | ADDED make/opensolarisgcc-pre-config.mk |
| 10 | 13 | ADDED make/solaris-fragment.mk |
| 11 | 14 | ADDED make/solarisgcc-pre-config.mk |
| --- make/mingw32-fragment.mk | |
| +++ make/mingw32-fragment.mk | |
| @@ -1,5 +1,8 @@ | |
| 1 | #### The suffix to add to executable files. |
| 2 | # |
| 3 | E = .exe |
| 4 | |
| 5 | #### The directory into which object code files should be written. |
| 6 | |
| 7 | DDED make/mingw32-pre-config.mk |
| 8 | DDED make/opensolaris-fragment.mk |
| 9 | DDED make/opensolarisgcc-pre-config.mk |
| 10 | DDED make/solaris-fragment.mk |
| 11 | DDED make/solarisgcc-pre-config.mk |
| --- make/mingw32-fragment.mk | |
| +++ make/mingw32-fragment.mk | |
| @@ -1,5 +1,8 @@ | |
| 1 | #### OS-specific configuration for building Fossil on MingGW32 systems. |
| 2 | # |
| 3 | |
| 4 | #### The suffix to add to executable files. |
| 5 | # |
| 6 | E = .exe |
| 7 | |
| 8 | #### The directory into which object code files should be written. |
| 9 | |
| 10 | DDED make/mingw32-pre-config.mk |
| 11 | DDED make/opensolaris-fragment.mk |
| 12 | DDED make/opensolarisgcc-pre-config.mk |
| 13 | DDED make/solaris-fragment.mk |
| 14 | DDED make/solarisgcc-pre-config.mk |
| --- a/make/mingw32-pre-config.mk | ||
| +++ b/make/mingw32-pre-config.mk | ||
| @@ -0,0 +1,4 @@ | ||
| 1 | +#### Sample pre-config.mk file for MinGWpre-32. | |
| 2 | +# Copy this filPLATFORM=mingw32 | |
| 3 | +COMPILER=gcc | |
| 4 | + |
| --- a/make/mingw32-pre-config.mk | |
| +++ b/make/mingw32-pre-config.mk | |
| @@ -0,0 +1,4 @@ | |
| --- a/make/mingw32-pre-config.mk | |
| +++ b/make/mingw32-pre-config.mk | |
| @@ -0,0 +1,4 @@ | |
| 1 | #### Sample pre-config.mk file for MinGWpre-32. |
| 2 | # Copy this filPLATFORM=mingw32 |
| 3 | COMPILER=gcc |
| 4 |
| --- a/make/opensolaris-fragment.mk | ||
| +++ b/make/opensolaris-fragment.mk | ||
| @@ -0,0 +1,4 @@ | ||
| 1 | +#### OS-specific configuration for building Fossil on OpenSolaris systems. | |
| 2 | +# | |
| 3 | +# UNTESTED#ENABLE_NSL = 1 # weSolaris) | |
| 4 | +ENABLE_I18N = 1 # w |
| --- a/make/opensolaris-fragment.mk | |
| +++ b/make/opensolaris-fragment.mk | |
| @@ -0,0 +1,4 @@ | |
| --- a/make/opensolaris-fragment.mk | |
| +++ b/make/opensolaris-fragment.mk | |
| @@ -0,0 +1,4 @@ | |
| 1 | #### OS-specific configuration for building Fossil on OpenSolaris systems. |
| 2 | # |
| 3 | # UNTESTED#ENABLE_NSL = 1 # weSolaris) |
| 4 | ENABLE_I18N = 1 # w |
| --- a/make/opensolarisgcc-pre-config.mk | ||
| +++ b/make/opensolarisgcc-pre-config.mk | ||
| @@ -0,0 +1,4 @@ | ||
| 1 | +#### Sample pre-config.mk file for OpenSolaris with GCC. | |
| 2 | +# Copy this file as pre-config.mk in the Fossil root directory to use. | |
| 3 | +# | |
| 4 | +# UNTESTED |
| --- a/make/opensolarisgcc-pre-config.mk | |
| +++ b/make/opensolarisgcc-pre-config.mk | |
| @@ -0,0 +1,4 @@ | |
| --- a/make/opensolarisgcc-pre-config.mk | |
| +++ b/make/opensolarisgcc-pre-config.mk | |
| @@ -0,0 +1,4 @@ | |
| 1 | #### Sample pre-config.mk file for OpenSolaris with GCC. |
| 2 | # Copy this file as pre-config.mk in the Fossil root directory to use. |
| 3 | # |
| 4 | # UNTESTED |
+20
| --- a/make/solaris-fragment.mk | ||
| +++ b/make/solaris-fragment.mk | ||
| @@ -0,0 +1,20 @@ | ||
| 1 | +# UNTESTED | |
| 2 | + | |
| 3 | +#### The suffix to add to executable files. ".exe" for windows. | |
| 4 | +# Nothing for unix. | |
| 5 | +# | |
| 6 | +E = | |
| 7 | + | |
| 8 | +#### The directory into which object code files should be written. | |
| 9 | +# | |
| 10 | +OBJDIR = ./obj | |
| 11 | + | |
| 12 | +#### The following variable definitions decide which features are turned on or | |
| 13 | +# of when building Fossil. Comment out the features which are not needed by | |
| 14 | +# this platform. | |
| 15 | +# | |
| 16 | +#ENABLE_STATIC = 1 # we want a static build | |
| 17 | +ENABLE_SSL = 1 # we are using SSL | |
| 18 | +ENABLE_SOCKET = 1 # we are using libsocket (OpenSolaris and Solaris) | |
| 19 | +ENABLE_NSL = 1 # we are using libnsl library (Solaris) | |
| 20 | +ENABLE_I18N = 1 # w |
| --- a/make/solaris-fragment.mk | |
| +++ b/make/solaris-fragment.mk | |
| @@ -0,0 +1,20 @@ | |
| --- a/make/solaris-fragment.mk | |
| +++ b/make/solaris-fragment.mk | |
| @@ -0,0 +1,20 @@ | |
| 1 | # UNTESTED |
| 2 | |
| 3 | #### The suffix to add to executable files. ".exe" for windows. |
| 4 | # Nothing for unix. |
| 5 | # |
| 6 | E = |
| 7 | |
| 8 | #### The directory into which object code files should be written. |
| 9 | # |
| 10 | OBJDIR = ./obj |
| 11 | |
| 12 | #### The following variable definitions decide which features are turned on or |
| 13 | # of when building Fossil. Comment out the features which are not needed by |
| 14 | # this platform. |
| 15 | # |
| 16 | #ENABLE_STATIC = 1 # we want a static build |
| 17 | ENABLE_SSL = 1 # we are using SSL |
| 18 | ENABLE_SOCKET = 1 # we are using libsocket (OpenSolaris and Solaris) |
| 19 | ENABLE_NSL = 1 # we are using libnsl library (Solaris) |
| 20 | ENABLE_I18N = 1 # w |
| --- a/make/solarisgcc-pre-config.mk | ||
| +++ b/make/solarisgcc-pre-config.mk | ||
| @@ -0,0 +1,4 @@ | ||
| 1 | +#### Sample pre-config.mk file for Solaris with Gpre-config.mk in the FossiPLATFORM=solaris | |
| 2 | +COMPILER=gcc | |
| 3 | + | |
| 4 | +# UNTESTED |
| --- a/make/solarisgcc-pre-config.mk | |
| +++ b/make/solarisgcc-pre-config.mk | |
| @@ -0,0 +1,4 @@ | |
| --- a/make/solarisgcc-pre-config.mk | |
| +++ b/make/solarisgcc-pre-config.mk | |
| @@ -0,0 +1,4 @@ | |
| 1 | #### Sample pre-config.mk file for Solaris with Gpre-config.mk in the FossiPLATFORM=solaris |
| 2 | COMPILER=gcc |
| 3 | |
| 4 | # UNTESTED |