xref: /illumos-gate/usr/src/lib/libprtdiag_psr/sparc/desktop/picl/Makefile (revision 76716eaced8d7659d4594350eb3f343c31fe2806)
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# lib/libprtdiag_psr/sparc/desktop/picl/Makefile
28
29UTSBASE = $(SRC)/uts
30
31PLATFORM_OBJECTS= picldiag.o
32
33objs/%.o pics/%.o: ../common/%.c
34	$(COMPILE.c) $(IFLAGS) -o $@ $<
35	$(POST_PROCESS_O)
36
37include $(SRC)/lib/libprtdiag_psr/sparc/Makefile.com
38
39SRCS=	$(OBJECTS:%.o=../common/%.c)
40
41LDLIBS += -lpicl
42
43IFLAGS += -I$(USR_PLAT_DIR)/sun4u/include -I ../../../../libprtdiag/inc
44IFLAGS += -I$(SRC)/cmd/picl/plugins/inc
45LINTFLAGS += $(IFLAGS)
46
47#
48# links in /usr/platform
49#
50LINKED_PLATFORMS	= SUNW,Sun-Blade-1000 SUNW,Netra-T4
51LINKED_PLATFORMS	+= SUNW,Sun-Blade-1500
52LINKED_PLATFORMS	+= SUNW,Sun-Blade-2500
53LINKED_PLATFORMS	+= SUNW,A70
54LINKED_PLATFORMS	+= SUNW,Sun-Fire-V445
55LINKED_PLATFORMS	+= SUNW,Sun-Fire-V215
56LINKED_PLATFORMS	+= SUNW,Serverblade1
57LINKED_PLATFORMS	+= SUNW,Sun-Fire-V240
58LINKED_PLATFORMS	+= SUNW,Sun-Fire-V250
59LINKED_PLATFORMS	+= SUNW,Sun-Fire-V440
60
61LINKED_DIRS		= $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
62LINKED_LIB_DIRS		= $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
63LINKED_PRTDIAG_DIRS	= \
64	$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libprtdiag_psr.so.1)
65
66#
67# Sun-Blade-100 and Sun-Blade-1000 platform library should install into
68# SUNW,Sun-Blade-100. Sun-Blade-100 platforms can
69# link to /usr/platform/SUNW,Sun-Blade-100/lib/libprtdiag_psr.so
70#
71PLATFORM=	SUNW,Sun-Blade-100
72
73.KEEP_STATE:
74
75PLATLIBS=	$(PLATFORM:%=$(USR_PLAT_DIR)/%/lib/)
76
77install:	all $(PLATLIBS) $(USR_PSM_LIBS) \
78		$(LINKED_PRTDIAG_DIRS)
79
80#
81# install rules for SUNW,Sun-Blade-100/lib/libprtdiag_psr.so.1
82#
83$(PLATLIBS):
84	$(INS.dir)
85
86$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
87	$(INS.file)
88
89$(USR_PSM_LIB_DIR):
90	$(INS.dir)
91
92$(LINKED_DIRS):	$(USR_PLAT_DIR)
93	-$(INS.dir.root.sys)
94
95$(LINKED_LIB_DIRS):	$(LINKED_DIRS)
96	-$(INS.dir.root.sys)
97
98$(LINKED_PRTDIAG_DIRS):	$(LINKED_LIB_DIRS)
99	-$(INS.slink6)
100
101#
102# Rules for making message files
103#
104POFILE=		libprtdiag_psr_desktop_picl.po
105POFILES=	desktop.po
106
107_msg:	$(MSGDOMAIN) $(POFILE)
108	$(RM) $(MSGDOMAIN)/$(POFILE)
109	$(CP) $(POFILE) $(MSGDOMAIN)
110
111$(POFILE):	$(POFILES)
112	$(RM) $@
113	$(CAT) $(POFILES) > $@
114
115$(POFILES):
116	$(RM) messages.po
117	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../common/picldiag.c`
118	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
119	$(RM) messages.po
120
121