Remove plenty of makefile misconfigurations

This commit is contained in:
Justine Tunney 2022-07-21 09:16:38 -07:00
parent 9172fd42a0
commit 8b469389f6
186 changed files with 1408 additions and 901 deletions

1
third_party/sqlite3/alter.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/alter.c"

1
third_party/sqlite3/analyze.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/analyze.c"

1
third_party/sqlite3/appendvfs.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/appendvfs.c"

1
third_party/sqlite3/attach.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/attach.c"

1
third_party/sqlite3/auth.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/auth.c"

1
third_party/sqlite3/backup.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/backup.c"

1
third_party/sqlite3/bitvec.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/bitvec.c"

1
third_party/sqlite3/btmutex.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/btmutex.c"

1
third_party/sqlite3/btree.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/btree.c"

1
third_party/sqlite3/build.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/build.c"

1
third_party/sqlite3/callback.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/callback.c"

1
third_party/sqlite3/complete.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/complete.c"

View file

@ -0,0 +1 @@
#include "third_party/sqlite3/completion.c"

1
third_party/sqlite3/ctime.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/ctime.c"

1
third_party/sqlite3/date.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/date.c"

1
third_party/sqlite3/dbdata.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/dbdata.c"

1
third_party/sqlite3/dbpage.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/dbpage.c"

1
third_party/sqlite3/dbstat.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/dbstat.c"

1
third_party/sqlite3/decimal.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/decimal.c"

1
third_party/sqlite3/delete.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/delete.c"

120
third_party/sqlite3/dog.py vendored Normal file
View file

@ -0,0 +1,120 @@
sauce = '''
alter
analyze
appendvfs
attach
auth
backup
bitvec
btmutex
btree
build
callback
complete
completion
ctime
date
dbdata
dbpage
dbstat
decimal
delete
expr
fault
fileio
fkey
fts3
fts3_aux
fts3_expr
fts3_hash
fts3_icu
fts3_porter
fts3_snippet
fts3_tokenize_vtab
fts3_tokenizer
fts3_tokenizer1
fts3_unicode
fts3_unicode2
fts3_write
fts5
func
global
hash
icu
ieee754
insert
json1
legacy
loadext
main
malloc
mem0
mem1
mem2
mem3
mem5
memdb
memjournal
memtrace
mutex
mutex_noop
mutex_unix
notify
opcodes
os
os_unix
os_win
pager
parse
pcache
pcache1
pragma
prepare
printf
random
resolve
rowset
rtree
select
series
shathree
shell
sqlar
sqlite3expert
sqlite3rbu
sqlite3session
status
stmt
table
threads
tokenize
treeview
trigger
uint
update
upsert
userauth
utf
util
vacuum
vdbe
vdbeapi
vdbeaux
vdbeblob
vdbemem
vdbesort
vdbetrace
vdbevtab
vtab
wal
walker
where
wherecode
whereexpr
window
zipfile
'''.split()
for s in sauce:
with open('third_party/sqlite3/%s.shell.c' % (s), 'w') as f:
f.write('#include "third_party/sqlite3/%s.c"\n' % (s))

1
third_party/sqlite3/expr.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/expr.c"

1
third_party/sqlite3/fault.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fault.c"

View file

@ -1,3 +1,18 @@
#include "libc/assert.h"
#include "libc/calls/calls.h"
#include "libc/calls/struct/dirent.h"
#include "libc/calls/struct/stat.h"
#include "libc/calls/struct/stat.macros.h"
#include "libc/calls/weirdtypes.h"
#include "libc/errno.h"
#include "libc/stdio/stdio.h"
#include "libc/str/str.h"
#include "libc/sysv/consts/at.h"
#include "libc/sysv/consts/s.h"
#include "libc/time/time.h"
#include "third_party/sqlite3/sqlite3ext.h"
// clang-format off
/*
** 2014-06-13
**
@ -73,21 +88,6 @@
** And the paths returned in the "name" column of the table are also
** relative to directory $dir.
*/
#include "libc/assert.h"
#include "libc/calls/calls.h"
#include "libc/calls/struct/dirent.h"
#include "libc/calls/struct/stat.h"
#include "libc/calls/struct/stat.macros.h"
#include "libc/calls/weirdtypes.h"
#include "libc/errno.h"
#include "libc/isystem/unistd.h"
#include "libc/stdio/stdio.h"
#include "libc/str/str.h"
#include "libc/sysv/consts/at.h"
#include "libc/sysv/consts/s.h"
#include "libc/time/time.h"
#include "third_party/sqlite3/sqlite3ext.h"
// clang-format off
SQLITE_EXTENSION_INIT1

1
third_party/sqlite3/fileio.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fileio.c"

1
third_party/sqlite3/fkey.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fkey.c"

1
third_party/sqlite3/fts3.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fts3.c"

1
third_party/sqlite3/fts3_aux.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fts3_aux.c"

1
third_party/sqlite3/fts3_expr.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fts3_expr.c"

1
third_party/sqlite3/fts3_hash.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fts3_hash.c"

1
third_party/sqlite3/fts3_icu.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fts3_icu.c"

View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fts3_porter.c"

View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fts3_snippet.c"

View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fts3_tokenize_vtab.c"

View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fts3_tokenizer.c"

View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fts3_tokenizer1.c"

View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fts3_unicode.c"

View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fts3_unicode2.c"

View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fts3_write.c"

View file

@ -1,3 +1,10 @@
#include "libc/assert.h"
#include "libc/assert.h"
#include "libc/math.h"
#include "libc/stdio/stdio.h"
#include "libc/str/str.h"
#include "third_party/sqlite3/sqlite3.h"
#include "third_party/sqlite3/sqlite3ext.h"
/* clang-format off */
@ -34,8 +41,6 @@
#ifndef _FTS5_H
#define _FTS5_H
#include "third_party/sqlite3/sqlite3.h"
#ifdef __cplusplus
extern "C" {
#endif
@ -604,12 +609,8 @@ struct fts5_api {
#ifndef _FTS5INT_H
#define _FTS5INT_H
/* #include "third_party/sqlite3/fts5.h" */
#include "third_party/sqlite3/sqlite3ext.h"
SQLITE_EXTENSION_INIT1
#include "libc/assert.h"
#include "libc/str/str.h"
#ifndef SQLITE_AMALGAMATION
@ -1478,9 +1479,6 @@ static void sqlite3Fts5UnicodeAscii(u8*, u8*);
/************ Begin %include sections from the grammar ************************/
#line 47 "fts5parse.y"
/* #include "third_party/sqlite3/fts5Int.h" */
/* #include "third_party/sqlite3/fts5parse.h" */
/*
** Disable all error recovery processing in the parser push-down
** automaton.
@ -1807,8 +1805,6 @@ struct fts5yyParser {
typedef struct fts5yyParser fts5yyParser;
#ifndef NDEBUG
#include "libc/assert.h"
#include "libc/stdio/stdio.h"
static FILE *fts5yyTraceFILE = 0;
static char *fts5yyTracePrompt = 0;
#endif /* NDEBUG */
@ -3013,9 +3009,6 @@ static int sqlite3Fts5ParserFallback(int iToken){
******************************************************************************
*/
/* #include "third_party/sqlite3/fts5Int.h" */
#include "libc/math.h" /* amalgamator: keep */
/*
** Object used to iterate through all "coalesced phrase instances" in
** a single column of the current row. If the phrase instances in the

1
third_party/sqlite3/fts5.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/fts5.c"

1
third_party/sqlite3/func.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/func.c"

1
third_party/sqlite3/global.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/global.c"

1
third_party/sqlite3/hash.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/hash.c"

1
third_party/sqlite3/icu.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/icu.c"

1
third_party/sqlite3/ieee754.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/ieee754.c"

1
third_party/sqlite3/insert.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/insert.c"

1
third_party/sqlite3/json1.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/json1.c"

1
third_party/sqlite3/legacy.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/legacy.c"

1
third_party/sqlite3/loadext.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/loadext.c"

1
third_party/sqlite3/main.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/main.c"

1
third_party/sqlite3/malloc.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/malloc.c"

1
third_party/sqlite3/mem0.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/mem0.c"

1
third_party/sqlite3/mem1.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/mem1.c"

1
third_party/sqlite3/mem2.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/mem2.c"

1
third_party/sqlite3/mem3.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/mem3.c"

1
third_party/sqlite3/mem5.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/mem5.c"

1
third_party/sqlite3/memdb.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/memdb.c"

View file

@ -0,0 +1 @@
#include "third_party/sqlite3/memjournal.c"

1
third_party/sqlite3/memtrace.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/memtrace.c"

1
third_party/sqlite3/mutex.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/mutex.c"

View file

@ -0,0 +1 @@
#include "third_party/sqlite3/mutex_noop.c"

View file

@ -0,0 +1 @@
#include "third_party/sqlite3/mutex_unix.c"

1
third_party/sqlite3/notify.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/notify.c"

1
third_party/sqlite3/opcodes.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/opcodes.c"

1
third_party/sqlite3/os.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/os.c"

View file

@ -96,7 +96,6 @@
#include "libc/calls/struct/flock.h"
#include "libc/calls/weirdtypes.h"
#include "libc/errno.h"
#include "libc/isystem/unistd.h"
#include "libc/runtime/sysconf.h"
#include "libc/sysv/consts/f.h"
#include "libc/sysv/consts/map.h"

1
third_party/sqlite3/os_unix.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/os_unix.c"

1
third_party/sqlite3/os_win.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/os_win.c"

1
third_party/sqlite3/pager.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/pager.c"

1
third_party/sqlite3/parse.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/parse.c"

1
third_party/sqlite3/pcache.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/pcache.c"

1
third_party/sqlite3/pcache1.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/pcache1.c"

1
third_party/sqlite3/pragma.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/pragma.c"

1
third_party/sqlite3/prepare.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/prepare.c"

1
third_party/sqlite3/printf.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/printf.c"

1
third_party/sqlite3/random.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/random.c"

1
third_party/sqlite3/resolve.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/resolve.c"

1
third_party/sqlite3/rowset.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/rowset.c"

1
third_party/sqlite3/rtree.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/rtree.c"

1
third_party/sqlite3/select.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/select.c"

1
third_party/sqlite3/series.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/series.c"

1
third_party/sqlite3/shathree.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/shathree.c"

View file

@ -31,58 +31,6 @@
** This file contains code to implement the "sqlite" command line
** utility for accessing SQLite databases.
*/
#if (defined(_WIN32) || defined(WIN32)) && !defined(_CRT_SECURE_NO_WARNINGS)
/* This needs to come before any includes for MSVC compiler */
#define _CRT_SECURE_NO_WARNINGS
#endif
/*
** Determine if we are dealing with WinRT, which provides only a subset of
** the full Win32 API.
*/
#if !defined(SQLITE_OS_WINRT)
# define SQLITE_OS_WINRT 0
#endif
/*
** Warning pragmas copied from msvc.h in the core.
*/
#if defined(_MSC_VER)
#pragma warning(disable : 4054)
#pragma warning(disable : 4055)
#pragma warning(disable : 4100)
#pragma warning(disable : 4127)
#pragma warning(disable : 4130)
#pragma warning(disable : 4152)
#pragma warning(disable : 4189)
#pragma warning(disable : 4206)
#pragma warning(disable : 4210)
#pragma warning(disable : 4232)
#pragma warning(disable : 4244)
#pragma warning(disable : 4305)
#pragma warning(disable : 4306)
#pragma warning(disable : 4702)
#pragma warning(disable : 4706)
#endif /* defined(_MSC_VER) */
/*
** No support for loadable extensions in VxWorks.
*/
#if (defined(__RTP__) || defined(_WRS_KERNEL)) && !SQLITE_OMIT_LOAD_EXTENSION
# define SQLITE_OMIT_LOAD_EXTENSION 1
#endif
/*
** Enable large-file support for fopen() and friends on unix.
*/
#ifndef SQLITE_DISABLE_LFS
# define _LARGE_FILE 1
# ifndef _FILE_OFFSET_BITS
# define _FILE_OFFSET_BITS 64
# endif
# define _LARGEFILE_SOURCE 1
#endif
#include "libc/assert.h"
#include "libc/fmt/conv.h"
#include "libc/fmt/fmt.h"
@ -102,23 +50,23 @@
#include "third_party/sqlite3/sqlite3expert.h"
#include "third_party/zlib/zlib.h"
#include "third_party/sqlite3/sqlite3.h"
#include "libc/str/str.h"
#include "third_party/musl/passwd.h"
#include "libc/calls/calls.h"
#include "libc/calls/weirdtypes.h"
#include "libc/calls/calls.h"
#include "third_party/linenoise/linenoise.h"
#include "libc/sysv/consts/rusage.h"
#include "libc/time/time.h"
#if SQLITE_USER_AUTHENTICATION
#include "third_party/sqlite3/sqlite3userauth.inc"
#endif
typedef sqlite3_int64 i64;
typedef sqlite3_uint64 u64;
typedef unsigned char u8;
#if SQLITE_USER_AUTHENTICATION
#include "third_party/sqlite3/sqlite3userauth.inc"
#endif
#include "libc/str/str.h"
#if !defined(_WIN32) && !defined(WIN32)
#if !defined(__RTP__) && !defined(_WRS_KERNEL)
#include "third_party/musl/passwd.h"
#endif
#endif
#if (!defined(_WIN32) && !defined(WIN32)) || defined(__MINGW32__)
#include "libc/calls/calls.h"
#include "libc/isystem/unistd.h"
#define GETPID getpid
#if defined(__MINGW32__)
#define DIRENT dirent
@ -129,8 +77,6 @@ typedef unsigned char u8;
#else
# define GETPID (int)GetCurrentProcessId
#endif
#include "libc/calls/weirdtypes.h"
#include "libc/calls/calls.h"
#if HAVE_READLINE
# include <readline/readline.h>
@ -150,7 +96,6 @@ typedef unsigned char u8;
# define shell_readline(X) readline(X)
#elif HAVE_LINENOISE
#include "third_party/linenoise/linenoise.h"
#define shell_add_history(X) linenoiseHistoryAdd(X)
#define shell_read_history(X) linenoiseHistoryLoad(X)
@ -225,8 +170,6 @@ static sqlite3_int64 timeOfDay(void){
}
#if !defined(_WIN32) && !defined(WIN32) && !defined(__minux)
#include "libc/sysv/consts/rusage.h"
#include "libc/time/time.h"
/* Saved resource information for the beginning of an operation */
static struct rusage sBegin; /* CPU time at start */

View file

@ -65,29 +65,18 @@
# define _LARGEFILE_SOURCE 1
#endif
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "sqlite3.h"
typedef sqlite3_int64 i64;
typedef sqlite3_uint64 u64;
typedef unsigned char u8;
#if SQLITE_USER_AUTHENTICATION
# include "sqlite3userauth.inc"
#endif
#include <ctype.h>
#include <stdarg.h>
#if !defined(_WIN32) && !defined(WIN32)
# include <signal.h>
# if !defined(__RTP__) && !defined(_WRS_KERNEL)
# include <pwd.h>
# endif
#endif
#if (!defined(_WIN32) && !defined(WIN32)) || defined(__MINGW32__)
# include <unistd.h>
# include <dirent.h>
# define GETPID getpid
# if defined(__MINGW32__)
# define DIRENT dirent

1
third_party/sqlite3/sqlar.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/sqlar.c"

View file

@ -20,6 +20,7 @@ THIRD_PARTY_SQLITE3 = $(THIRD_PARTY_SQLITE3_A_DEPS) $(THIRD_PARTY_SQLITE3_A)
THIRD_PARTY_SQLITE3_A = o/$(MODE)/third_party/sqlite3/libsqlite3.a
THIRD_PARTY_SQLITE3_A_FILES := $(wildcard third_party/sqlite3/*)
THIRD_PARTY_SQLITE3_A_HDRS = $(filter %.h,$(THIRD_PARTY_SQLITE3_A_FILES))
THIRD_PARTY_SQLITE3_A_INCS = $(filter %.inc,$(THIRD_PARTY_SQLITE3_A_FILES))
THIRD_PARTY_SQLITE3_A_SRCS_C = $(filter %.c,$(THIRD_PARTY_SQLITE3_A_FILES))
THIRD_PARTY_SQLITE3_A_SRCS_T = $(filter %.inc,$(THIRD_PARTY_SQLITE3_A_FILES))
THIRD_PARTY_SQLITE3_BINS = $(THIRD_PARTY_SQLITE3_COMS) $(THIRD_PARTY_SQLITE3_COMS:%=%.dbg)
@ -29,10 +30,10 @@ THIRD_PARTY_SQLITE3_A_SRCS = \
$(THIRD_PARTY_SQLITE3_A_SRCS_T)
THIRD_PARTY_SQLITE3_A_OBJS = \
$(filter-out %/shell.o,$(THIRD_PARTY_SQLITE3_A_SRCS_C:%.c=o/$(MODE)/%.o))
$(filter-out %shell.o,$(THIRD_PARTY_SQLITE3_A_SRCS_C:%.c=o/$(MODE)/%.o))
THIRD_PARTY_SQLITE3_SHELL_OBJS = \
$(THIRD_PARTY_SQLITE3_A_SRCS_C:%.c=o/$(MODE)/%.shell.o)
$(filter %shell.o,$(THIRD_PARTY_SQLITE3_A_SRCS_C:%.c=o/$(MODE)/%.o))
THIRD_PARTY_SQLITE3_COMS = \
o/$(MODE)/third_party/sqlite3/sqlite3.com
@ -71,11 +72,11 @@ THIRD_PARTY_SQLITE3_A_DEPS := \
o/$(MODE)/third_party/sqlite3/sqlite3.com.dbg: \
$(THIRD_PARTY_SQLITE3_A_DEPS) \
$(THIRD_PARTY_SQLITE3_SHELL_OBJS) \
o/$(MODE)/third_party/sqlite3/shell.shell.o \
o/$(MODE)/third_party/sqlite3/shell.o \
o/$(MODE)/third_party/sqlite3/shell.pkg \
$(CRT) \
$(APE_NO_MODIFY_SELF)
-@$(APELINK)
@$(APELINK)
o/$(MODE)/third_party/sqlite3/sqlite3.com: \
o/$(MODE)/third_party/sqlite3/sqlite3.com.dbg \
@ -167,7 +168,7 @@ o//third_party/sqlite3/vdbe.o: \
OVERRIDE_CFLAGS += \
-Os
o/$(MODE)/third_party/sqlite3/shell.shell.o: \
o/$(MODE)/third_party/sqlite3/shell.o: \
OVERRIDE_CFLAGS += \
-DSTACK_FRAME_UNLIMITED
@ -184,18 +185,26 @@ o/$(MODE)/third_party/sqlite3/parse.o: \
OVERRIDE_CFLAGS += \
-fpie
o/$(MODE)/%.shell.o: %.c o/$(MODE)/%.o
@$(COMPILE) -AOBJECTIFY.c $(OBJECTIFY.c) $(OUTPUT_OPTION) $<
o/$(MODE)/third_party/sqlite3/shell.shell.o: QUOTA = -M512m -C16 -L180
o/$(MODE)/third_party/sqlite3/shell.o: QUOTA = -M512m -C16 -L180
o/$(MODE)/third_party/sqlite3/vdbe.o: QUOTA = -M1024m
o/$(MODE)/third_party/sqlite3/vdbe.shell.o: QUOTA = -M1024m
o/$(MODE)/third_party/sqlite3/fts5.o: QUOTA = -M512m -C16
o/$(MODE)/third_party/sqlite3/fts5.shell.o: QUOTA = -M512m -C16 -L180
o/$(MODE)/third_party/sqlite3/rtree.o: \
third_party/sqlite3/rtree.c \
third_party/sqlite3/geopoly.inc \
third_party/gdtoa/gdtoa.h
o/$(MODE)/third_party/sqlite3/rtree.shell.o: \
third_party/sqlite3/rtree.shell.c \
third_party/sqlite3/geopoly.inc \
third_party/gdtoa/gdtoa.h
THIRD_PARTY_SQLITE3_LIBS = $(foreach x,$(THIRD_PARTY_SQLITE3_ARTIFACTS),$($(x)))
THIRD_PARTY_SQLITE3_SRCS = $(foreach x,$(THIRD_PARTY_SQLITE3_ARTIFACTS),$($(x)_SRCS))
THIRD_PARTY_SQLITE3_HDRS = $(foreach x,$(THIRD_PARTY_SQLITE3_ARTIFACTS),$($(x)_HDRS))
THIRD_PARTY_SQLITE3_INCS = $(foreach x,$(THIRD_PARTY_SQLITE3_ARTIFACTS),$($(x)_INCS))
THIRD_PARTY_SQLITE3_CHECKS = $(foreach x,$(THIRD_PARTY_SQLITE3_ARTIFACTS),$($(x)_CHECKS))
THIRD_PARTY_SQLITE3_OBJS = $(foreach x,$(THIRD_PARTY_SQLITE3_ARTIFACTS),$($(x)_OBJS))

View file

@ -0,0 +1 @@
#include "third_party/sqlite3/sqlite3expert.c"

View file

@ -0,0 +1 @@
#include "third_party/sqlite3/sqlite3rbu.c"

View file

@ -0,0 +1 @@
#include "third_party/sqlite3/sqlite3session.c"

View file

@ -1193,6 +1193,13 @@ typedef struct With With;
typedef int VList;
typedef u32 Pgno;
/*
** Enable SQLITE_ENABLE_EXPLAIN_COMMENTS if SQLITE_DEBUG is turned on.
*/
#if !defined(SQLITE_ENABLE_EXPLAIN_COMMENTS) && defined(SQLITE_DEBUG)
# define SQLITE_ENABLE_EXPLAIN_COMMENTS 1
#endif
/*
** Defer sourcing vdbe.h and btree.h until after the "u8" and
** "BusyHandler" typedefs. vdbe.h also requires a few of the opaque

1
third_party/sqlite3/status.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/status.c"

1
third_party/sqlite3/stmt.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/stmt.c"

1
third_party/sqlite3/table.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/table.c"

1
third_party/sqlite3/threads.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/threads.c"

1
third_party/sqlite3/tokenize.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/tokenize.c"

1
third_party/sqlite3/treeview.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/treeview.c"

1
third_party/sqlite3/trigger.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/trigger.c"

1
third_party/sqlite3/uint.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/uint.c"

1
third_party/sqlite3/update.shell.c vendored Normal file
View file

@ -0,0 +1 @@
#include "third_party/sqlite3/update.c"

Some files were not shown because too many files have changed in this diff Show more