xref: /titanic_52/usr/src/cmd/netadm/Makefile (revision 438b5f69eb4f998015cc0835f19f2f80663f2f53)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
23#
24
25PROG= _sactab _pmtab _sysconfig iu.ap ttydefs
26
27SRCS= $(PROG:%=%.sh)
28
29include ../Makefile.cmd
30
31SUBDIRS= etc
32
33DEFPM=   zsmon
34
35ETCSAFD= $(ROOTETC)/saf
36ETCPMD=  $(ETCSAFD)/$(DEFPM)
37VARPMD=  $(ROOT)/var/saf/$(DEFPM)
38
39# Don't re-install /etc/saf which is installed by Targetdirs
40#DIRS= $(ETCSAFD) $(ETCPMD) $(VARPMD)
41DIRS= $(ETCPMD) $(VARPMD)
42
43ETCSAF= _sactab _sysconfig
44ETCF=   ttydefs iu.ap
45ETCPM=  _pmtab
46PMLOG=  log
47
48ROOTETCSAF= $(ETCSAF:%=$(ETCSAFD)/%)
49ROOTETCF= $(ETCF:%=$(ROOTETC)/%)
50ROOTETCPM = $(ETCPM:%=$(ETCPMD)/%)
51ROOTVARPM = $(PMLOG:%=$(VARPMD)/%)
52
53FILEMODE= 0644
54
55$(ETCSAFD)/% : %
56	$(INS.file)
57
58$(VARPMD)/% : %
59	$(INS.file)
60
61$(ETCPMD)/% : %
62	$(INS.file)
63
64all :=		TARGET= all
65install :=	TARGET= install
66clean :=	TARGET= clean
67clobber :=	TARGET= clean
68lint :=		TARGET= lint
69
70.KEEP_STATE:
71
72all: $(PROG) $(PMLOG) $(SUBDIRS)
73
74_sysconfig: _sysconf.sh
75	$(SH) _sysconf.sh
76
77_sactab _pmtab iu.ap ttydefs:
78	$(SH) $@.sh
79
80$(PMLOG):
81	$(TOUCH) $@
82
83install: all $(DIRS) $(SUBDIRS) $(ROOTETCSAF) $(ROOTETCF) $(ROOTETCPM) $(ROOTVARPM)
84
85$(DIRS):
86	$(INS.dir)
87
88$(SUBDIRS): FRC
89	@cd $@; pwd; $(MAKE) $(TARGET)
90
91clean: $(SUBDIRS)
92
93lint: $(SUBDIRS)
94
95FRC:
96
97include ../Makefile.targ
98