xref: /onnv-gate/usr/src/cmd/netadm/Makefile (revision 10207:87c40ea3fc4b)
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
55234Smcwalter# Common Development and Distribution License (the "License").
65234Smcwalter# 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#
21*10207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
225234Smcwalter# Use is subject to license terms.
230Sstevel@tonic-gate#
240Sstevel@tonic-gate
250Sstevel@tonic-gatePROG= _sactab _pmtab _sysconfig iu.ap ttydefs
260Sstevel@tonic-gate
270Sstevel@tonic-gateSRCS= $(PROG:%=%.sh)
280Sstevel@tonic-gate
290Sstevel@tonic-gateinclude ../Makefile.cmd
300Sstevel@tonic-gate
315234SmcwalterSUBDIRS= etc
325234Smcwalter
330Sstevel@tonic-gateDEFPM=   zsmon
340Sstevel@tonic-gate
350Sstevel@tonic-gateETCSAFD= $(ROOTETC)/saf
360Sstevel@tonic-gateETCPMD=  $(ETCSAFD)/$(DEFPM)
370Sstevel@tonic-gateVARPMD=  $(ROOT)/var/saf/$(DEFPM)
380Sstevel@tonic-gate
390Sstevel@tonic-gate# Don't re-install /etc/saf which is installed by Targetdirs
400Sstevel@tonic-gate#DIRS= $(ETCSAFD) $(ETCPMD) $(VARPMD)
410Sstevel@tonic-gateDIRS= $(ETCPMD) $(VARPMD)
420Sstevel@tonic-gate
430Sstevel@tonic-gateETCSAF= _sactab _sysconfig
440Sstevel@tonic-gateETCF=   ttydefs iu.ap
450Sstevel@tonic-gateETCPM=  _pmtab
460Sstevel@tonic-gatePMLOG=  log
470Sstevel@tonic-gate
480Sstevel@tonic-gateROOTETCSAF= $(ETCSAF:%=$(ETCSAFD)/%)
490Sstevel@tonic-gateROOTETCF= $(ETCF:%=$(ROOTETC)/%)
500Sstevel@tonic-gateROOTETCPM = $(ETCPM:%=$(ETCPMD)/%)
510Sstevel@tonic-gateROOTVARPM = $(PMLOG:%=$(VARPMD)/%)
520Sstevel@tonic-gate
530Sstevel@tonic-gateFILEMODE= 0644
540Sstevel@tonic-gate
550Sstevel@tonic-gate$(ETCSAFD)/% : %
560Sstevel@tonic-gate	$(INS.file)
570Sstevel@tonic-gate
580Sstevel@tonic-gate$(VARPMD)/% : %
590Sstevel@tonic-gate	$(INS.file)
600Sstevel@tonic-gate
610Sstevel@tonic-gate$(ETCPMD)/% : %
620Sstevel@tonic-gate	$(INS.file)
630Sstevel@tonic-gate
645234Smcwalterall :=		TARGET= all
655234Smcwalterinstall :=	TARGET= install
665234Smcwalterclean :=	TARGET= clean
675234Smcwalterclobber :=	TARGET= clean
685234Smcwalterlint :=		TARGET= lint
695234Smcwalter
700Sstevel@tonic-gate.KEEP_STATE:
710Sstevel@tonic-gate
725234Smcwalterall: $(PROG) $(PMLOG) $(SUBDIRS)
730Sstevel@tonic-gate
740Sstevel@tonic-gate_sysconfig: _sysconf.sh
750Sstevel@tonic-gate	$(SH) _sysconf.sh
760Sstevel@tonic-gate
770Sstevel@tonic-gate_sactab _pmtab iu.ap ttydefs:
780Sstevel@tonic-gate	$(SH) $@.sh
790Sstevel@tonic-gate
800Sstevel@tonic-gate$(PMLOG):
810Sstevel@tonic-gate	$(TOUCH) $@
820Sstevel@tonic-gate
835234Smcwalterinstall: all $(DIRS) $(SUBDIRS) $(ROOTETCSAF) $(ROOTETCF) $(ROOTETCPM) $(ROOTVARPM)
840Sstevel@tonic-gate
850Sstevel@tonic-gate$(DIRS):
860Sstevel@tonic-gate	$(INS.dir)
870Sstevel@tonic-gate
885234Smcwalter$(SUBDIRS): FRC
895234Smcwalter	@cd $@; pwd; $(MAKE) $(TARGET)
900Sstevel@tonic-gate
915234Smcwalterclean: $(SUBDIRS)
925234Smcwalter
935234Smcwalterlint: $(SUBDIRS)
945234Smcwalter
955234SmcwalterFRC:
960Sstevel@tonic-gate
970Sstevel@tonic-gateinclude ../Makefile.targ
98