xref: /illumos-gate/usr/src/lib/libprtdiag_psr/sparc/schumacher/picl/Makefile (revision 4bff34e37def8a90f9194d81bc345c52ba20086a)
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# lib/libprtdiag_psr/sparc/schumacher/picl/Makefile
28
29UTSBASE = $(SRC)/uts
30
31PLATFORM_OBJECTS= schumacher.o
32
33objs/%.o pics/%.o: ../common/%.c
34	$(COMPILE.c) $(IFLAGS) -o $@ $<
35	$(POST_PROCESS_O)
36
37include $(SRC)/lib/libprtdiag_psr/sparc/Makefile.com
38
39SRCS=	$(OBJECTS:%.o=../common/%.c)
40
41LDLIBS += -lpicl
42
43IFLAGS += -I$(USR_PLAT_DIR)/sun4u/include -I ../../../../libprtdiag/inc
44IFLAGS += -I$(SRC)/cmd/picl/plugins/inc
45LINTFLAGS += $(IFLAGS)
46
47PLATFORM=	SUNW,Netra-CP3010
48
49.KEEP_STATE:
50
51PLATLIBS=	$(PLATFORM:%=$(USR_PLAT_DIR)/%/lib/)
52
53install:	all $(PLATLIBS) $(USR_PSM_LIBS) \
54		$(LINKED_PRTDIAG_DIRS)
55
56#
57# install rules for /usr/platform/${PLATFORM}/lib/libprtdiag_psr.so.1
58#
59$(PLATLIBS):
60	$(INS.dir)
61
62$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
63	$(INS.file)
64
65$(USR_PSM_LIB_DIR):
66	$(INS.dir)
67
68$(LINKED_DIRS):	$(USR_PLAT_DIR)
69	-$(INS.dir.root.sys)
70
71$(LINKED_LIB_DIRS):	$(LINKED_DIRS)
72	-$(INS.dir.root.sys)
73
74$(LINKED_PRTDIAG_DIRS):	$(USR_PLAT_DIR)
75	-$(INS.slink6)
76
77#
78# Rules for making message files
79#
80
81MSGFILES=	../common/schumacher.c
82POFILE=		libprtdiag_psr_schumacher_picl.po
83
84$(POFILE):	pofile_MSGFILES
85
86_msg:	$(MSGDOMAINPOFILE)
87
88include $(SRC)/Makefile.msg.targ
89
90