xref: /titanic_52/usr/src/cmd/sf880drd/Makefile (revision f74990663a4ceb9ed367f98457dc42b52ca2642e)
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#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#ident	"%Z%%M%	%I%	%E% SMI"
26#
27# cmd/sf880drd/Makefile
28#
29
30PROG =		sf880drd
31PLATFORM =	SUNW,Sun-Fire-880
32LINKED_PLATFORM = SUNW,Sun-Fire-V890
33MANIFEST =	sf880drd.xml
34SVCMETHOD =	sf880dr
35
36include ../Makefile.cmd
37include ../../Makefile.psm
38
39ROOTMANIFESTDIR = $(ROOTSVCPLATFORMSUN4U)
40
41CPPFLAGS += -I$(ROOT)/usr/platform/sun4u/include
42LDLIBS += -lcfgadm
43
44PSMPROG = $(USR_PSM_LIB_DIR)/$(PROG)
45
46$(PSMPROG) :=	FILEMODE = 0755
47$(PSMPROG) :=	OWNER = root
48$(PSMPROG) :=	GROUP = sys
49
50.KEEP_STATE:
51
52all: $(PROG)
53
54install: all $(PSMPROG) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
55
56check: $(CHKMANIFEST)
57
58clean:
59
60lint:	lint_PROG
61
62$(USR_PLAT_DIR):
63	-$(INS.dir.root.sys)
64
65$(USR_PSM_DIR):		$(USR_PLAT_DIR)
66	-$(INS.dir.root.sys)
67
68$(USR_PSM_LIB_DIR):	$(USR_PSM_DIR)
69	-$(INS.dir.root.sys)
70
71$(USR_PSM_LIB_DIR)/%:		% $(USR_PSM_LIB_DIR)
72	$(INS.file)
73	cd $(USR_PLAT_DIR)/$(LINKED_PLATFORM)/lib; $(RM) $(PROG); \
74	$(SYMLINK) ../../$(PLATFORM)/lib/$(PROG) $(PROG) $(CHOWNLINK) \
75	$(CHGRPLINK)
76
77include ../Makefile.targ
78