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.
26 LIBRARY= libprtdiag_psr.a
30 # PSR_MACH is defined sun4u so previous sun4u platforms can still continue
31 # to use sun4u libraries but sun4v platforms can override it to use sun4v
36 # PLATFORM_OBJECTS is defined in ./desktop ./wgs ./sunfire ./starfire Makefiles
38 OBJECTS= $(PLATFORM_OBJECTS)
40 # include library definitions
41 include $(SRC)/lib/Makefile.lib
42 include $(SRC)/Makefile.psm
44 SRCS= $(OBJECTS:%.o=./common/%.c)
48 # There should be a mapfile here
51 CFLAGS += $(CCVERBOSE)
52 CERRWARN += -_gcc=-Wno-unused-variable
53 CERRWARN += -_gcc=-Wno-parentheses
54 CERRWARN += -_gcc=-Wno-unused-value
55 CERRWARN += -_gcc=-Wno-unused-function
56 CERRWARN += -_gcc=-Wno-uninitialized
57 CERRWARN += -_gcc=-Wno-address
58 IFLAGS += -I $(UTSBASE)/sun4u
59 IFLAGS += -I $(UTSCLOSED)/sun4u
60 IFLAGS += -I $(UTSCLOSED)/sun4u/sunfire -I $(UTSBASE)/sun4u/sunfire
61 CPPFLAGS = $(IFLAGS) $(CPPFLAGS.master)
62 LDLIBS += -L $(ROOT)/usr/platform/$(PSR_MACH)/lib -lprtdiag -lc
63 DYNFLAGS += -R /usr/platform/$(PSR_MACH)/lib
64 INS.slink6= $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/libprtdiag_psr.so.1 $@
72 # include library targets
73 include $(SRC)/lib/Makefile.targ
75 objs/%.o pics/%.o: ./common/%.c