xref: /illumos-gate/usr/src/lib/libtsol/Makefile.com (revision 05ede3db5e3b7d540afbccdc872c735770e82ef3)
145916cd2Sjpk#
245916cd2Sjpk# CDDL HEADER START
345916cd2Sjpk#
445916cd2Sjpk# The contents of this file are subject to the terms of the
545916cd2Sjpk# Common Development and Distribution License (the "License").
645916cd2Sjpk# You may not use this file except in compliance with the License.
745916cd2Sjpk#
845916cd2Sjpk# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
945916cd2Sjpk# or http://www.opensolaris.org/os/licensing.
1045916cd2Sjpk# See the License for the specific language governing permissions
1145916cd2Sjpk# and limitations under the License.
1245916cd2Sjpk#
1345916cd2Sjpk# When distributing Covered Code, include this CDDL HEADER in each
1445916cd2Sjpk# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1545916cd2Sjpk# If applicable, add the following below this CDDL HEADER, with the
1645916cd2Sjpk# fields enclosed by brackets "[]" replaced with your own identifying
1745916cd2Sjpk# information: Portions Copyright [yyyy] [name of copyright owner]
1845916cd2Sjpk#
1945916cd2Sjpk# CDDL HEADER END
2045916cd2Sjpk#
2145916cd2Sjpk#
224201a95eSRic Aleshire# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2345916cd2Sjpk# Use is subject to license terms.
2445916cd2Sjpk#
25*05ede3dbSJohn Levon# Copyright (c) 2018, Joyent, Inc.
2645916cd2Sjpk
2745916cd2SjpkLIBRARY =	libtsol.a
2845916cd2SjpkVERS =		.2
2945916cd2Sjpk
304201a95eSRic AleshireCOMMONOBJS = \
314201a95eSRic Aleshire	blabel.o ltos.o stol.o
324201a95eSRic Aleshire
334201a95eSRic AleshireNONCOMMONOBJS = \
344201a95eSRic Aleshire	btohex.o btos.o call_labeld.o \
3545916cd2Sjpk	getlabel.o getplabel.o hextob.o \
364201a95eSRic Aleshire	misc.o getpathbylabel.o private.o privlib.o \
374201a95eSRic Aleshire	setflabel.o stob.o zone.o \
384201a95eSRic Aleshire
394201a95eSRic AleshireOBJECTS = $(NONCOMMONOBJS) $(COMMONOBJS)
4045916cd2Sjpk
4145916cd2Sjpkinclude ../../Makefile.lib
4245916cd2Sjpk
4345916cd2Sjpk# install this library in the root filesystem
4445916cd2Sjpkinclude ../../Makefile.rootfs
4545916cd2Sjpk
4645916cd2SjpkLIBS =		$(DYNLIB) $(LINTLIB)
4745916cd2SjpkLDLIBS +=	-lsecdb -lc
4845916cd2Sjpk
49f808c858SrafSRCDIR =	../common
50f808c858Sraf$(LINTLIB):=	SRCS = $(SRCDIR)/$(LINTSRC)
51f808c858Sraf
524201a95eSRic Aleshirelint:=		SRCS = \
534201a95eSRic Aleshire	$(NONCOMMONOBJS:%.o=$(SRCDIR)/%.c) \
544201a95eSRic Aleshire	$(COMMONOBJS:%.o=$(COMMONDIR)/%.c)
5545916cd2Sjpk
5645916cd2SjpkCOMMONDIR=	$(SRC)/common/tsol
5745916cd2Sjpk
5845916cd2SjpkCFLAGS +=	$(CCVERBOSE)
5945916cd2SjpkCPPFLAGS +=	-D_REENTRANT -I$(SRCDIR) -I$(COMMONDIR)
6045916cd2Sjpk
610bb07399SNick ToddLINTFLAGS64 +=	-m64
6245916cd2Sjpk
637014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
647014882cSRichard Lowe
65*05ede3dbSJohn Levon# not linted
66*05ede3dbSJohn LevonSMATCH=off
67*05ede3dbSJohn Levon
6845916cd2Sjpk.KEEP_STATE:
6945916cd2Sjpk
7045916cd2Sjpkall: $(LIBS)
7145916cd2Sjpk
7245916cd2Sjpklint: lintcheck
7345916cd2Sjpk
7445916cd2Sjpkobjs/%.o pic_profs/%.o pics/%.o:	$(COMMONDIR)/%.c
7545916cd2Sjpk	$(COMPILE.c) -o $@ $<
7645916cd2Sjpk	$(POST_PROCESS_O)
7745916cd2Sjpk
7845916cd2Sjpkinclude ../../Makefile.targ
79