xref: /onnv-gate/usr/src/lib/libsecdb/Makefile (revision 12690:09f6138035bc)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
52522Sraf# Common Development and Distribution License (the "License").
62522Sraf# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*12690Snathan.bush@oracle.com# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
230Sstevel@tonic-gate#
240Sstevel@tonic-gate
250Sstevel@tonic-gateinclude ../Makefile.lib
260Sstevel@tonic-gate
272522SrafSUBDIRS =	help $(MACH)
282522Sraf$(BUILD64)SUBDIRS += $(MACH64)
292522Sraf
300Sstevel@tonic-gateMSGSUBDIRS=	help
310Sstevel@tonic-gate
320Sstevel@tonic-gateall:=		TARGET= all
330Sstevel@tonic-gateclean:=		TARGET= clean
340Sstevel@tonic-gateclobber:=	TARGET= clobber
350Sstevel@tonic-gateinstall:=	TARGET= install
360Sstevel@tonic-gatelint:=		TARGET= lint
370Sstevel@tonic-gate_msg:=		TARGET= _msg
380Sstevel@tonic-gate
390Sstevel@tonic-gate.KEEP_STATE:
400Sstevel@tonic-gate
410Sstevel@tonic-gateROOTETC = 		$(ROOT)/etc
420Sstevel@tonic-gateROOTETCSECURITY =	$(ROOTETC)/security
430Sstevel@tonic-gate
440Sstevel@tonic-gateEFILES =	user_attr
450Sstevel@tonic-gateEFILESRC =	$(EFILES:%=%)
460Sstevel@tonic-gateETCFILES =	$(EFILES:%=$(ROOTETC)/%)
4711838SLiane.Praza@Sun.COMETCDFILES =	$(EFILES:%=$(ROOTETC)/%.d/SUNWcs)
480Sstevel@tonic-gate
4911838SLiane.Praza@Sun.COMESDFILES =	auth_attr exec_attr prof_attr
5011838SLiane.Praza@Sun.COMESFILES =		$(ESDFILES) policy.conf
510Sstevel@tonic-gateESSRC =			$(ESFILES:%=%)
520Sstevel@tonic-gateETCSECURITYFILES =	$(ESFILES:%=$(ROOTETCSECURITY)/%)
5311838SLiane.Praza@Sun.COMETCSECURITYDFILES =	$(ESDFILES:%=$(ROOTETCSECURITY)/%.d/SUNWcs)
5411838SLiane.Praza@Sun.COM
550Sstevel@tonic-gate
569910SCasper.Dik@Sun.COMMFSTFILES =	rbac.xml
5711996SThomas.Whitten@Sun.COMMANIFESTDIR =	$(ROOT)/lib/svc/manifest/system
589910SCasper.Dik@Sun.COMMANIFEST =	$(MFSTFILES:%=$(MANIFESTDIR)/%)
599910SCasper.Dik@Sun.COM$(MANIFEST) :=	FILEMODE = 0444
609910SCasper.Dik@Sun.COM
619910SCasper.Dik@Sun.COMMETHODFILES =	svc-rbac
629910SCasper.Dik@Sun.COMMETHODDIR =	$(ROOT)/lib/svc/method
639910SCasper.Dik@Sun.COMMETHOD =	$(METHODFILES:%=$(METHODDIR)/%)
649910SCasper.Dik@Sun.COM$(METHOD) :=	FILEMODE = 0555
659910SCasper.Dik@Sun.COM
660Sstevel@tonic-gateSCRIPTS =		i.rbac r.rbac
6711838SLiane.Praza@Sun.COMCLASS_SCR_SRC_DIR =	common
680Sstevel@tonic-gateINSTALL_DIR =		$(ROOT)/usr/sadm/install
690Sstevel@tonic-gate
700Sstevel@tonic-gateCLASS_SCR_DIR =		$(INSTALL_DIR)/scripts
710Sstevel@tonic-gate
720Sstevel@tonic-gateCLASS_SCR_FILES =	$(SCRIPTS:%=$(CLASS_SCR_DIR)/%)
730Sstevel@tonic-gate$(CLASS_SCR_FILES) :=	FILEMODE = 0555
740Sstevel@tonic-gate
750Sstevel@tonic-gateall clean clobber delete install lint package: $(SUBDIRS)
760Sstevel@tonic-gate_msg: $(MSGSUBDIRS)
770Sstevel@tonic-gate
780Sstevel@tonic-gateinstall:	install_data
790Sstevel@tonic-gate
8011838SLiane.Praza@Sun.COMinstall_data:	$(ETCSECURITYFILES) $(ETCSECURITYDFILES) $(ETCFILES) \
8111838SLiane.Praza@Sun.COM		$(ETCDFILES) $(CLASS_SCR_FILES) $(MANIFESTDIR) $(MANIFEST) \
8211838SLiane.Praza@Sun.COM		$(METHODDIR) $(METHOD)
830Sstevel@tonic-gate
840Sstevel@tonic-gateATTR_FILES =	auth_attr exec_attr prof_attr user_attr
85*12690Snathan.bush@oracle.com${ATTR_FILES}:	$$@.txt ${CLASS_SCR_SRC_DIR}/i.rbac
860Sstevel@tonic-gate	> $@
879910SCasper.Dik@Sun.COM	$(ECHO) $@.txt $@ | $(SHELL) ${CLASS_SCR_SRC_DIR}/i.rbac
880Sstevel@tonic-gate
8911838SLiane.Praza@Sun.COM$(ETCSECURITYDFILES) $(ETCDFILES): $$(@D)
9011838SLiane.Praza@Sun.COM
910Sstevel@tonic-gate$(ETCSECURITYFILES) $(ETCFILES): $(ETCSECURITY) $(ROOTETCSECURITY)
920Sstevel@tonic-gate
930Sstevel@tonic-gate$(ETCSECURITY)/%: %
940Sstevel@tonic-gate	$(INS.file)
950Sstevel@tonic-gate
960Sstevel@tonic-gate$(ROOTETCSECURITY):
970Sstevel@tonic-gate	$(INS.dir)
980Sstevel@tonic-gate
990Sstevel@tonic-gate$(ROOTETCSECURITY)/%: %
1000Sstevel@tonic-gate	$(INS.file)
1010Sstevel@tonic-gate
10211838SLiane.Praza@Sun.COM$(ROOTETCSECURITY)/%.d/SUNWcs: %
10311838SLiane.Praza@Sun.COM	$(INS.rename)
10411838SLiane.Praza@Sun.COM
1050Sstevel@tonic-gate$(ROOTETC)/% : %
1060Sstevel@tonic-gate	$(INS.file)
1070Sstevel@tonic-gate
10811838SLiane.Praza@Sun.COM$(ROOTETC)/%.d/SUNWcs: %
10911838SLiane.Praza@Sun.COM	$(INS.rename)
11011838SLiane.Praza@Sun.COM
1119910SCasper.Dik@Sun.COM$(MANIFESTDIR):
1129910SCasper.Dik@Sun.COM	$(INS.dir)
1139910SCasper.Dik@Sun.COM
1149910SCasper.Dik@Sun.COM$(MANIFESTDIR)/% : %
1159910SCasper.Dik@Sun.COM	$(INS.file)
1169910SCasper.Dik@Sun.COM
1179910SCasper.Dik@Sun.COM$(METHODDIR):
1189910SCasper.Dik@Sun.COM	$(INS.dir)
1199910SCasper.Dik@Sun.COM
1209910SCasper.Dik@Sun.COM$(METHODDIR)/% : %
1219910SCasper.Dik@Sun.COM	$(INS.file)
1229910SCasper.Dik@Sun.COM
1230Sstevel@tonic-gate$(CLASS_SCR_FILES): $(INSTALL_DIR) $(CLASS_SCR_DIR)
1240Sstevel@tonic-gate
1250Sstevel@tonic-gate$(INSTALL_DIR):
1260Sstevel@tonic-gate	$(INS.dir)
1270Sstevel@tonic-gate
1280Sstevel@tonic-gate$(CLASS_SCR_DIR):
1290Sstevel@tonic-gate	$(INS.dir)
1300Sstevel@tonic-gate
1310Sstevel@tonic-gate$(CLASS_SCR_DIR)/%: $(CLASS_SCR_SRC_DIR)/%
1320Sstevel@tonic-gate	$(INS.file)
1330Sstevel@tonic-gate
1340Sstevel@tonic-gateclobber clean:
1350Sstevel@tonic-gate	$(RM) $(ATTR_FILES)
1360Sstevel@tonic-gate
1372522Sraf$(SUBDIRS):	FRC
1380Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
1390Sstevel@tonic-gate
1400Sstevel@tonic-gateFRC:
141