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