xref: /illumos-gate/usr/src/cmd/netadm/Makefile (revision 03831d35)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23#ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright (c) 1989 by Sun Microsystems, Inc.
26#
27
28PROG= _sactab _pmtab _sysconfig iu.ap ttydefs
29
30SRCS= $(PROG:%=%.sh)
31
32include ../Makefile.cmd
33
34DEFPM=   zsmon
35
36ETCSAFD= $(ROOTETC)/saf
37ETCPMD=  $(ETCSAFD)/$(DEFPM)
38VARPMD=  $(ROOT)/var/saf/$(DEFPM)
39
40# Don't re-install /etc/saf which is installed by Targetdirs
41#DIRS= $(ETCSAFD) $(ETCPMD) $(VARPMD)
42DIRS= $(ETCPMD) $(VARPMD)
43
44ETCSAF= _sactab _sysconfig
45ETCF=   ttydefs iu.ap
46ETCPM=  _pmtab
47PMLOG=  log
48
49ROOTETCSAF= $(ETCSAF:%=$(ETCSAFD)/%)
50ROOTETCF= $(ETCF:%=$(ROOTETC)/%)
51ROOTETCPM = $(ETCPM:%=$(ETCPMD)/%)
52ROOTVARPM = $(PMLOG:%=$(VARPMD)/%)
53
54FILEMODE= 0644
55OWNER= root
56GROUP= sys
57
58$(ETCSAFD)/% : %
59	$(INS.file)
60
61$(VARPMD)/% : %
62	$(INS.file)
63
64$(ETCPMD)/% : %
65	$(INS.file)
66
67.KEEP_STATE:
68
69all: $(PROG) $(PMLOG)
70
71_sysconfig: _sysconf.sh
72	$(SH) _sysconf.sh
73
74_sactab _pmtab iu.ap ttydefs:
75	$(SH) $@.sh
76
77$(PMLOG):
78	$(TOUCH) $@
79
80install: all $(DIRS) $(ROOTETCSAF) $(ROOTETCF) $(ROOTETCPM) $(ROOTVARPM)
81
82$(DIRS):
83	$(INS.dir)
84
85clean:
86
87lint:
88
89include ../Makefile.targ
90