Fossil SCM

More cleanup of MinGW makefiles.

mistachkin 2012-01-18 11:09 trunk
Commit 533caec0a6711c8d246476c2aec3e889d5aa6e3d
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -19,24 +19,24 @@
1919
#
2020
BCC = gcc
2121
2222
#### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
2323
#
24
-# FOSSIL_ENABLE_SSL=1
24
+# FOSSIL_ENABLE_SSL = 1
2525
26
-#### The directory in which the zlib compression library is installed.
26
+#### The directories where the zlib include and library files are located.
2727
#
28
-#
29
-ZLIBDIR = /programs/gnuwin32
28
+ZINCDIR = /programs/gnuwin32/include
29
+ZLIBDIR = /programs/gnuwin32/lib
3030
3131
#### C Compile and options for use in building executables that
3232
# will run on the target platform. This is usually the same
3333
# as BCC, unless you are cross-compiling. This C compiler builds
3434
# the finished binary for fossil. The BCC compiler above is used
3535
# for building intermediate code-generator tools.
3636
#
37
-TCC = gcc -Os -Wall -L$(ZLIBDIR)/lib -I$(ZLIBDIR)/include
37
+TCC = gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
3838
3939
# With HTTPS support
4040
ifdef FOSSIL_ENABLE_SSL
4141
TCC += -DFOSSIL_ENABLE_SSL=1
4242
endif
@@ -56,11 +56,11 @@
5656
endif
5757
5858
#### These libraries MUST appear in the same order as they do for Tcl
5959
# or linking with it will not work (exact reason unknown).
6060
#
61
-LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32
61
+LIB += -lws2_32
6262
6363
#### Tcl shell for use in running the fossil testsuite. This is only
6464
# used for testing. If you do not run
6565
#
6666
TCLSH = tclsh
6767
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -19,24 +19,24 @@
19 #
20 BCC = gcc
21
22 #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
23 #
24 # FOSSIL_ENABLE_SSL=1
25
26 #### The directory in which the zlib compression library is installed.
27 #
28 #
29 ZLIBDIR = /programs/gnuwin32
30
31 #### C Compile and options for use in building executables that
32 # will run on the target platform. This is usually the same
33 # as BCC, unless you are cross-compiling. This C compiler builds
34 # the finished binary for fossil. The BCC compiler above is used
35 # for building intermediate code-generator tools.
36 #
37 TCC = gcc -Os -Wall -L$(ZLIBDIR)/lib -I$(ZLIBDIR)/include
38
39 # With HTTPS support
40 ifdef FOSSIL_ENABLE_SSL
41 TCC += -DFOSSIL_ENABLE_SSL=1
42 endif
@@ -56,11 +56,11 @@
56 endif
57
58 #### These libraries MUST appear in the same order as they do for Tcl
59 # or linking with it will not work (exact reason unknown).
60 #
61 LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32
62
63 #### Tcl shell for use in running the fossil testsuite. This is only
64 # used for testing. If you do not run
65 #
66 TCLSH = tclsh
67
--- win/Makefile.mingw
+++ win/Makefile.mingw
@@ -19,24 +19,24 @@
19 #
20 BCC = gcc
21
22 #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
23 #
24 # FOSSIL_ENABLE_SSL = 1
25
26 #### The directories where the zlib include and library files are located.
27 #
28 ZINCDIR = /programs/gnuwin32/include
29 ZLIBDIR = /programs/gnuwin32/lib
30
31 #### C Compile and options for use in building executables that
32 # will run on the target platform. This is usually the same
33 # as BCC, unless you are cross-compiling. This C compiler builds
34 # the finished binary for fossil. The BCC compiler above is used
35 # for building intermediate code-generator tools.
36 #
37 TCC = gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
38
39 # With HTTPS support
40 ifdef FOSSIL_ENABLE_SSL
41 TCC += -DFOSSIL_ENABLE_SSL=1
42 endif
@@ -56,11 +56,11 @@
56 endif
57
58 #### These libraries MUST appear in the same order as they do for Tcl
59 # or linking with it will not work (exact reason unknown).
60 #
61 LIB += -lws2_32
62
63 #### Tcl shell for use in running the fossil testsuite. This is only
64 # used for testing. If you do not run
65 #
66 TCLSH = tclsh
67
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -19,34 +19,36 @@
1919
#
2020
BCC = gcc
2121
2222
#### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
2323
#
24
-FOSSIL_ENABLE_SSL=1
24
+FOSSIL_ENABLE_SSL = 1
2525
2626
#### Enable scripting support via Tcl/Tk
2727
#
28
-FOSSIL_ENABLE_TCL=1
28
+FOSSIL_ENABLE_TCL = 1
2929
3030
#### Use the Tcl source directory instead of the install directory?
3131
# This is useful when Tcl has been compiled statically with MinGW.
3232
#
33
-FOSSIL_TCL_SOURCE=1
33
+FOSSIL_TCL_SOURCE = 1
3434
35
-#### The directory where the zlib library source code is located.
35
+#### The directories where the zlib include and library files are located.
3636
# The recommended usage here is to use the Sysinternals junction tool
3737
# to create a hard link between an "zlib-1.x.y" sub-directory of the
3838
# Fossil source code directory and the target zlib source directory.
3939
#
40
+ZINCDIR = $(SRCDIR)/../zlib-1.2.5
4041
ZLIBDIR = $(SRCDIR)/../zlib-1.2.5
4142
42
-#### The directory where the OpenSSL library source code is located.
43
+#### The directories where the OpenSSL include and library files are located.
4344
# The recommended usage here is to use the Sysinternals junction tool
4445
# to create a hard link between an "openssl-1.x" sub-directory of the
4546
# Fossil source code directory and the target OpenSSL source directory.
4647
#
47
-OPENSSLDIR = $(SRCDIR)/../openssl-1.0.0e
48
+OPENSSLINCDIR = $(SRCDIR)/../openssl-1.0.0e/include
49
+OPENSSLLIBDIR = $(SRCDIR)/../openssl-1.0.0e
4850
4951
#### Either the directory where the Tcl library is installed or the Tcl
5052
# source code directory resides (depending on the value of the macro
5153
# FOSSIL_TCL_SOURCE). If this points to the Tcl install directory,
5254
# this directory must have "include" and "lib" sub-directories. If
@@ -56,30 +58,45 @@
5658
# link between a "tcl-8.x" sub-directory of the Fossil source code
5759
# directory and the target Tcl directory. This removes the need to
5860
# hard-code the necessary paths in this Makefile.
5961
#
6062
TCLDIR = $(SRCDIR)/../tcl-8.6
63
+
64
+#### The Tcl source code directory. This defaults to the same value as
65
+# TCLDIR macro (above), which may not be correct. This value will
66
+# only be used if the FOSSIL_TCL_SOURCE macro is defined.
67
+#
68
+TCLSRCDIR = $(TCLDIR)
69
+
70
+#### The Tcl include and library directories.
71
+#
72
+TCLINCDIR = $(TCLDIR)/include
73
+TCLLIBDIR = $(TCLDIR)/lib
74
+
75
+#### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)?
76
+#
77
+LIBTCL = -ltcl86
6178
6279
#### C Compile and options for use in building executables that
6380
# will run on the target platform. This is usually the same
6481
# as BCC, unless you are cross-compiling. This C compiler builds
6582
# the finished binary for fossil. The BCC compiler above is used
6683
# for building intermediate code-generator tools.
6784
#
68
-TCC = gcc -Os -Wall -L$(ZLIBDIR) -I$(ZLIBDIR)
85
+TCC = gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
6986
7087
# With HTTPS support
7188
ifdef FOSSIL_ENABLE_SSL
72
-TCC += -L$(OPENSSLDIR) -I$(OPENSSLDIR)/include
89
+TCC += -L$(OPENSSLLIBDIR) -I$(OPENSSLINCDIR)
7390
endif
7491
7592
# With Tcl support
7693
ifdef FOSSIL_ENABLE_TCL
7794
ifdef FOSSIL_TCL_SOURCE
78
-TCC += -L$(TCLDIR)/win -I$(TCLDIR)/generic -I$(TCLDIR)/win
95
+TCC += -L$(TCLSRCDIR)/win -I$(TCLSRCDIR)/generic -I$(TCLSRCDIR)/win
7996
else
80
-TCC += -L$(TCLDIR)/lib -I$(TCLDIR)/include
97
+TCC += -L$(TCLLIBDIR) -I$(TCLINCDIR)
8198
endif
8299
endif
83100
84101
# With HTTPS support
85102
ifdef FOSSIL_ENABLE_SSL
@@ -98,24 +115,28 @@
98115
# chroot jail.
99116
#
100117
LIB = -static
101118
LIB += -lmingwex -lz
102119
103
-# OpenSSL: Add the necessary libaries required.
120
+# OpenSSL: Add the necessary libaries required, if enabled.
104121
ifdef FOSSIL_ENABLE_SSL
105122
LIB += -lssl -lcrypto -lgdi32
106123
endif
107124
108
-# Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)?
125
+# Tcl: Add the necessary libaries required, if enabled.
109126
ifdef FOSSIL_ENABLE_TCL
110
-LIB += -ltcl86
127
+LIB += $(LIBTCL)
111128
endif
112129
113130
#### These libraries MUST appear in the same order as they do for Tcl
114131
# or linking with it will not work (exact reason unknown).
115132
#
133
+ifdef FOSSIL_ENABLE_TCL
116134
LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32
135
+else
136
+LIB += -lws2_32
137
+endif
117138
118139
#### Tcl shell for use in running the fossil testsuite. This is only
119140
# used for testing. If you do not run
120141
#
121142
TCLSH = tclsh
122143
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -19,34 +19,36 @@
19 #
20 BCC = gcc
21
22 #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
23 #
24 FOSSIL_ENABLE_SSL=1
25
26 #### Enable scripting support via Tcl/Tk
27 #
28 FOSSIL_ENABLE_TCL=1
29
30 #### Use the Tcl source directory instead of the install directory?
31 # This is useful when Tcl has been compiled statically with MinGW.
32 #
33 FOSSIL_TCL_SOURCE=1
34
35 #### The directory where the zlib library source code is located.
36 # The recommended usage here is to use the Sysinternals junction tool
37 # to create a hard link between an "zlib-1.x.y" sub-directory of the
38 # Fossil source code directory and the target zlib source directory.
39 #
 
40 ZLIBDIR = $(SRCDIR)/../zlib-1.2.5
41
42 #### The directory where the OpenSSL library source code is located.
43 # The recommended usage here is to use the Sysinternals junction tool
44 # to create a hard link between an "openssl-1.x" sub-directory of the
45 # Fossil source code directory and the target OpenSSL source directory.
46 #
47 OPENSSLDIR = $(SRCDIR)/../openssl-1.0.0e
 
48
49 #### Either the directory where the Tcl library is installed or the Tcl
50 # source code directory resides (depending on the value of the macro
51 # FOSSIL_TCL_SOURCE). If this points to the Tcl install directory,
52 # this directory must have "include" and "lib" sub-directories. If
@@ -56,30 +58,45 @@
56 # link between a "tcl-8.x" sub-directory of the Fossil source code
57 # directory and the target Tcl directory. This removes the need to
58 # hard-code the necessary paths in this Makefile.
59 #
60 TCLDIR = $(SRCDIR)/../tcl-8.6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
62 #### C Compile and options for use in building executables that
63 # will run on the target platform. This is usually the same
64 # as BCC, unless you are cross-compiling. This C compiler builds
65 # the finished binary for fossil. The BCC compiler above is used
66 # for building intermediate code-generator tools.
67 #
68 TCC = gcc -Os -Wall -L$(ZLIBDIR) -I$(ZLIBDIR)
69
70 # With HTTPS support
71 ifdef FOSSIL_ENABLE_SSL
72 TCC += -L$(OPENSSLDIR) -I$(OPENSSLDIR)/include
73 endif
74
75 # With Tcl support
76 ifdef FOSSIL_ENABLE_TCL
77 ifdef FOSSIL_TCL_SOURCE
78 TCC += -L$(TCLDIR)/win -I$(TCLDIR)/generic -I$(TCLDIR)/win
79 else
80 TCC += -L$(TCLDIR)/lib -I$(TCLDIR)/include
81 endif
82 endif
83
84 # With HTTPS support
85 ifdef FOSSIL_ENABLE_SSL
@@ -98,24 +115,28 @@
98 # chroot jail.
99 #
100 LIB = -static
101 LIB += -lmingwex -lz
102
103 # OpenSSL: Add the necessary libaries required.
104 ifdef FOSSIL_ENABLE_SSL
105 LIB += -lssl -lcrypto -lgdi32
106 endif
107
108 # Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)?
109 ifdef FOSSIL_ENABLE_TCL
110 LIB += -ltcl86
111 endif
112
113 #### These libraries MUST appear in the same order as they do for Tcl
114 # or linking with it will not work (exact reason unknown).
115 #
 
116 LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32
 
 
 
117
118 #### Tcl shell for use in running the fossil testsuite. This is only
119 # used for testing. If you do not run
120 #
121 TCLSH = tclsh
122
--- win/Makefile.mingw.mistachkin
+++ win/Makefile.mingw.mistachkin
@@ -19,34 +19,36 @@
19 #
20 BCC = gcc
21
22 #### Enable HTTPS support via OpenSSL (links to libssl and libcrypto)
23 #
24 FOSSIL_ENABLE_SSL = 1
25
26 #### Enable scripting support via Tcl/Tk
27 #
28 FOSSIL_ENABLE_TCL = 1
29
30 #### Use the Tcl source directory instead of the install directory?
31 # This is useful when Tcl has been compiled statically with MinGW.
32 #
33 FOSSIL_TCL_SOURCE = 1
34
35 #### The directories where the zlib include and library files are located.
36 # The recommended usage here is to use the Sysinternals junction tool
37 # to create a hard link between an "zlib-1.x.y" sub-directory of the
38 # Fossil source code directory and the target zlib source directory.
39 #
40 ZINCDIR = $(SRCDIR)/../zlib-1.2.5
41 ZLIBDIR = $(SRCDIR)/../zlib-1.2.5
42
43 #### The directories where the OpenSSL include and library files are located.
44 # The recommended usage here is to use the Sysinternals junction tool
45 # to create a hard link between an "openssl-1.x" sub-directory of the
46 # Fossil source code directory and the target OpenSSL source directory.
47 #
48 OPENSSLINCDIR = $(SRCDIR)/../openssl-1.0.0e/include
49 OPENSSLLIBDIR = $(SRCDIR)/../openssl-1.0.0e
50
51 #### Either the directory where the Tcl library is installed or the Tcl
52 # source code directory resides (depending on the value of the macro
53 # FOSSIL_TCL_SOURCE). If this points to the Tcl install directory,
54 # this directory must have "include" and "lib" sub-directories. If
@@ -56,30 +58,45 @@
58 # link between a "tcl-8.x" sub-directory of the Fossil source code
59 # directory and the target Tcl directory. This removes the need to
60 # hard-code the necessary paths in this Makefile.
61 #
62 TCLDIR = $(SRCDIR)/../tcl-8.6
63
64 #### The Tcl source code directory. This defaults to the same value as
65 # TCLDIR macro (above), which may not be correct. This value will
66 # only be used if the FOSSIL_TCL_SOURCE macro is defined.
67 #
68 TCLSRCDIR = $(TCLDIR)
69
70 #### The Tcl include and library directories.
71 #
72 TCLINCDIR = $(TCLDIR)/include
73 TCLLIBDIR = $(TCLDIR)/lib
74
75 #### Tcl: Which Tcl library do we want to use (8.4, 8.5, 8.6, etc)?
76 #
77 LIBTCL = -ltcl86
78
79 #### C Compile and options for use in building executables that
80 # will run on the target platform. This is usually the same
81 # as BCC, unless you are cross-compiling. This C compiler builds
82 # the finished binary for fossil. The BCC compiler above is used
83 # for building intermediate code-generator tools.
84 #
85 TCC = gcc -Os -Wall -L$(ZLIBDIR) -I$(ZINCDIR)
86
87 # With HTTPS support
88 ifdef FOSSIL_ENABLE_SSL
89 TCC += -L$(OPENSSLLIBDIR) -I$(OPENSSLINCDIR)
90 endif
91
92 # With Tcl support
93 ifdef FOSSIL_ENABLE_TCL
94 ifdef FOSSIL_TCL_SOURCE
95 TCC += -L$(TCLSRCDIR)/win -I$(TCLSRCDIR)/generic -I$(TCLSRCDIR)/win
96 else
97 TCC += -L$(TCLLIBDIR) -I$(TCLINCDIR)
98 endif
99 endif
100
101 # With HTTPS support
102 ifdef FOSSIL_ENABLE_SSL
@@ -98,24 +115,28 @@
115 # chroot jail.
116 #
117 LIB = -static
118 LIB += -lmingwex -lz
119
120 # OpenSSL: Add the necessary libaries required, if enabled.
121 ifdef FOSSIL_ENABLE_SSL
122 LIB += -lssl -lcrypto -lgdi32
123 endif
124
125 # Tcl: Add the necessary libaries required, if enabled.
126 ifdef FOSSIL_ENABLE_TCL
127 LIB += $(LIBTCL)
128 endif
129
130 #### These libraries MUST appear in the same order as they do for Tcl
131 # or linking with it will not work (exact reason unknown).
132 #
133 ifdef FOSSIL_ENABLE_TCL
134 LIB += -lnetapi32 -lkernel32 -luser32 -ladvapi32 -lws2_32
135 else
136 LIB += -lws2_32
137 endif
138
139 #### Tcl shell for use in running the fossil testsuite. This is only
140 # used for testing. If you do not run
141 #
142 TCLSH = tclsh
143

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button