nodemcu-firmware/app/sqlite3/Makefile

124 lines
4.5 KiB
Makefile

#############################################################
# Required variables for each makefile
# Discard this section from all parent makefiles
# Expected variables (with automatic defaults):
# CSRCS (all "C" files in the dir)
# SUBDIRS (all subdirs with a Makefile)
# GEN_LIBS - list of libs to be generated ()
# GEN_IMAGES - list of images to be generated ()
# COMPONENTS_xxx - a list of libs/objs in the form
# subdir/lib to be extracted and rolled up into
# a generated lib/image xxx.a ()
#
ifndef PDIR
GEN_LIBS = libsqlite3.a
endif
STD_CFLAGS= -std=gnu11 -Wimplicit -Wno-undef
STD_CFLAGS+= -DSQLITE_CORE=1
STD_CFLAGS+= -DSQLITE_NO_SYNC=1
STD_CFLAGS+= -DYYSTACKDEPTH=20
STD_CFLAGS+= -DSQLITE_TEMP_STORE=3
STD_CFLAGS+= -DBUILD_sqlite -DNDEBUG
STD_CFLAGS+= -DSQLITE_SYSTEM_MALLOC=1
STD_CFLAGS+= -D_HAVE_SQLITE_CONFIG_H
STD_CFLAGS+= -DSQLITE_OS_OTHER=1
STD_CFLAGS+= -DSQLITE_THREADSAFE=0
STD_CFLAGS+= -DSQLITE_MUTEX_APPDEF=1
STD_CFLAGS+= -DSQLITE_SECURE_DELETE=0
STD_CFLAGS+= -DSQLITE_DISABLE_LFS=1
STD_CFLAGS+= -DSQLITE_DISABLE_DIRSYNC=1
STD_CFLAGS+= -DSQLITE_DISABLE_FTS3_UNICODE=1
STD_CFLAGS+= -DSQLITE_DISABLE_FTS4_DEFERRED=1
STD_CFLAGS+= -DSQLITE_LIKE_DOESNT_MATCH_BLOBS=1
STD_CFLAGS+= -DSQLITE_DEFAULT_CACHE_SIZE=-1
STD_CFLAGS+= -DSQLITE_DEFAULT_MEMSTATUS=0
STD_CFLAGS+= -DSQLITE_DEFAULT_MMAP_SIZE=0
STD_CFLAGS+= -DSQLITE_DEFAULT_LOCKING_MODE=1
STD_CFLAGS+= -DSQLITE_DEFAULT_LOOKASIDE=512,125
STD_CFLAGS+= -DSQLITE_DEFAULT_PAGE_SIZE=4096
STD_CFLAGS+= -DSQLITE_POWERSAFE_OVERWRITE=1
STD_CFLAGS+= -DSQLITE_MAX_EXPR_DEPTH=0
STD_CFLAGS+= -DSQLITE_OMIT_ALTERTABLE=1
STD_CFLAGS+= -DSQLITE_OMIT_ANALYZE=1
STD_CFLAGS+= -DSQLITE_OMIT_ATTACH=1
STD_CFLAGS+= -DSQLITE_OMIT_AUTHORIZATION=1
STD_CFLAGS+= -DSQLITE_OMIT_AUTOINCREMENT=1
STD_CFLAGS+= -DSQLITE_OMIT_AUTOMATIC_INDEX=1
STD_CFLAGS+= -DSQLITE_OMIT_AUTORESET=1
STD_CFLAGS+= -DSQLITE_OMIT_AUTOVACUUM=1
STD_CFLAGS+= -DSQLITE_OMIT_BETWEEN_OPTIMIZATION=1
STD_CFLAGS+= -DSQLITE_OMIT_BLOB_LITERAL=1
STD_CFLAGS+= -DSQLITE_OMIT_BTREECOUNT=1
STD_CFLAGS+= -DSQLITE_OMIT_BUILTIN_TEST=1
STD_CFLAGS+= -DSQLITE_OMIT_CAST=1
STD_CFLAGS+= -DSQLITE_OMIT_CHECK=1
STD_CFLAGS+= -DSQLITE_OMIT_COMPILEOPTION_DIAGS=1
STD_CFLAGS+= -DSQLITE_OMIT_COMPOUND_SELECT=1
STD_CFLAGS+= -DSQLITE_OMIT_CTE=1
STD_CFLAGS+= -DSQLITE_OMIT_DECLTYPE=1
STD_CFLAGS+= -DSQLITE_OMIT_DEPRECATED=1
STD_CFLAGS+= -DSQLITE_OMIT_EXPLAIN=1
STD_CFLAGS+= -DSQLITE_OMIT_FLAG_PRAGMAS=1
STD_CFLAGS+= -DSQLITE_OMIT_FOREIGN_KEY=1
STD_CFLAGS+= -DSQLITE_OMIT_GET_TABLE=1
STD_CFLAGS+= -DSQLITE_OMIT_INCRBLOB=1
STD_CFLAGS+= -DSQLITE_OMIT_INTEGRITY_CHECK=1
STD_CFLAGS+= -DSQLITE_OMIT_LIKE_OPTIMIZATION=1
STD_CFLAGS+= -DSQLITE_OMIT_LOAD_EXTENSION=1
STD_CFLAGS+= -DSQLITE_OMIT_LOCALTIME=1
STD_CFLAGS+= -DSQLITE_OMIT_LOOKASIDE=1
STD_CFLAGS+= -DSQLITE_OMIT_MEMORYDB=1
STD_CFLAGS+= -DSQLITE_OMIT_OR_OPTIMIZATION=1
STD_CFLAGS+= -DSQLITE_OMIT_PAGER_PRAGMAS=1
STD_CFLAGS+= -DSQLITE_OMIT_PRAGMA=1
STD_CFLAGS+= -DSQLITE_OMIT_PROGRESS_CALLBACK=1
STD_CFLAGS+= -DSQLITE_OMIT_QUICKBALANCE=1
STD_CFLAGS+= -DSQLITE_OMIT_REINDEX=1
STD_CFLAGS+= -DSQLITE_OMIT_SCHEMA_PRAGMAS=1
STD_CFLAGS+= -DSQLITE_OMIT_SCHEMA_VERSION_PRAGMAS=1
STD_CFLAGS+= -DSQLITE_OMIT_SHARED_CACHE=1
STD_CFLAGS+= -DSQLITE_OMIT_TCL_VARIABLE=1
STD_CFLAGS+= -DSQLITE_OMIT_TEMPDB=1
STD_CFLAGS+= -DSQLITE_OMIT_TRACE=1
STD_CFLAGS+= -DSQLITE_OMIT_TRIGGER=1
STD_CFLAGS+= -DSQLITE_OMIT_TRUNCATE_OPTIMIZATION=1
STD_CFLAGS+= -DSQLITE_OMIT_UTF16=1
STD_CFLAGS+= -DSQLITE_OMIT_VIEW=1
STD_CFLAGS+= -DSQLITE_OMIT_VIRTUALTABLE=1
STD_CFLAGS+= -DSQLITE_OMIT_WAL=1
STD_CFLAGS+= -DSQLITE_OMIT_XFER_OPT=1
#STD_CFLAGS+= -DSQLITE_OMIT_COMPLETE=1
#STD_CFLAGS+= -DSQLITE_OMIT_SUBQUERY=1
#STD_CFLAGS+= -DSQLITE_OMIT_DATETIME_FUNCS=1
#STD_CFLAGS+= -DSQLITE_OMIT_FLOATING_POINT=1
#############################################################
# Configuration i.e. compile options etc.
# Target specific stuff (defines etc.) goes in here!
# Generally values applying to a tree are captured in the
# makefile at its root level - these are then overridden
# for a subtree within the makefile rooted therein
#
#DEFINES +=
#############################################################
# Recursion Magic - Don't touch this!!
#
# Each subtree potentially has an include directory
# corresponding to the common APIs applicable to modules
# rooted at that subtree. Accordingly, the INCLUDE PATH
# of a module can only contain the include directories up
# its parent path, and not its siblings
#
# Required for each makefile to inherit from the parent
#
INCLUDES := $(INCLUDES) -I $(PDIR)include
INCLUDES += -I ./
INCLUDES += -I ../libc
INCLUDES += -I ../platform
PDIR := ../$(PDIR)
sinclude $(PDIR)Makefile