xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcplugin/Makefile (revision 628e3cbed6489fa1db545d8524a06cd6535af456)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29LIBRARY=	libpsvcplugin_psr.a
30VERS=		.1
31
32OBJECTS=	psvcplugin.o
33
34# include library definitions
35include $(SRC)/lib/Makefile.lib
36include $(SRC)/Makefile.psm
37
38include $(SRC)/cmd/picl/plugins/Makefile.com
39
40SRCS=		$(OBJECTS:%.o=%.c)
41
42LIBS =		$(DYNLIB)
43
44ROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Fire-480R
45
46ROOTLIBDIR =	$(ROOT_PLAT_PLUGINDIR)
47
48CLEANFILES=	$(LINTOUT) $(LINTLIB)
49
50CPPFLAGS +=	-I$(SRC)/uts/sun4u
51CPPFLAGS +=	-I$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcobj
52CPPFLAGS +=	-D_REENTRANT
53
54CFLAGS +=	$(CCVERBOSE)
55LDLIBS +=	-L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH)
56LDLIBS +=	-L$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcobj
57LDLIBS +=	-L$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcplugin
58DYNFLAGS +=	-R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
59
60LDLIBS +=	-lc -lpicltree -lpicl -lpsvcobj -lpsvcplugin
61
62LINTFLAGS +=
63
64.KEEP_STATE:
65
66SUBDIRS=
67
68POFILE=	psvcplugin.po
69POFILE_RENAME=	psvcplugin_cstone.po
70
71all :=		TARGET= all
72install :=	TARGET= install
73clean :=	TARGET= clean
74clobber :=	TARGET= clobber
75lint :=		TARGET= lint
76_msg :=		TARGET= _msg
77
78all: $(LIBS) $(LIBLINKS)
79
80install:	all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
81
82_msg:	$(MSGDOMAIN) $(POFILE)
83	$(RM) $(MSGDOMAIN)/$(POFILE)
84	$(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE_RENAME)
85
86$(MSGDOMAIN):
87	$(INS.dir)
88
89$(LIBLINKS):	FRC
90	$(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
91
92# include library targets
93include $(SRC)/cmd/picl/plugins/Makefile.targ
94include $(SRC)/lib/Makefile.targ
95
96lint :
97	$(LINT.c) $(SRCS)
98
99$(SUBDIRS): FRC
100	@cd $@; pwd; $(MAKE) $(TARGET)
101
102FRC:
103