45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk#
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# CDDL HEADER START
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk#
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# The contents of this file are subject to the terms of the
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# Common Development and Distribution License (the "License").
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# You may not use this file except in compliance with the License.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk#
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# or http://www.opensolaris.org/os/licensing.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# See the License for the specific language governing permissions
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# and limitations under the License.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk#
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# When distributing Covered Code, include this CDDL HEADER in each
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# If applicable, add the following below this CDDL HEADER, with the
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# fields enclosed by brackets "[]" replaced with your own identifying
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# information: Portions Copyright [yyyy] [name of copyright owner]
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk#
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# CDDL HEADER END
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk#
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk#
4201a95e0468170d576f82c3aa63afecf718497aRic Aleshire# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# Use is subject to license terms.
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk#
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkLIBRARY = libtsol.a
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkVERS = .2
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk
4201a95e0468170d576f82c3aa63afecf718497aRic AleshireCOMMONOBJS = \
4201a95e0468170d576f82c3aa63afecf718497aRic Aleshire blabel.o ltos.o stol.o
4201a95e0468170d576f82c3aa63afecf718497aRic Aleshire
4201a95e0468170d576f82c3aa63afecf718497aRic AleshireNONCOMMONOBJS = \
4201a95e0468170d576f82c3aa63afecf718497aRic Aleshire btohex.o btos.o call_labeld.o \
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk getlabel.o getplabel.o hextob.o \
4201a95e0468170d576f82c3aa63afecf718497aRic Aleshire misc.o getpathbylabel.o private.o privlib.o \
4201a95e0468170d576f82c3aa63afecf718497aRic Aleshire setflabel.o stob.o zone.o \
4201a95e0468170d576f82c3aa63afecf718497aRic Aleshire
4201a95e0468170d576f82c3aa63afecf718497aRic AleshireOBJECTS = $(NONCOMMONOBJS) $(COMMONOBJS)
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkinclude ../../Makefile.lib
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk# install this library in the root filesystem
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkinclude ../../Makefile.rootfs
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkLIBS = $(DYNLIB) $(LINTLIB)
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkLDLIBS += -lsecdb -lc
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk
f808c858fa61e7769218966759510a8b1190dfcfrafSRCDIR = ../common
f808c858fa61e7769218966759510a8b1190dfcfraf$(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC)
f808c858fa61e7769218966759510a8b1190dfcfraf
4201a95e0468170d576f82c3aa63afecf718497aRic Aleshirelint:= SRCS = \
4201a95e0468170d576f82c3aa63afecf718497aRic Aleshire $(NONCOMMONOBJS:%.o=$(SRCDIR)/%.c) \
4201a95e0468170d576f82c3aa63afecf718497aRic Aleshire $(COMMONOBJS:%.o=$(COMMONDIR)/%.c)
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkCOMMONDIR= $(SRC)/common/tsol
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkCFLAGS += $(CCVERBOSE)
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkCPPFLAGS += -D_REENTRANT -I$(SRCDIR) -I$(COMMONDIR)
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk
0bb073995ac5a95bd35f2dd790df1ea3d8c2d507Nick ToddLINTFLAGS64 += -m64
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk.KEEP_STATE:
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkall: $(LIBS)
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpklint: lintcheck
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkobjs/%.o pic_profs/%.o pics/%.o: $(COMMONDIR)/%.c
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk $(COMPILE.c) -o $@ $<
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk $(POST_PROCESS_O)
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpk
45916cd2fec6e79bca5dee0421bd39e3c2910d1ejpkinclude ../../Makefile.targ