1*c5c4113dSnw141292# 2*c5c4113dSnw141292# CDDL HEADER START 3*c5c4113dSnw141292# 4*c5c4113dSnw141292# The contents of this file are subject to the terms of the 5*c5c4113dSnw141292# Common Development and Distribution License (the "License"). 6*c5c4113dSnw141292# You may not use this file except in compliance with the License. 7*c5c4113dSnw141292# 8*c5c4113dSnw141292# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*c5c4113dSnw141292# or http://www.opensolaris.org/os/licensing. 10*c5c4113dSnw141292# See the License for the specific language governing permissions 11*c5c4113dSnw141292# and limitations under the License. 12*c5c4113dSnw141292# 13*c5c4113dSnw141292# When distributing Covered Code, include this CDDL HEADER in each 14*c5c4113dSnw141292# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*c5c4113dSnw141292# If applicable, add the following below this CDDL HEADER, with the 16*c5c4113dSnw141292# fields enclosed by brackets "[]" replaced with your own identifying 17*c5c4113dSnw141292# information: Portions Copyright [yyyy] [name of copyright owner] 18*c5c4113dSnw141292# 19*c5c4113dSnw141292# CDDL HEADER END 20*c5c4113dSnw141292# 21*c5c4113dSnw141292# 22*c5c4113dSnw141292# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*c5c4113dSnw141292# Use is subject to license terms. 24*c5c4113dSnw141292# 25*c5c4113dSnw141292# ident "%Z%%M% %I% %E% SMI" 26*c5c4113dSnw141292# 27*c5c4113dSnw141292 28*c5c4113dSnw141292PROG= sqlite 29*c5c4113dSnw141292 30*c5c4113dSnw141292include ../Makefile.cmd 31*c5c4113dSnw141292 32*c5c4113dSnw141292include $(SRC)/lib/Makefile.lib 33*c5c4113dSnw141292 34*c5c4113dSnw141292SQLITEHDRDIR= $(ROOTHDRDIR)/sqlite 35*c5c4113dSnw141292LIBSQLITE= $(ROOTLIBDIR)/libsqlite.o 36*c5c4113dSnw141292 37*c5c4113dSnw141292ROOTLIBSVCBIN= $(ROOT)/lib/svc/bin 38*c5c4113dSnw141292ROOTSQLITE= $(PROG:%=$(ROOTLIBSVCBIN)/%) 39*c5c4113dSnw141292 40*c5c4113dSnw141292OBJS= shell.o 41*c5c4113dSnw141292$(OBJS) := CFLAGS += $(CTF_FLAGS) 42*c5c4113dSnw141292$(OBJS) := CTFCONVERT_POST = $(CTFCONVERT_O) 43*c5c4113dSnw141292 44*c5c4113dSnw141292.KEEP_STATE: 45*c5c4113dSnw141292 46*c5c4113dSnw141292$(ROOTSQLITE) := FILEMODE= 555 47*c5c4113dSnw141292 48*c5c4113dSnw141292$(ROOTLIBSVCBIN)/%: % 49*c5c4113dSnw141292 $(INS.file) 50*c5c4113dSnw141292 51*c5c4113dSnw141292CPPFLAGS += -D_REENTRANT -DTHREADSAFE=1 -DHAVE_USLEEP=1 \ 52*c5c4113dSnw141292 -I$(SQLITEHDRDIR) 53*c5c4113dSnw141292 54*c5c4113dSnw141292$(PROG): $(OBJS) $(SQLITEHDRDIR)/sqlite.h 55*c5c4113dSnw141292 $(LINK.c) -o $@ $(OBJS) \ 56*c5c4113dSnw141292 $(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) $(LIBSQLITE) 57*c5c4113dSnw141292 $(CTFMERGE) -t -L VERSION -o $@ $(OBJS) $(LIBSQLITE) 58*c5c4113dSnw141292 $(POST_PROCESS) 59*c5c4113dSnw141292 60*c5c4113dSnw141292all: $(PROG) 61*c5c4113dSnw141292 62*c5c4113dSnw141292install: all $(ROOTSQLITE) 63*c5c4113dSnw141292 64*c5c4113dSnw141292clean: 65*c5c4113dSnw141292 $(RM) $(OBJS) 66*c5c4113dSnw141292 67*c5c4113dSnw141292lint: 68*c5c4113dSnw141292 69*c5c4113dSnw141292include ../Makefile.targ 70