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 2007 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 60LINKED_PLATFORMS += TAD,SPARCLE 61 62LINKED_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%) 63LINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib) 64LINKED_PRTDIAG_DIRS = \ 65 $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libprtdiag_psr.so.1) 66 67# 68# Sun-Blade-100 and Sun-Blade-1000 platform library should install into 69# SUNW,Sun-Blade-100. Sun-Blade-100 platforms can 70# link to /usr/platform/SUNW,Sun-Blade-100/lib/libprtdiag_psr.so 71# 72PLATFORM= SUNW,Sun-Blade-100 73 74.KEEP_STATE: 75 76PLATLIBS= $(PLATFORM:%=$(USR_PLAT_DIR)/%/lib/) 77 78install: all $(PLATLIBS) $(USR_PSM_LIBS) \ 79 $(LINKED_PRTDIAG_DIRS) 80 81# 82# install rules for SUNW,Sun-Blade-100/lib/libprtdiag_psr.so.1 83# 84$(PLATLIBS): 85 $(INS.dir) 86 87$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR) 88 $(INS.file) 89 90$(USR_PSM_LIB_DIR): 91 $(INS.dir) 92 93$(LINKED_DIRS): $(USR_PLAT_DIR) 94 -$(INS.dir.root.sys) 95 96$(LINKED_LIB_DIRS): $(LINKED_DIRS) 97 -$(INS.dir.root.sys) 98 99$(LINKED_PRTDIAG_DIRS): $(LINKED_LIB_DIRS) 100 -$(INS.slink6) 101 102# 103# Rules for making message files 104# 105POFILE= libprtdiag_psr_desktop_picl.po 106POFILES= desktop.po 107 108_msg: $(MSGDOMAIN) $(POFILE) 109 $(RM) $(MSGDOMAIN)/$(POFILE) 110 $(CP) $(POFILE) $(MSGDOMAIN) 111 112$(POFILE): $(POFILES) 113 $(RM) $@ 114 $(CAT) $(POFILES) > $@ 115 116$(POFILES): 117 $(RM) messages.po 118 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../common/picldiag.c` 119 $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@ 120 $(RM) messages.po 121 122