xref: /titanic_52/usr/src/lib/libtsol/Makefile.com (revision 45916cd2fec6e79bca5dee0421bd39e3c2910d1e)
1*45916cd2Sjpk#
2*45916cd2Sjpk# CDDL HEADER START
3*45916cd2Sjpk#
4*45916cd2Sjpk# The contents of this file are subject to the terms of the
5*45916cd2Sjpk# Common Development and Distribution License (the "License").
6*45916cd2Sjpk# You may not use this file except in compliance with the License.
7*45916cd2Sjpk#
8*45916cd2Sjpk# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*45916cd2Sjpk# or http://www.opensolaris.org/os/licensing.
10*45916cd2Sjpk# See the License for the specific language governing permissions
11*45916cd2Sjpk# and limitations under the License.
12*45916cd2Sjpk#
13*45916cd2Sjpk# When distributing Covered Code, include this CDDL HEADER in each
14*45916cd2Sjpk# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*45916cd2Sjpk# If applicable, add the following below this CDDL HEADER, with the
16*45916cd2Sjpk# fields enclosed by brackets "[]" replaced with your own identifying
17*45916cd2Sjpk# information: Portions Copyright [yyyy] [name of copyright owner]
18*45916cd2Sjpk#
19*45916cd2Sjpk# CDDL HEADER END
20*45916cd2Sjpk#
21*45916cd2Sjpk#
22*45916cd2Sjpk# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23*45916cd2Sjpk# Use is subject to license terms.
24*45916cd2Sjpk#
25*45916cd2Sjpk
26*45916cd2Sjpk#ident	"%Z%%M%	%I%	%E% SMI"
27*45916cd2Sjpk
28*45916cd2Sjpk#
29*45916cd2Sjpk# lib/libtsol/Makefile.com
30*45916cd2Sjpk#
31*45916cd2Sjpk
32*45916cd2SjpkLIBRARY =	libtsol.a
33*45916cd2SjpkVERS =		.2
34*45916cd2Sjpk
35*45916cd2SjpkOBJECTS = \
36*45916cd2Sjpk	blabel.o btohex.o btos.o call_labeld.o \
37*45916cd2Sjpk	getlabel.o getplabel.o hextob.o \
38*45916cd2Sjpk	ltos.o misc.o getpathbylabel.o private.o privlib.o \
39*45916cd2Sjpk	setflabel.o stob.o stol.o zone.o
40*45916cd2Sjpk
41*45916cd2Sjpkinclude ../../Makefile.lib
42*45916cd2Sjpk
43*45916cd2Sjpk# install this library in the root filesystem
44*45916cd2Sjpkinclude ../../Makefile.rootfs
45*45916cd2Sjpk
46*45916cd2SjpkLIBS =		$(DYNLIB) $(LINTLIB)
47*45916cd2Sjpk$(LINTLIB):=	SRCS = $(SRCDIR)/$(LINTSRC)
48*45916cd2SjpkLDLIBS +=	-lsecdb -lc
49*45916cd2Sjpk
50*45916cd2SjpkNONCOMMON =	$(OBJECTS:blabel.o=)
51*45916cd2Sjpklint:=		SRCS = $(NONCOMMON:%.o=$(SRCDIR)/%.c) $(COMMONDIR)/blabel.c
52*45916cd2Sjpk
53*45916cd2SjpkSRCDIR =	../common
54*45916cd2SjpkMAPDIR =	../spec/$(TRANSMACH)
55*45916cd2SjpkSPECMAPFILE =	$(MAPDIR)/mapfile
56*45916cd2Sjpk
57*45916cd2SjpkCOMMONDIR=	$(SRC)/common/tsol
58*45916cd2Sjpk
59*45916cd2SjpkCFLAGS +=	$(CCVERBOSE)
60*45916cd2SjpkCPPFLAGS +=	-D_REENTRANT -I$(SRCDIR) -I$(COMMONDIR)
61*45916cd2Sjpk
62*45916cd2SjpkLINTFLAGS64 +=	-Xarch=v9
63*45916cd2Sjpk
64*45916cd2Sjpk.KEEP_STATE:
65*45916cd2Sjpk
66*45916cd2Sjpkall: $(LIBS)
67*45916cd2Sjpk
68*45916cd2Sjpklint: lintcheck
69*45916cd2Sjpk
70*45916cd2Sjpkobjs/%.o pic_profs/%.o pics/%.o:	$(COMMONDIR)/%.c
71*45916cd2Sjpk	$(COMPILE.c) -o $@ $<
72*45916cd2Sjpk	$(POST_PROCESS_O)
73*45916cd2Sjpk
74*45916cd2Sjpkinclude ../../Makefile.targ
75