1*9b9d39d2SRichard Lowe# 2*9b9d39d2SRichard Lowe# This file and its contents are supplied under the terms of the 3*9b9d39d2SRichard Lowe# Common Development and Distribution License ("CDDL"), version 1.0. 4*9b9d39d2SRichard Lowe# You may only use this file in accordance with the terms of version 5*9b9d39d2SRichard Lowe# 1.0 of the CDDL. 6*9b9d39d2SRichard Lowe# 7*9b9d39d2SRichard Lowe# A full copy of the text of the CDDL should have accompanied this 8*9b9d39d2SRichard Lowe# source. A copy of the CDDL is also available via the Internet at 9*9b9d39d2SRichard Lowe# http://www.illumos.org/license/CDDL. 10*9b9d39d2SRichard Lowe# 11*9b9d39d2SRichard Lowe 12*9b9d39d2SRichard Lowe# Copyright 2023 Richard Lowe 13*9b9d39d2SRichard Lowe 14*9b9d39d2SRichard Loweinclude $(SRC)/lib/libsqlite/Makefile.com 15*9b9d39d2SRichard Loweinclude $(SRC)/tools/Makefile.tools 16*9b9d39d2SRichard Lowe 17*9b9d39d2SRichard LoweSRCDIR = $(SRC)/lib/libsqlite/src 18*9b9d39d2SRichard LoweTOOLDIR = $(SRC)/lib/libsqlite/tool 19*9b9d39d2SRichard Lowe 20*9b9d39d2SRichard LoweSQLITE_VERSION = 2.8.15-repcached 21*9b9d39d2SRichard LoweENCODING = ISO8859 22*9b9d39d2SRichard Lowe 23*9b9d39d2SRichard LoweNATIVE_LIBS += libc.so 24*9b9d39d2SRichard Lowe 25*9b9d39d2SRichard LoweCPPFLAGS += $(MYCPPFLAGS) 26*9b9d39d2SRichard Lowe 27*9b9d39d2SRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration 28*9b9d39d2SRichard LoweCERRWARN += $(CNOWARN_UNINIT) 29*9b9d39d2SRichard LoweCERRWARN += -_gcc=-Wno-unused-function 30*9b9d39d2SRichard LoweCERRWARN += -_gcc=-Wno-unused-label 31*9b9d39d2SRichard Lowe 32*9b9d39d2SRichard LoweLIBLINKS = libsqlite-sys.so 33*9b9d39d2SRichard Lowe 34*9b9d39d2SRichard Lowe.KEEP_STATE: 35*9b9d39d2SRichard Lowe 36*9b9d39d2SRichard Lowe$(PICS): sqlite.h 37*9b9d39d2SRichard Lowe 38*9b9d39d2SRichard Lowesqlite.h: $(SRCDIR)/sqlite.h.in 39*9b9d39d2SRichard Lowe @echo "Generating $@"; \ 40*9b9d39d2SRichard Lowe sed -e 's"--VERS--"$(SQLITE_VERSION)"' \ 41*9b9d39d2SRichard Lowe -e s/--ENCODING--/$(ENCODING)/ \ 42*9b9d39d2SRichard Lowe $(SRCDIR)/sqlite.h.in > $@ 43*9b9d39d2SRichard Lowe 44*9b9d39d2SRichard Loweinstall: all $(ROOTONBLDLIBMACH)/$(DYNLIB) $(ROOTONBLDLIBMACH)/$(LIBLINKS) 45*9b9d39d2SRichard Lowe 46*9b9d39d2SRichard Lowe$(ROOTONBLDLIBMACH)/$(DYNLIB): $(DYNLIB) 47*9b9d39d2SRichard Lowe $(INS.file) $(DYNLIB) 48*9b9d39d2SRichard Lowe 49*9b9d39d2SRichard Lowe$(ROOTONBLDLIBMACH)/$(LIBLINKS): $(ROOTONBLDLIBMACH)/$(DYNLIB) 50*9b9d39d2SRichard Lowe @$(RM) $(ROOTONBLDLIBMACH)/$(LIBLINKS) 51*9b9d39d2SRichard Lowe $(SYMLINK) $(DYNLIB) $(ROOTONBLDLIBMACH)/$(LIBLINKS) 52*9b9d39d2SRichard Lowe 53*9b9d39d2SRichard Lowe 54*9b9d39d2SRichard Loweinclude $(SRC)/lib/libsqlite/Makefile.targ 55