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# 25# lib/libprtdiag_psr/sparc/desktop/picl/Makefile 26 27UTSBASE = $(SRC)/uts 28 29PLATFORM_OBJECTS= picldiag.o 30 31objs/%.o pics/%.o: ../common/%.c 32 $(COMPILE.c) $(IFLAGS) -o $@ $< 33 $(POST_PROCESS_O) 34 35include $(SRC)/lib/libprtdiag_psr/sparc/Makefile.com 36 37SRCS= $(OBJECTS:%.o=../common/%.c) 38 39LDLIBS += -lpicl 40 41IFLAGS += -I$(USR_PLAT_DIR)/sun4u/include -I ../../../../libprtdiag/inc 42IFLAGS += -I$(SRC)/cmd/picl/plugins/inc 43LINTFLAGS += $(IFLAGS) 44 45# 46# links in /usr/platform 47# 48LINKED_PLATFORMS = SUNW,Sun-Blade-1000 SUNW,Netra-T4 49LINKED_PLATFORMS += SUNW,Sun-Blade-1500 50LINKED_PLATFORMS += SUNW,Sun-Blade-2500 51LINKED_PLATFORMS += SUNW,A70 52LINKED_PLATFORMS += SUNW,Sun-Fire-V445 53LINKED_PLATFORMS += SUNW,Sun-Fire-V215 54LINKED_PLATFORMS += SUNW,Serverblade1 55LINKED_PLATFORMS += SUNW,Sun-Fire-V240 56LINKED_PLATFORMS += SUNW,Sun-Fire-V250 57LINKED_PLATFORMS += SUNW,Sun-Fire-V440 58LINKED_PLATFORMS += TAD,SPARCLE 59 60LINKED_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%) 61LINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib) 62LINKED_PRTDIAG_DIRS = \ 63 $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libprtdiag_psr.so.1) 64 65# 66# Sun-Blade-100 and Sun-Blade-1000 platform library should install into 67# SUNW,Sun-Blade-100. Sun-Blade-100 platforms can 68# link to /usr/platform/SUNW,Sun-Blade-100/lib/libprtdiag_psr.so 69# 70PLATFORM= SUNW,Sun-Blade-100 71 72$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755 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