xref: /illumos-gate/usr/src/lib/libprtdiag_psr/sparc/Makefile.com (revision 002c70ff32f5df6f93c15f88d351ce26443e6ee7)
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 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28LIBRARY= libprtdiag_psr.a
29VERS= .1
30
31#
32# PSR_MACH is defined sun4u so previous sun4u platforms can still continue
33# to use sun4u libraries but sun4v platforms can override it to use sun4v
34# libraries.
35#
36PSR_MACH= sun4u
37#
38# PLATFORM_OBJECTS is defined in ./desktop ./wgs ./sunfire ./starfire Makefiles
39#
40OBJECTS= $(PLATFORM_OBJECTS)
41
42# include library definitions
43include $(SRC)/lib/Makefile.lib
44include $(SRC)/Makefile.psm
45
46SRCS=		$(OBJECTS:%.o=./common/%.c)
47
48LIBS = $(DYNLIB)
49
50# There should be a mapfile here
51MAPFILES =
52
53CFLAGS +=	$(CCVERBOSE)
54IFLAGS +=	-I $(UTSBASE)/sun4u
55IFLAGS +=	-I $(UTSCLOSED)/sun4u
56IFLAGS +=	-I $(UTSCLOSED)/sun4u/sunfire -I $(UTSBASE)/sun4u/sunfire
57CPPFLAGS =	$(IFLAGS) $(CPPFLAGS.master)
58LDLIBS +=	-L $(ROOT)/usr/platform/$(PSR_MACH)/lib -lprtdiag -lc
59DYNFLAGS +=	-R /usr/platform/$(PSR_MACH)/lib
60INS.slink6=	$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/libprtdiag_psr.so.1 $@ $(CHOWNLINK) $(CHGRPLINK)
61
62.KEEP_STATE:
63
64all: $(LIBS)
65
66lint:	lintcheck
67
68# include library targets
69include $(SRC)/lib/Makefile.targ
70
71objs/%.o pics/%.o: ./common/%.c
72	$(COMPILE.c) -o $@ $<
73	$(POST_PROCESS_O)
74