xref: /illumos-gate/usr/src/lib/libprtdiag_psr/sparc/desktop/picl/Makefile (revision 241c90a06e8d1708235651863df515a2d522a03a)
103831d35Sstevel#
203831d35Sstevel# CDDL HEADER START
303831d35Sstevel#
403831d35Sstevel# The contents of this file are subject to the terms of the
503831d35Sstevel# Common Development and Distribution License (the "License").
603831d35Sstevel# You may not use this file except in compliance with the License.
703831d35Sstevel#
803831d35Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
903831d35Sstevel# or http://www.opensolaris.org/os/licensing.
1003831d35Sstevel# See the License for the specific language governing permissions
1103831d35Sstevel# and limitations under the License.
1203831d35Sstevel#
1303831d35Sstevel# When distributing Covered Code, include this CDDL HEADER in each
1403831d35Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1503831d35Sstevel# If applicable, add the following below this CDDL HEADER, with the
1603831d35Sstevel# fields enclosed by brackets "[]" replaced with your own identifying
1703831d35Sstevel# information: Portions Copyright [yyyy] [name of copyright owner]
1803831d35Sstevel#
1903831d35Sstevel# CDDL HEADER END
2003831d35Sstevel#
2103831d35Sstevel#
2275ce41a5SAli Bahrami# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2303831d35Sstevel# Use is subject to license terms.
24*66582b60SPeter Tribble# Copyright 2019 Peter Tribble.
2503831d35Sstevel#
2603831d35Sstevel# lib/libprtdiag_psr/sparc/desktop/picl/Makefile
2703831d35Sstevel
2803831d35SstevelUTSBASE = $(SRC)/uts
2903831d35Sstevel
3003831d35SstevelPLATFORM_OBJECTS= picldiag.o
3103831d35Sstevel
3203831d35Sstevelobjs/%.o pics/%.o: ../common/%.c
3303831d35Sstevel	$(COMPILE.c) $(IFLAGS) -o $@ $<
3403831d35Sstevel	$(POST_PROCESS_O)
3503831d35Sstevel
3603831d35Sstevelinclude $(SRC)/lib/libprtdiag_psr/sparc/Makefile.com
3703831d35Sstevel
3803831d35SstevelSRCS=	$(OBJECTS:%.o=../common/%.c)
3903831d35Sstevel
4003831d35SstevelLDLIBS += -lpicl
4103831d35Sstevel
4203831d35SstevelIFLAGS += -I$(USR_PLAT_DIR)/sun4u/include -I ../../../../libprtdiag/inc
4303831d35SstevelIFLAGS += -I$(SRC)/cmd/picl/plugins/inc
4403831d35Sstevel
4503831d35Sstevel#
4603831d35Sstevel# links in /usr/platform
4703831d35Sstevel#
4803831d35SstevelLINKED_PLATFORMS	= SUNW,Sun-Blade-1000 SUNW,Netra-T4
4903831d35SstevelLINKED_PLATFORMS	+= SUNW,Sun-Blade-1500
5003831d35SstevelLINKED_PLATFORMS	+= SUNW,Sun-Blade-2500
5103831d35SstevelLINKED_PLATFORMS	+= SUNW,A70
5203831d35SstevelLINKED_PLATFORMS	+= SUNW,Sun-Fire-V445
5303831d35SstevelLINKED_PLATFORMS	+= SUNW,Sun-Fire-V215
5403831d35SstevelLINKED_PLATFORMS	+= SUNW,Sun-Fire-V240
5503831d35SstevelLINKED_PLATFORMS	+= SUNW,Sun-Fire-V250
5603831d35SstevelLINKED_PLATFORMS	+= SUNW,Sun-Fire-V440
5703831d35Sstevel
5803831d35SstevelLINKED_DIRS		= $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
5903831d35SstevelLINKED_LIB_DIRS		= $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
6003831d35SstevelLINKED_PRTDIAG_DIRS	= \
6103831d35Sstevel	$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libprtdiag_psr.so.1)
6203831d35Sstevel
6303831d35Sstevel#
6403831d35Sstevel# Sun-Blade-100 and Sun-Blade-1000 platform library should install into
6503831d35Sstevel# SUNW,Sun-Blade-100. Sun-Blade-100 platforms can
6603831d35Sstevel# link to /usr/platform/SUNW,Sun-Blade-100/lib/libprtdiag_psr.so
6703831d35Sstevel#
6803831d35SstevelPLATFORM=	SUNW,Sun-Blade-100
6903831d35Sstevel
7075ce41a5SAli Bahrami$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
7175ce41a5SAli Bahrami
7203831d35Sstevel.KEEP_STATE:
7303831d35Sstevel
7403831d35SstevelPLATLIBS=	$(PLATFORM:%=$(USR_PLAT_DIR)/%/lib/)
7503831d35Sstevel
7603831d35Sstevelinstall:	all $(PLATLIBS) $(USR_PSM_LIBS) \
7703831d35Sstevel		$(LINKED_PRTDIAG_DIRS)
7803831d35Sstevel
7903831d35Sstevel#
8003831d35Sstevel# install rules for SUNW,Sun-Blade-100/lib/libprtdiag_psr.so.1
8103831d35Sstevel#
8203831d35Sstevel$(PLATLIBS):
8303831d35Sstevel	$(INS.dir)
8403831d35Sstevel
8503831d35Sstevel$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
8603831d35Sstevel	$(INS.file)
8703831d35Sstevel
8803831d35Sstevel$(USR_PSM_LIB_DIR):
8903831d35Sstevel	$(INS.dir)
9003831d35Sstevel
9103831d35Sstevel$(LINKED_DIRS):	$(USR_PLAT_DIR)
9248bc00d6Sjmcp	-$(INS.dir)
9303831d35Sstevel
9403831d35Sstevel$(LINKED_LIB_DIRS):	$(LINKED_DIRS)
9548bc00d6Sjmcp	-$(INS.dir)
9603831d35Sstevel
9754b87f36Sstevel$(LINKED_PRTDIAG_DIRS):	$(LINKED_LIB_DIRS)
9803831d35Sstevel	-$(INS.slink6)
9903831d35Sstevel
10003831d35Sstevel#
10103831d35Sstevel# Rules for making message files
10203831d35Sstevel#
10303831d35SstevelPOFILE=		libprtdiag_psr_desktop_picl.po
10403831d35SstevelPOFILES=	desktop.po
10503831d35Sstevel
10603831d35Sstevel_msg:	$(MSGDOMAIN) $(POFILE)
10703831d35Sstevel	$(RM) $(MSGDOMAIN)/$(POFILE)
10803831d35Sstevel	$(CP) $(POFILE) $(MSGDOMAIN)
10903831d35Sstevel
11003831d35Sstevel$(POFILE):	$(POFILES)
11103831d35Sstevel	$(RM) $@
11203831d35Sstevel	$(CAT) $(POFILES) > $@
11303831d35Sstevel
11403831d35Sstevel$(POFILES):
11503831d35Sstevel	$(RM) messages.po
11603831d35Sstevel	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../common/picldiag.c`
11703831d35Sstevel	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
11803831d35Sstevel	$(RM) messages.po
11903831d35Sstevel
120