xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/daktari/psvcplugin/Makefile (revision 4e5b757fbcf21077677360be274461dcd9064106)
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=	libpsvcplugin_psr.a
29VERS=		.1
30
31OBJECTS=	psvcplugin.o
32
33# include library definitions
34include $(SRC)/lib/Makefile.lib
35include $(SRC)/Makefile.psm
36
37include $(SRC)/cmd/picl/plugins/Makefile.com
38
39SRCS=		$(OBJECTS:%.o=%.c)
40
41LIBS =		$(DYNLIB)
42
43ROOT_PLATFORM =		$(USR_PLAT_DIR)/SUNW,Sun-Fire-880
44DYNFLAGS_PLAT =		/usr/platform/\$$PLATFORM/lib/picl/plugins
45DYNFLAGS_SUN4U =	/usr/platform/sun4u/lib/picl/plugins
46DYNFLAGS_COM =		/usr/lib/picl/plugins
47
48ROOTLIBDIR =	$(ROOT_PLAT_PLUGINDIR)
49
50CLEANFILES=	$(LINTOUT) $(LINTLIB)
51
52CPPFLAGS +=	-I$(SRC)/uts/sun4u
53CPPFLAGS +=	-I$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcobj
54CPPFLAGS +=	-D_REENTRANT
55
56CFLAGS +=	$(CCVERBOSE)
57LDLIBS +=	-L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH)
58LDLIBS +=	-L$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcobj
59LDLIBS +=	-L$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcplugin
60DYNFLAGS +=	-R$(DYNFLAGS_PLAT):$(DYNFLAGS_SUN4U):$(DYNFLAGS_COM)
61
62LDLIBS +=	-lc -lpicltree -lpicl -lpsvcobj -lpsvcplugin
63
64LINTFLAGS +=
65
66.KEEP_STATE:
67
68SUBDIRS=
69
70POFILE=	psvcplugin.po
71POFILE_RENAME=	psvcplugin_dak.po
72
73all :=		TARGET= all
74install :=	TARGET= install
75clean :=	TARGET= clean
76clobber :=	TARGET= clobber
77lint :=		TARGET= lint
78_msg :=		TARGET= _msg
79
80all: $(LIBS) $(LIBLINKS)
81
82install:	all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
83
84_msg:	$(MSGDOMAIN) $(POFILE)
85	$(RM) $(MSGDOMAIN)/$(POFILE)
86	$(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE_RENAME)
87
88$(MSGDOMAIN):
89	$(INS.dir)
90
91$(LIBLINKS):	FRC
92	$(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
93
94# include library targets
95include $(SRC)/cmd/picl/plugins/Makefile.targ
96include $(SRC)/lib/Makefile.targ
97
98lint :
99	$(LINT.c) $(SRCS)
100
101$(SUBDIRS): FRC
102	@cd $@; pwd; $(MAKE) $(TARGET)
103
104FRC:
105