17c478bdstevel@tonic-gate#
27c478bdstevel@tonic-gate# CDDL HEADER START
37c478bdstevel@tonic-gate#
47c478bdstevel@tonic-gate# The contents of this file are subject to the terms of the
56927f46dp# Common Development and Distribution License (the "License").
66927f46dp# You may not use this file except in compliance with the License.
77c478bdstevel@tonic-gate#
87c478bdstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bdstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bdstevel@tonic-gate# See the License for the specific language governing permissions
117c478bdstevel@tonic-gate# and limitations under the License.
127c478bdstevel@tonic-gate#
137c478bdstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bdstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bdstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bdstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bdstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bdstevel@tonic-gate#
197c478bdstevel@tonic-gate# CDDL HEADER END
207c478bdstevel@tonic-gate#
217c478bdstevel@tonic-gate#
226927f46dp# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
237c478bdstevel@tonic-gate# Use is subject to license terms.
247c478bdstevel@tonic-gate#
25e6615f1Andy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
26e6615f1Andy Fiddaman#
2718c2affartem
2818c2affartemPROG =	polkit-is-privileged
2918c2affartem
3018c2affartemSRCS =	$(PROG:%=%.c)
3118c2affartem
3218c2affarteminclude ../Makefile.cmd
3318c2affarteminclude $(SRC)/lib/policykit/Makefile.policykit
3418c2affartem
3518c2affartemLDLIBS +=	-lpolkit $(POLICYKIT_GLIB_LDLIBS)
365801b0fToomas SoomeLDFLAGS +=	$(POLICYKIT_GLIB_LDFLAGS)
3718c2affartem
3818c2affartemCPPFLAGS +=	-I$(ROOT)/usr/include/libpolkit
3918c2affartemCPPFLAGS +=	$(POLICYKIT_DBUS_CPPFLAGS) $(POLICYKIT_GLIB_CPPFLAGS)
4018c2affartemCPPFLAGS +=	-DPACKAGE_VERSION=\"$(POLICYKIT_VERSION)\"
41bd0ce62Yuri PankovCSTD =	$(CSTD_GNU99)
4218c2affartem
437014882Richard LoweCERRWARN +=	-_gcc=-Wno-unused-variable
446920cc4Toomas SoomeCERRWARN +=	-_gcc=-Wno-unused-function
457014882Richard Lowe
46e6615f1Andy Fiddaman# glib2 >= 2.62 suppresses warnings about deprecated declarations in header
47e6615f1Andy Fiddaman# files using pragma "GCC diagnostic ignored \"-Wdeprecated-declarations\""
48e6615f1Andy Fiddaman# This is not supported before GCC 4.6 so just globally suppress these
49e6615f1Andy Fiddaman# warnings under the shadow compiler
50e6615f1Andy FiddamanCERRWARN +=	-_gcc4=-Wno-deprecated-declarations
51e6615f1Andy Fiddaman
52e6615f1Andy Fiddaman# smatch has problems parsing the glib header files
53e6615f1Andy FiddamanSMATCH=off
54e6615f1Andy Fiddaman
5518c2affartemROOTUSRSBINPROG =	$(PROG:%=$(ROOTUSRSBIN)/%)
567c478bdstevel@tonic-gate
5718c2affartem.KEEP_STATE:
586927f46dp
5918c2affartemall: $(PROG)
606927f46dp
6118c2affarteminstall: all $(ROOTUSRSBINPROG)
627c478bdstevel@tonic-gate
6318c2affartemclean:
6418c2affartem	$(RM) $(CLEANFILES)
657c478bdstevel@tonic-gate
6618c2affartemFRC:
677c478bdstevel@tonic-gate
6818c2affarteminclude ../Makefile.targ
69