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