xref: /illumos-gate/usr/src/lib/cfgadm_plugins/Makefile.com (revision f52943a93040563107b95bccb9db87d9971ef47d)
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 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24# Copyright 2019 Peter Tribble.
25#
26# lib/cfgadm_plugins/Makefile.com
27
28# This is used by open and closed components, so it uses an absolute
29# path.
30include $(SRC)/Makefile.psm
31
32MODULE =	cfgadm
33
34#
35# links in /usr/platform
36#
37LINKED_PLATFORMS	= SUNW,Ultra-2
38LINKED_PLATFORMS	+= SUNW,Ultra-4
39LINKED_PLATFORMS	+= SUNW,Ultra-250
40LINKED_PLATFORMS	+= SUNW,Ultra-Enterprise
41LINKED_PLATFORMS	+= SUNW,Sun-Blade-100
42LINKED_PLATFORMS	+= SUNW,Sun-Blade-1000
43LINKED_PLATFORMS	+= SUNW,Sun-Blade-1500
44LINKED_PLATFORMS	+= SUNW,Sun-Blade-2500
45LINKED_PLATFORMS	+= SUNW,A70
46LINKED_PLATFORMS	+= SUNW,Sun-Fire-V445
47LINKED_PLATFORMS	+= SUNW,Sun-Fire-V215
48LINKED_PLATFORMS	+= SUNW,Sun-Fire
49LINKED_PLATFORMS	+= SUNW,Sun-Fire-V240
50LINKED_PLATFORMS	+= SUNW,Sun-Fire-V250
51LINKED_PLATFORMS	+= SUNW,Sun-Fire-V440
52LINKED_PLATFORMS	+= SUNW,Sun-Fire-280R
53LINKED_PLATFORMS	+= SUNW,Sun-Fire-880
54LINKED_PLATFORMS	+= SUNW,Sun-Fire-480R
55LINKED_PLATFORMS	+= SUNW,Sun-Fire-V890
56LINKED_PLATFORMS	+= SUNW,Sun-Fire-V490
57LINKED_PLATFORMS	+= SUNW,Serverblade1
58LINKED_PLATFORMS	+= SUNW,Netra-T12
59LINKED_PLATFORMS	+= SUNW,Netra-T4
60LINKED_PLATFORMS	+= SUNW,Netra-CP3010
61
62LINKED_DIRS		= $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
63LINKED_LIB_DIRS		= $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
64LINKED_CFG_DIRS		= $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/cfgadm)
65
66INS.slink6=	$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/$(MODULE) $@
67
68CLOBBERFILES += $(LIBRARY:.a=.po) generic.po
69
70$(LINKED_DIRS):		$(USR_PLAT_DIR)
71	-$(INS.dir)
72
73$(LINKED_LIB_DIRS):	$(USR_PLAT_DIR)
74	-$(INS.dir)
75
76$(LINKED_CFG_DIRS):	$(USR_PLAT_DIR)
77	-$(INS.slink6)
78