xref: /illumos-gate/usr/src/lib/libprtdiag_psr/sparc/schumacher/picl/Makefile (revision 9c3024a3457d2d1269be18124a1ac69e33000da7)
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/schumacher/picl/Makefile
26
27UTSBASE = $(SRC)/uts
28
29PLATFORM_OBJECTS= schumacher.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
43
44PLATFORM=	SUNW,Netra-CP3010
45
46$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
47
48.KEEP_STATE:
49
50PLATLIBS=	$(PLATFORM:%=$(USR_PLAT_DIR)/%/lib/)
51
52install:	all $(PLATLIBS) $(USR_PSM_LIBS) \
53		$(LINKED_PRTDIAG_DIRS)
54
55#
56# install rules for /usr/platform/${PLATFORM}/lib/libprtdiag_psr.so.1
57#
58$(PLATLIBS):
59	$(INS.dir)
60
61$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
62	$(INS.file)
63
64$(USR_PSM_LIB_DIR):
65	$(INS.dir)
66
67$(LINKED_DIRS):	$(USR_PLAT_DIR)
68	-$(INS.dir)
69
70$(LINKED_LIB_DIRS):	$(LINKED_DIRS)
71	-$(INS.dir)
72
73$(LINKED_PRTDIAG_DIRS):	$(USR_PLAT_DIR)
74	-$(INS.slink6)
75
76#
77# Rules for making message files
78#
79
80MSGFILES=	../common/schumacher.c
81POFILE=		libprtdiag_psr_schumacher_picl.po
82
83$(POFILE):	pofile_MSGFILES
84
85_msg:	$(MSGDOMAINPOFILE)
86
87include $(SRC)/Makefile.msg.targ
88
89