Makefile revision c5c4113dfcabb1eed3d4bdf7609de5170027a794
32N/A#
32N/A# CDDL HEADER START
911N/A#
851N/A# The contents of this file are subject to the terms of the
32N/A# Common Development and Distribution License (the "License").
32N/A# You may not use this file except in compliance with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
32N/A#
32N/A# ident "%Z%%M% %I% %E% SMI"
32N/A#
32N/A
493N/APROG= sqlite
32N/A
32N/Ainclude ../Makefile.cmd
851N/A
32N/Ainclude $(SRC)/lib/Makefile.lib
911N/A
911N/ASQLITEHDRDIR= $(ROOTHDRDIR)/sqlite
911N/ALIBSQLITE= $(ROOTLIBDIR)/libsqlite.o
911N/A
32N/AROOTLIBSVCBIN= $(ROOT)/lib/svc/bin
32N/AROOTSQLITE= $(PROG:%=$(ROOTLIBSVCBIN)/%)
32N/A
32N/AOBJS= shell.o
32N/A$(OBJS) := CFLAGS += $(CTF_FLAGS)
$(OBJS) := CTFCONVERT_POST = $(CTFCONVERT_O)
.KEEP_STATE:
$(ROOTSQLITE) := FILEMODE= 555
$(ROOTLIBSVCBIN)/%: %
$(INS.file)
CPPFLAGS += -D_REENTRANT -DTHREADSAFE=1 -DHAVE_USLEEP=1 \
-I$(SQLITEHDRDIR)
$(PROG): $(OBJS) $(SQLITEHDRDIR)/sqlite.h
$(LINK.c) -o $@ $(OBJS) \
$(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) $(LIBSQLITE)
$(CTFMERGE) -t -L VERSION -o $@ $(OBJS) $(LIBSQLITE)
$(POST_PROCESS)
all: $(PROG)
install: all $(ROOTSQLITE)
clean:
$(RM) $(OBJS)
lint:
include ../Makefile.targ