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