xref: /titanic_44/usr/src/cmd/avs/rdc/etc/Makefile (revision 7c2fbfb345896881c631598ee3852ce9ce33fb07)
1# CDDL HEADER START
2#
3# The contents of this file are subject to the terms of the
4# Common Development and Distribution License (the "License").
5# You may not use this file except in compliance with the License.
6#
7# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8# or http://www.opensolaris.org/os/licensing.
9# See the License for the specific language governing permissions
10# and limitations under the License.
11#
12# When distributing Covered Code, include this CDDL HEADER in each
13# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14# If applicable, add the following below this CDDL HEADER, with the
15# fields enclosed by brackets "[]" replaced with your own identifying
16# information: Portions Copyright [yyyy] [name of copyright owner]
17#
18# CDDL HEADER END
19#
20#
21# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
22# Use is subject to license terms.
23#
24include ../../../Makefile.cmd
25include ../../Makefile.com
26
27PROG1 = rdc
28PROG2 = rdcfinish
29PROG3 = rdc.cluster
30SHFILES = $(PROG1) $(PROG2) $(PROG3)
31ROOTINIT_D = $(ROOTETC)/init.d
32
33OWNER = root
34GROUP = sys
35FILEMODE = 0744
36
37ROOTETCFILES= $(ETCFILES:%=$(ROOTETC)/%)
38
39ROOTINIT_DPROG1 = $(ROOTINIT_D)/$(PROG1)
40ROOTINIT_DPROG2 = $(ROOTINIT_D)/$(PROG2)
41ROOTINIT_DPROG3 = $(ROOTINIT_D)/$(PROG3)
42
43.KEEP_STATE:
44
45all:	$(SHFILES) $(ETCFILES) $(INITFILES)
46
47install: $(ROOTINIT_DPROG1) $(ROOTINIT_DPROG2) $(ROOTINIT_DPROG3)
48	-$(RM) $(CLUSTERLIBDSCFGSTOPDIR)/15rdc
49	-$(RM) $(CLUSTERLIBDSCFGSTARTDIR)/10rdc
50	-$(SYMLINK) ../../../sbin/rdc $(CLUSTERLIBDSCFGSTOPDIR)/15rdc
51	-$(SYMLINK) ../../../sbin/rdc $(CLUSTERLIBDSCFGSTARTDIR)/10rdc
52
53$(ROOTINIT_DPROG1): $(PROG1)
54	$(INS.file) $(PROG1)
55
56$(ROOTINIT_DPROG2): $(PROG2)
57	$(INS.file) $(PROG2)
58
59$(ROOTINIT_DPROG3): $(PROG3)
60	$(INS.file) $(PROG3)
61
62clean:
63	$(RM) $(SHFILES)
64
65clobber: clean
66
67lint:
68