17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 51d925b36Smcwalter# Common Development and Distribution License (the "License"). 61d925b36Smcwalter# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 2124fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 221d925b36Smcwalter# Use is subject to license terms. 237c478bd9Sstevel@tonic-gate# 247c478bd9Sstevel@tonic-gate 257c478bd9Sstevel@tonic-gatePROG= _sactab _pmtab _sysconfig iu.ap ttydefs 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gateSRCS= $(PROG:%=%.sh) 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd 307c478bd9Sstevel@tonic-gate 311d925b36SmcwalterSUBDIRS= etc 321d925b36Smcwalter 337c478bd9Sstevel@tonic-gateDEFPM= zsmon 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gateETCSAFD= $(ROOTETC)/saf 367c478bd9Sstevel@tonic-gateETCPMD= $(ETCSAFD)/$(DEFPM) 377c478bd9Sstevel@tonic-gateVARPMD= $(ROOT)/var/saf/$(DEFPM) 387c478bd9Sstevel@tonic-gate 397c478bd9Sstevel@tonic-gate# Don't re-install /etc/saf which is installed by Targetdirs 407c478bd9Sstevel@tonic-gate#DIRS= $(ETCSAFD) $(ETCPMD) $(VARPMD) 417c478bd9Sstevel@tonic-gateDIRS= $(ETCPMD) $(VARPMD) 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gateETCSAF= _sactab _sysconfig 447c478bd9Sstevel@tonic-gateETCF= ttydefs iu.ap 457c478bd9Sstevel@tonic-gateETCPM= _pmtab 467c478bd9Sstevel@tonic-gatePMLOG= log 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gateROOTETCSAF= $(ETCSAF:%=$(ETCSAFD)/%) 497c478bd9Sstevel@tonic-gateROOTETCF= $(ETCF:%=$(ROOTETC)/%) 507c478bd9Sstevel@tonic-gateROOTETCPM = $(ETCPM:%=$(ETCPMD)/%) 517c478bd9Sstevel@tonic-gateROOTVARPM = $(PMLOG:%=$(VARPMD)/%) 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gateFILEMODE= 0644 547c478bd9Sstevel@tonic-gate 55*b6805bf7SGordon RossCLOBBERFILES += $(PMLOG) 56*b6805bf7SGordon Ross 577c478bd9Sstevel@tonic-gate$(ETCSAFD)/% : % 587c478bd9Sstevel@tonic-gate $(INS.file) 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gate$(VARPMD)/% : % 617c478bd9Sstevel@tonic-gate $(INS.file) 627c478bd9Sstevel@tonic-gate 637c478bd9Sstevel@tonic-gate$(ETCPMD)/% : % 647c478bd9Sstevel@tonic-gate $(INS.file) 657c478bd9Sstevel@tonic-gate 661d925b36Smcwalterall := TARGET= all 671d925b36Smcwalterinstall := TARGET= install 681d925b36Smcwalterclean := TARGET= clean 691d925b36Smcwalterclobber := TARGET= clean 701d925b36Smcwalterlint := TARGET= lint 711d925b36Smcwalter 727c478bd9Sstevel@tonic-gate.KEEP_STATE: 737c478bd9Sstevel@tonic-gate 741d925b36Smcwalterall: $(PROG) $(PMLOG) $(SUBDIRS) 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gate_sysconfig: _sysconf.sh 777c478bd9Sstevel@tonic-gate $(SH) _sysconf.sh 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gate_sactab _pmtab iu.ap ttydefs: 807c478bd9Sstevel@tonic-gate $(SH) $@.sh 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gate$(PMLOG): 837c478bd9Sstevel@tonic-gate $(TOUCH) $@ 847c478bd9Sstevel@tonic-gate 851d925b36Smcwalterinstall: all $(DIRS) $(SUBDIRS) $(ROOTETCSAF) $(ROOTETCF) $(ROOTETCPM) $(ROOTVARPM) 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate$(DIRS): 887c478bd9Sstevel@tonic-gate $(INS.dir) 897c478bd9Sstevel@tonic-gate 901d925b36Smcwalter$(SUBDIRS): FRC 911d925b36Smcwalter @cd $@; pwd; $(MAKE) $(TARGET) 927c478bd9Sstevel@tonic-gate 931d925b36Smcwalterclean: $(SUBDIRS) 941d925b36Smcwalter 951d925b36Smcwalterlint: $(SUBDIRS) 961d925b36Smcwalter 971d925b36SmcwalterFRC: 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 100