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/montecarlo/Makefile
27 LIBBASE
= ..
/..
/..
/..
/..
/src
/lib
28 UTSBASE
= ..
/..
/..
/..
/uts
29 PLATFORM_OBJECTS
= montecarlo.o
31 include ..
/Makefile.com
33 IFLAGS
= -I
$(USR_PLAT_DIR
)/sun4u
/include -I..
/..
/..
/libprtdiag
/inc
-I
$(LIBBASE
)/libdevinfo
34 IFLAGS
+= -I
$(UTSBASE
)/sun4u
/sys
35 IFLAGS
+= -I
$(UTSBASE
)/sun4u
/montecarlo
/sys
36 LINTFLAGS
+= $(IFLAGS
)
37 LDLIBS
+= -L
$(LIBBASE
)/libdevinfo
-ldevinfo
-L
$(LIBBASE
)/libcfgadm
-lcfgadm \
40 # links in /usr/platform
42 LINKED_PLATFORMS
= SUNW
,UltraSPARC-IIe-NetraCT-40
44 LINKED_DIRS
= $(LINKED_PLATFORMS
:%=$(USR_PLAT_DIR
)/%)
45 LINKED_LIB_DIRS
= $(LINKED_PLATFORMS
:%=$(USR_PLAT_DIR
)/%/lib
)
46 LINKED_PRTDIAG_DIRS
= \
47 $(LINKED_PLATFORMS
:%=$(USR_PLAT_DIR
)/%/lib
/libprtdiag_psr.so
.1)
50 # SUNW,UltraSPARC-IIi-Netract and SUNW,UltraSPARC-IIe-NetraCT-40 platform
51 # should install into SUNW,UltraSPARC-IIi-Netract.
52 # SUNW,UltraSPARC-IIe-NetraCT-40 platform can link to
53 # /usr/platform/SUNW,UltraSPARC-IIi-Netract/lib/libprtdiag_psr.so
55 PLATFORM
=SUNW
,UltraSPARC-IIi-Netract
57 $(USR_PLAT_DIR
)/$(PLATFORM
)/lib
/libprtdiag_psr.so
.1 := FILEMODE
= 0755
61 PLATLIBS
= $(PLATFORM
:%=$(USR_PLAT_DIR
)/%/lib
/)
63 install: all $(PLATLIBS
) $(USR_PSM_LIBS
) \
64 $(LINKED_PRTDIAG_DIRS
)
67 # install rules for SUNW,UltraSPARC-IIi-Netract/lib/libprtdiag_psr.so
73 cd
$(UTSBASE
)/sun4u
/montecarlo
; $(MAKE
) $(USR_PSM_LIB_DIR
)
75 $(USR_PSM_LIB_DIR
)/%: % $(USR_PSM_LIB_DIR
)
78 $(LINKED_DIRS
): $(USR_PLAT_DIR
)
81 $(LINKED_LIB_DIRS
): $(LINKED_DIRS
)
84 $(LINKED_PRTDIAG_DIRS
): $(LINKED_LIB_DIRS
)
88 # New additions to generate msg file
89 POFILE
= libprtdiag_psr_montecarlo.po
90 POFILES
= montecarlo.po
92 _msg
: $(MSGDOMAIN
) $(POFILE
)
93 $(RM
) $(MSGDOMAIN
)/$(POFILE
)
94 $(CP
) $(POFILE
) $(MSGDOMAIN
)
98 $(CAT
) $(POFILES
) > $@
102 $(XGETTEXT
) $(XGETFLAGS
) `$(GREP) -l gettext common/montecarlo.c`
103 $(SED
) -e
'/^# msg/d' -e
'/^domain/d' messages.po
> $@