Makefile revision 91d7f85e02991954d1e1bd44673df567ad8dcc87
262N/A#
262N/A# CDDL HEADER START
262N/A#
262N/A# The contents of this file are subject to the terms of the
262N/A# Common Development and Distribution License (the "License").
262N/A# You may not use this file except in compliance with the License.
262N/A#
262N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
262N/A# or http://www.opensolaris.org/os/licensing.
262N/A# See the License for the specific language governing permissions
262N/A# and limitations under the License.
262N/A#
262N/A# When distributing Covered Code, include this CDDL HEADER in each
262N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
262N/A# If applicable, add the following below this CDDL HEADER, with the
262N/A# fields enclosed by brackets "[]" replaced with your own identifying
262N/A# information: Portions Copyright [yyyy] [name of copyright owner]
262N/A#
262N/A# CDDL HEADER END
262N/A#
726N/A#
262N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
262N/A# Use is subject to license terms.
262N/A#
262N/A
1273N/APROG= sqlite
287N/A
1273N/Ainclude ../Makefile.cmd
1273N/A
262N/Ainclude $(SRC)/lib/Makefile.lib
844N/A
844N/ASQLITEHDRDIR= $(ROOTHDRDIR)/sqlite-sys
262N/A
618N/AROOTLIBSVCBIN= $(ROOT)/lib/svc/bin
1273N/AROOTSQLITE= $(PROG:%=$(ROOTLIBSVCBIN)/%)
262N/A
262N/AOBJS= shell.o
262N/A$(OBJS) := CFLAGS += $(CTF_FLAGS)
262N/A$(OBJS) := CTFCONVERT_POST = $(CTFCONVERT_O)
262N/A
262N/ACERRWARN += -_gcc=-Wno-empty-body
262N/A
262N/ALDLIBS += -lsqlite-sys
262N/A
262N/A.KEEP_STATE:
262N/A
262N/A$(ROOTSQLITE) := FILEMODE= 555
262N/A
262N/A$(ROOTLIBSVCBIN)/%: %
726N/A $(INS.file)
262N/A
459N/ACPPFLAGS += -D_REENTRANT -DTHREADSAFE=1 -DHAVE_USLEEP=1 \
459N/A -I$(SQLITEHDRDIR)
262N/A
262N/A$(PROG): $(OBJS) $(SQLITEHDRDIR)/sqlite.h
262N/A $(LINK.c) -o $@ $(OBJS) \
262N/A $(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) $(LDLIBS)
262N/A $(CTFMERGE) -t -L VERSION -o $@ $(OBJS)
262N/A $(POST_PROCESS)
262N/A
262N/Aall: $(PROG)
262N/A
262N/Ainstall: all $(ROOTSQLITE)
262N/A
262N/Aclean:
262N/A $(RM) $(OBJS)
262N/A
262N/Alint:
262N/A
262N/Ainclude ../Makefile.targ
262N/A