CVSTrac Legacy Code

Check-in [e4587a17aa]
Login

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

Overview
Comment:Statically link against a recent version of SQLite.
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1: e4587a17aa50002a1c9c459ed41dfcebf3cb6ce6
User & Date: drh 2019-01-20 21:34:47
Context
2019-01-20
21:34
Statically link against a recent version of SQLite. Leaf check-in: e4587a17aa user: drh tags: trunk
2016-07-18
19:27
slightly cleaner check-in: 3625b606ff user: cpb tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to bsd-gcc.mk.

21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#TCC = gcc -O6
#TCC = gcc -g -O0 -Wall
TCC = gcc -g -O -I/usr/local/include
#TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage

#### Extra arguments for linking against SQLite
#
LIBSQLITE = -L/usr/local/lib -lsqlite3 -lcrypt -lm

#### Installation directory
#
INSTALLDIR = /var/www/cgi-bin


# You should not need to change anything below this line
###############################################################################
include $(SRCDIR)/main.mk







|









21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#TCC = gcc -O6
#TCC = gcc -g -O0 -Wall
TCC = gcc -g -O -I/usr/local/include
#TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage

#### Extra arguments for linking against SQLite
#
LIBSQLITE = $(SRCDIR)/sqlite3.c -L/usr/local/lib -lcrypt -lm

#### Installation directory
#
INSTALLDIR = /var/www/cgi-bin


# You should not need to change anything below this line
###############################################################################
include $(SRCDIR)/main.mk

Changes to linux-gcc.mk.

20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
#TCC = gcc -O6
TCC = gcc -g -O0 -Wall
#TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage

#### Extra arguments for linking against SQLite
#
LIBSQLITE = -lsqlite3 -lcrypt -lm

#### Installation directory
#
INSTALLDIR = /var/www/cgi-bin


# You should not need to change anything below this line
###############################################################################
include $(SRCDIR)/main.mk







|









20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
#TCC = gcc -O6
TCC = gcc -g -O0 -Wall
#TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage

#### Extra arguments for linking against SQLite
#
LIBSQLITE = $(SRCDIR)/sqlite3.c -lcrypt -lm

#### Installation directory
#
INSTALLDIR = /var/www/cgi-bin


# You should not need to change anything below this line
###############################################################################
include $(SRCDIR)/main.mk

Changes to main.mk.

1
2
3
4
5


6
7
8
9
10
11
12
...
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# This file is included by linux-gcc.mk or linux-mingw.mk or possible
# some other makefiles.  This file contains the rules that are common
# to building regardless of the target.
#



XTCC = $(TCC) $(CFLAGS) -I. -I$(SRCDIR)


SRC = \
  $(SRCDIR)/attach.c \
  $(SRCDIR)/browse.c \
  $(SRCDIR)/cgi.c \
................................................................................
$(SRCDIR)/css.c:  $(SRCDIR)/cvstrac.css makecss
	./makecss $(SRCDIR)/cvstrac.css >$(SRCDIR)/css.c

maketestdb:	$(SRCDIR)/maketestdb.c
	$(BCC) -o maketestdb $(SRCDIR)/maketestdb.c $(LIBSQLITE)

$(APPNAME):	headers $(OBJ)
	$(TCC) -o $(APPNAME) $(OBJ) $(LIBSQLITE)

index.html:	$(SRCDIR)/webpage.html $(SRCDIR)/VERSION
	sed -f $(SRCDIR)/VERSION $(SRCDIR)/webpage.html >index.html

clean:	
	rm -f *.o *_.c $(APPNAME)
	rm -f makewikiinit maketestdb makecss





>
>







 







|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
...
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# This file is included by linux-gcc.mk or linux-mingw.mk or possible
# some other makefiles.  This file contains the rules that are common
# to building regardless of the target.
#

CFLAGS += -DSQLITE_THREADSAFE=0
CFLAGS += -DSQLITE_OMIT_LOAD_EXTENSION
XTCC = $(TCC) $(CFLAGS) -I. -I$(SRCDIR)


SRC = \
  $(SRCDIR)/attach.c \
  $(SRCDIR)/browse.c \
  $(SRCDIR)/cgi.c \
................................................................................
$(SRCDIR)/css.c:  $(SRCDIR)/cvstrac.css makecss
	./makecss $(SRCDIR)/cvstrac.css >$(SRCDIR)/css.c

maketestdb:	$(SRCDIR)/maketestdb.c
	$(BCC) -o maketestdb $(SRCDIR)/maketestdb.c $(LIBSQLITE)

$(APPNAME):	headers $(OBJ)
	$(TCC) -o $(APPNAME) $(CFLAGS) $(OBJ) $(LIBSQLITE)

index.html:	$(SRCDIR)/webpage.html $(SRCDIR)/VERSION
	sed -f $(SRCDIR)/VERSION $(SRCDIR)/webpage.html >index.html

clean:	
	rm -f *.o *_.c $(APPNAME)
	rm -f makewikiinit maketestdb makecss

Changes to makemake.tcl.

41
42
43
44
45
46
47


48
49
50
51
52
53
54
..
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
set name cvstrac

puts {# This file is included by linux-gcc.mk or linux-mingw.mk or possible
# some other makefiles.  This file contains the rules that are common
# to building regardless of the target.
#



XTCC = $(TCC) $(CFLAGS) -I. -I$(SRCDIR)

}
puts -nonewline "SRC ="
foreach s [lsort $src] {
  puts -nonewline " \\\n  \$(SRCDIR)/$s.c"
}
................................................................................
$(SRCDIR)/css.c:  $(SRCDIR)/cvstrac.css makecss
	./makecss $(SRCDIR)/cvstrac.css >$(SRCDIR)/css.c

maketestdb:	$(SRCDIR)/maketestdb.c
	$(BCC) -o maketestdb $(SRCDIR)/maketestdb.c $(LIBSQLITE)

$(APPNAME):	headers $(OBJ)
	$(TCC) -o $(APPNAME) $(OBJ) $(LIBSQLITE)

index.html:	$(SRCDIR)/webpage.html $(SRCDIR)/VERSION
	sed -f $(SRCDIR)/VERSION $(SRCDIR)/webpage.html >index.html

clean:	
	rm -f *.o *_.c $(APPNAME)
	rm -f makewikiinit maketestdb makecss







>
>







 







|







41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
..
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
set name cvstrac

puts {# This file is included by linux-gcc.mk or linux-mingw.mk or possible
# some other makefiles.  This file contains the rules that are common
# to building regardless of the target.
#

CFLAGS += -DSQLITE_THREADSAFE=0
CFLAGS += -DSQLITE_OMIT_LOAD_EXTENSION
XTCC = $(TCC) $(CFLAGS) -I. -I$(SRCDIR)

}
puts -nonewline "SRC ="
foreach s [lsort $src] {
  puts -nonewline " \\\n  \$(SRCDIR)/$s.c"
}
................................................................................
$(SRCDIR)/css.c:  $(SRCDIR)/cvstrac.css makecss
	./makecss $(SRCDIR)/cvstrac.css >$(SRCDIR)/css.c

maketestdb:	$(SRCDIR)/maketestdb.c
	$(BCC) -o maketestdb $(SRCDIR)/maketestdb.c $(LIBSQLITE)

$(APPNAME):	headers $(OBJ)
	$(TCC) -o $(APPNAME) $(CFLAGS) $(OBJ) $(LIBSQLITE)

index.html:	$(SRCDIR)/webpage.html $(SRCDIR)/VERSION
	sed -f $(SRCDIR)/VERSION $(SRCDIR)/webpage.html >index.html

clean:	
	rm -f *.o *_.c $(APPNAME)
	rm -f makewikiinit maketestdb makecss

Added sqlite3.c.

more than 10,000 changes

Added sqlite3.h.

more than 10,000 changes