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.
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.
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]
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # lib/libprtdiag_psr/sparc/desktop/nonpicl/Makefile
29 PLATFORM_OBJECTS
= desktop.o
31 objs
/%.o pics
/%.o
: ..
/common
/%.c
32 $(COMPILE.c
) $(IFLAGS
) -o
$@
$<
35 include $(SRC
)/lib
/libprtdiag_psr
/sparc
/Makefile.com
37 SRCS
= $(OBJECTS
:%.o
=..
/common
/%.c
)
39 IFLAGS
+= -I
$(USR_PLAT_DIR
)/sun4u
/include -I ..
/..
/..
/..
/libprtdiag
/inc
42 # desktop platform library should install into
43 # SUNW,Ultra-2. All other desktop platforms can
44 # link to /usr/platform/SUNW,Ultra-2/lib/libprtdiag_psr.so
49 # For all other sun4u platforms NOT delivered by ON (ie. delivered
50 # by SME or external hardware vendors) we add a default library in
51 # /usr/platform/sun4u/lib so that prtdiag will default to using
52 # the desktop library for any of these platforms. (this will be a
53 # link to ../../SUNW,Ultra-2/lib
56 USR_DEF_PSM_LIB_DIR
=$(USR_PLAT_DIR
)/$(DEF_PLATFORM
)/lib
57 USR_DEF_PSM_LIBS
=$(LIBS
:%=$(USR_DEF_PSM_LIB_DIR
)/%)
59 $(USR_PLAT_DIR
)/$(PLATFORM
)/lib
/libprtdiag_psr.so
.1 := FILEMODE
= 0755
63 PLATLIBS
= $(USR_PLAT_DIR
)/$(PLATFORM
)/lib
/
65 install: all $(USR_PSM_LIBS
) $(USR_DEF_PSM_LIBS
)
68 # install rules for SUNW,Ultra-2/lib/libprtdiag_psr.so.1
70 $(USR_PSM_LIB_DIR
)/%: % $(USR_PSM_LIB_DIR
)
74 cd
$(UTSBASE
)/sun4u
; $(MAKE
) $(USR_PSM_LIB_DIR
)
77 # install rules for sun4u/lib/libprtdiag_psr.so.1
79 $(USR_DEF_PSM_LIB_DIR
)/%: % $(USR_DEF_PSM_LIB_DIR
)
81 $(SYMLINK
) ..
/..
/$(PLATFORM
)/lib
/libprtdiag_psr.so
.1 $@
83 $(USR_DEF_PSM_LIB_DIR
):
84 cd
$(UTSBASE
)/sun4u
; $(MAKE
) $(USR_DEF_PSM_LIB_DIR
)
88 # Rules for making message files
90 POFILE
= libprtdiag_psr_desktop.po
93 _msg
: $(MSGDOMAIN
) $(POFILE
)
94 $(RM
) $(MSGDOMAIN
)/$(POFILE
)
95 $(CP
) $(POFILE
) $(MSGDOMAIN
)
99 $(CAT
) $(POFILES
) > $@
103 $(XGETTEXT
) $(XGETFLAGS
) `$(GREP) -l gettext ../common/desktop.c`
104 $(SED
) -e
'/^# msg/d' -e
'/^domain/d' messages.po
> $@