CoolFace
Modelpublic

AryaWu/sqlite

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
Makefile.linux-generic65 linesDownload Raw Back to root
1#!/usr/make2all:3#4# Makefile for SQLITE5#6# This is a template makefile for SQLite.  Most people prefer to7# use the autoconf generated "configure" script to generate the8# makefile automatically.  But that does not work for everybody9# and in every situation.  If you are having problems with the10# "configure" script, you might want to try this makefile as an11# alternative.  Create a copy of this file, edit the parameters12# below and type "make".13#14# Maintenance note: because this is the template for Linux systems, it15# is assumed that the platform has GNU make and this file takes16# advantage of that.17#18####19#20# $(TOP) = The toplevel directory of the source tree.  This is the21# directory that contains "Makefile.in" and "auto.def".22#23TOP ?= $(realpath $(dir $(lastword $(MAKEFILE_LIST))))24 25#26# $(CFLAGS) will be used when compiling the library and most27# utilities.  It must normally contain -fPIC on Linux systems,28# but overriding CFLAGS is an easy way for users to inadvertently29# remove -fPIC from their builds, so we generally expect to see30# -fPIC in $(CFLAGS.core), which main.mk will integrate with31# the CFLAGS where needed.32#33CFLAGS =34CFLAGS.core = -fPIC35 36#37# $(SHELL_OPT) contains CFLAGS for building the sqlite3 CLI shell.38# See main.mk for other potentially-relevant vars which may need39# tweaking, like $(LDFLAGS_READLINE).40#41SHELL_OPT += -DHAVE_READLINE=142SHELL_OPT += -DSQLITE_HAVE_ZLIB=143LDFLAGS.readline = -lreadline # may need -lcurses etc, depending on the system44CFLAGS.readline = # needs -I... if readline.h is in an unusual place.45LDFLAGS.zlib = -lz46 47#48# Library's version number.49#50PACKAGE_VERSION ?= $(shell cat $(TOP)/VERSION 2>/dev/null)51 52# sqlite_cfg.h is typically created by the configure script. It's53# commonly not needed but main.mk does not know that so we have to54# create a dummy if we don't already have one.55sqlite_cfg.h:56	touch $@57distclean-.:58	rm -f sqlite_cfg.h59 60#61# With the above in place, we can now import the rules make use of62# it...63#64include $(TOP)/main.mk65