Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add configure script, which must be run before running make, as it appears there's no cross-platform way to set a make variable to the output of a shell command.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | configure-make
Files: files | file ages | folders
SHA1:5abe6347c2dfa84dc17d22510d319f6af211fa33
User & Date: ben 2011-05-30 07:14:40
Context
2011-05-30
07:14
Add configure script, which must be run before running make, as it appears there's no cross-platform way to set a make variable to the output of a shell command. Closed-Leaf check-in: 5abe6347 user: ben tags: configure-make
07:04
Create new branch named "configure-make" check-in: 62284df9 user: ben tags: configure-make
Changes

Name change from Makefile to Makefile.in.

1
2
3
4
5

6
7
8
9
10
11
12
..
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/make
#
# This is the top-level makefile for Fossil when the build is occurring
# on a unix platform.  This works out-of-the-box on most unix platforms.
# But you are free to vary some of the definitions if desired.

#
#### The toplevel directory of the source tree.  Fossil can be built
#    in a directory that is separate from the source tree.  Just change
#    the following to point from the build directory to the src/ folder.
#
SRCDIR = ./src

................................................................................
#
TCLSH = tclsh

# You should not need to change anything below this line
###############################################################################
#
# Automatic platform-specific options.
HOST_OS :sh = uname -s

LIB.SunOS= -lsocket -lnsl
LIB += $(LIB.$(HOST_OS))

TCC.DragonFly += -DUSE_PREAD
TCC.FreeBSD += -DUSE_PREAD
TCC.NetBSD += -DUSE_PREAD
TCC.OpenBSD += -DUSE_PREAD
TCC += $(TCC.$(HOST_OS))

include $(SRCDIR)/main.mk
<


<
|
>







 







<












1
2

3
4
5
6
7
8
9
10
11
..
55
56
57
58
59
60
61

62
63
64
65
66
67
68
69
70
71
72

#
# This is the top-level makefile for Fossil when the build is occurring

# on a unix platform. You are free to vary some of the definitions if
# desired.
#
#### The toplevel directory of the source tree.  Fossil can be built
#    in a directory that is separate from the source tree.  Just change
#    the following to point from the build directory to the src/ folder.
#
SRCDIR = ./src

................................................................................
#
TCLSH = tclsh

# You should not need to change anything below this line
###############################################################################
#
# Automatic platform-specific options.


LIB.SunOS= -lsocket -lnsl
LIB += $(LIB.$(HOST_OS))

TCC.DragonFly += -DUSE_PREAD
TCC.FreeBSD += -DUSE_PREAD
TCC.NetBSD += -DUSE_PREAD
TCC.OpenBSD += -DUSE_PREAD
TCC += $(TCC.$(HOST_OS))

include $(SRCDIR)/main.mk

Added configure.





















>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

HOST_OS=`uname -s`

echo "#!`which make`" > Makefile
echo HOST_OS = $HOST_OS >> Makefile
echo "# ** End of section generated by configure script **" >> Makefile
cat Makefile.in >> Makefile

echo Configured for $HOST_OS